@@ -8,14 +8,14 @@ includes:
88vars :
99 BIN : " {{.ROOT_DIR}}/bin"
1010 KUSTOMIZE_DIR : " config/default"
11- OPERATOR_CONTROLLER_MANIFEST : ./operator-controller .yaml
11+ CONTROLLER_MANIFEST : ./{{.PROJECT}} .yaml
1212
1313 OLMV0_VERSION : v0.24.0
1414 CERT_MANAGER_VERSION : v1.9.0
1515 RUKPAK_VERSION : v0.11.0
1616
1717env :
18- IMAGE_REPO : quay.io/operator-framework/operator-controller
18+ IMAGE_REPO : quay.io/operator-framework/{{.PROJECT}}
1919 IMAGE_TAG : devel
2020
2121tasks :
5858 GOARCH is taken from the environment to ensure a binary that will run on the local
5959 machine. GOOS is always set to `linux` for the docker build.
6060
61- By default, the image is tagged as quay.io/operator-framework/operator-controller :devel.
61+ By default, the image is tagged as quay.io/operator-framework/{{.PROJECT}} :devel.
6262 You can control the image repo and tag by setting the IMAGE_REPO and IMAGE_TAG
6363 environment variables.
6464 cmds :
@@ -79,17 +79,17 @@ tasks:
7979 with the controller image set to the IMAGE_REPO and IMAGE_TAG environment variables.
8080 cmds :
8181 - cd config/manager && {{.TOOLSBIN}}/kustomize edit set image controller=$IMAGE_REPO:$IMAGE_TAG
82- - " {{.TOOLSBIN}}/kustomize build {{.KUSTOMIZE_DIR}} > {{.OPERATOR_CONTROLLER_MANIFEST }}"
82+ - " {{.TOOLSBIN}}/kustomize build {{.KUSTOMIZE_DIR}} > {{.CONTROLLER_MANIFEST }}"
8383 deps : [tools:kustomize, generate]
8484
8585 install-script :
8686 desc : " Generate the install script"
8787 summary : |
8888 This task generates the install script that can be used to install the operator.
8989
90- The OPERATOR_CONTROLLER_MANIFEST task variable is used to set the location that
91- will be used to `kubectl apply -f` the operator- controller manifest. By default,
92- this is set to `./operator-controller .yaml`. However this can be overridden during
90+ The CONTROLLER_MANIFEST task variable is used to set the location that
91+ will be used to `kubectl apply -f` the controller manifest. By default,
92+ this is set to `./{{.PROJECT}} .yaml`. However this can be overridden during
9393 a release to reference the release manifest URL that is uploaded to GitHub during
9494 the release.
9595 silent : true
@@ -113,8 +113,8 @@ tasks:
113113 kubectl wait --for=condition=Available --namespace=rukpak-system deployment/rukpak-webhooks --timeout=60s
114114 kubectl wait --for=condition=Available --namespace=crdvalidator-system deployment/crd-validation-webhook --timeout=60s
115115
116- # Install operator- controller
117- kubectl apply -f {{.OPERATOR_CONTROLLER_MANIFEST }}
118- kubectl wait --for=condition=Available --namespace=operator-controller- system deployment/operator-controller -controller-manager --timeout=60s
116+ # Install controller
117+ kubectl apply -f {{.CONTROLLER_MANIFEST }}
118+ kubectl wait --for=condition=Available --namespace={{.PROJECT}}- system deployment/{{.PROJECT}} -controller-manager --timeout=60s
119119 EOF
120120 - chmod +x ./install.sh
0 commit comments