Remove cp kustomize command
@@ -54,14 +54,14 @@ steps:
script: |
set -x
mkdir -p $(System.DefaultWorkingDirectory)/bin
- mkdir -p /usr/local/kubebuilder
go env
os=$(go env GOOS)
arch=$(go env GOARCH)
curl -sL https://go.kubebuilder.io/dl/2.3.1/${os}/${arch} | tar -xz -C $(go env GOPATH)/bin
- mv $(go env GOPATH)/bin/kubebuilder_2.3.1_${os}_${arch} /usr/local/kubebuilder
- export PATH=$PATH:/usr/local/kubebuilder/bin
- echo '##vso[task.prependpath]/usr/local/kubebuilder/bin'
+ #mv $(go env GOPATH)/bin/kubebuilder_2.3.1_${os}_${arch} /usr/local/kubebuilder
+ #export PATH=$PATH:/usr/local/kubebuilder/bin
+ export PATH=$PATH:$(go env path)/bin
+ echo '##vso[task.prependpath]$(go env path)/bin'
# download kustomize
curl -o $(System.DefaultWorkingDirectory)/bin/kustomize -sL https://go.kubebuilder.io/kustomize/${os}/${arch}
# set permission
@@ -173,7 +173,6 @@ steps:
# create directory for generated files
mkdir charts/azure-service-operator/templates/generated
# generate files using kustomize
- cp $(go env GOPATH)/bin/kustomize kustomize
which kustomize
kustomize build ./config/default -o ./charts/azure-service-operator/templates/generated
# remove namespace, as we need to wrap it in a conditional since Helm 3 does not autocreate them
@@ -272,7 +271,6 @@ steps:
img="$IMAGE_NAME:$MAJOR_VERSION.$MINOR_VERSION.$PATCH_VERSION"
echo $img
sed -i -e 's@controller:latest@'${img}'@g' ./config/default/manager_image_patch.yaml
- cp $(go env GOPATH)/bin/kustomize kustomize
which kustomize
kustomize build config/default > $(Build.ArtifactStagingDirectory)/setup.yaml
set -x
