Fix dir reference
@@ -59,16 +59,6 @@ stages:
displayName: Get controller-gen
- script: make generate
displayName: Generate controllers
- # - task: Go@0
- # inputs:
- # customCommand: controller-gen crd:trivialVersions=true rbac:roleName=manager-role webhook paths="./..." output:crd:artifacts:config=config/crd/bases
- # workingDirectory: '$(System.DefaultWorkingDirectory)'
- # displayName: Generate manifests
- # - task: Go@0
- # inputs:
- # customCommand: controller-gen object:headerFile=./hack/boilerplate.go.txt paths=./api/...
- # workingDirectory: '$(System.DefaultWorkingDirectory)'
- # displayName: Generate CRDs
- task: Go@0
inputs:
command: 'test'
@@ -97,7 +87,7 @@ stages:
connectionType: 'Kubernetes Service Connection'
kubernetesServiceEndpoint: 'skulavik-k8s'
command: 'apply'
- arguments: '-f $(Pipeline.Workspace)/config/crd/bases'
+ arguments: '-f $(System.DefaultWorkingDirectory)/config/crd/bases'
checkLatest: true
- stage: DockerBuild
