@@ -8,14 +8,14 @@ includes:
8
8
vars :
9
9
BIN : " {{.ROOT_DIR}}/bin"
10
10
KUSTOMIZE_DIR : " config/default"
11
- OPERATOR_CONTROLLER_MANIFEST : ./operator-controller .yaml
11
+ CONTROLLER_MANIFEST : ./{{.PROJECT}} .yaml
12
12
13
13
OLMV0_VERSION : v0.24.0
14
14
CERT_MANAGER_VERSION : v1.9.0
15
15
RUKPAK_VERSION : v0.11.0
16
16
17
17
env :
18
- IMAGE_REPO : quay.io/operator-framework/operator-controller
18
+ IMAGE_REPO : quay.io/operator-framework/{{.PROJECT}}
19
19
IMAGE_TAG : devel
20
20
21
21
tasks :
58
58
GOARCH is taken from the environment to ensure a binary that will run on the local
59
59
machine. GOOS is always set to `linux` for the docker build.
60
60
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.
62
62
You can control the image repo and tag by setting the IMAGE_REPO and IMAGE_TAG
63
63
environment variables.
64
64
cmds :
@@ -79,17 +79,17 @@ tasks:
79
79
with the controller image set to the IMAGE_REPO and IMAGE_TAG environment variables.
80
80
cmds :
81
81
- 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 }}"
83
83
deps : [tools:kustomize, generate]
84
84
85
85
install-script :
86
86
desc : " Generate the install script"
87
87
summary : |
88
88
This task generates the install script that can be used to install the operator.
89
89
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
93
93
a release to reference the release manifest URL that is uploaded to GitHub during
94
94
the release.
95
95
silent : true
@@ -113,8 +113,8 @@ tasks:
113
113
kubectl wait --for=condition=Available --namespace=rukpak-system deployment/rukpak-webhooks --timeout=60s
114
114
kubectl wait --for=condition=Available --namespace=crdvalidator-system deployment/crd-validation-webhook --timeout=60s
115
115
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
119
119
EOF
120
120
- chmod +x ./install.sh
0 commit comments