@@ -189,6 +189,8 @@ manifests: controller-gen ## Generate WebhookConfiguration, ClusterRole and Cust
189
189
.PHONY : bundle
190
190
bundle : manifests setup kustomize # # Generate bundle manifests and metadata, then validate generated files.
191
191
scripts/update-sample.sh
192
+
193
+ sed -i.bak "s,OPERATOR_IMAGE,${IMG},g" config/manager/manager.yaml
192
194
sed -i.bak "s,IMAGE,${IMG},g;s,CREATEDAT,${CREATEDAT},g" config/manifests/patches/csvAnnotations.yaml
193
195
operator-sdk generate kustomize manifests -q
194
196
cd config/manager && $(KUSTOMIZE) edit set image controller=$(IMG)
@@ -200,9 +202,6 @@ bundle: manifests setup kustomize ## Generate bundle manifests and metadata, the
200
202
$(KUSTOMIZE) build config/kustomize/operator -o internal/deploy/kustomize/daily/base/runtime-component-operator.yaml
201
203
sed -i.bak "s,${IMG},${KUSTOMIZE_IMG},g;s,serviceAccountName: controller-manager,serviceAccountName: rco-controller-manager,g" internal/deploy/kustomize/daily/base/runtime-component-operator.yaml
202
204
$(KUSTOMIZE) build config/kustomize/roles -o internal/deploy/kustomize/daily/base/runtime-component-roles.yaml
203
-
204
- mv config/manifests/patches/csvAnnotations.yaml.bak config/manifests/patches/csvAnnotations.yaml
205
- rm internal/deploy/kustomize/daily/base/runtime-component-operator.yaml.bak
206
205
207
206
$(KUSTOMIZE) build config/kubectl/crd -o internal/deploy/kubectl/runtime-component-crd.yaml
208
207
$(KUSTOMIZE) build config/kubectl/operator -o internal/deploy/kubectl/runtime-component-operator.yaml
@@ -212,6 +211,10 @@ bundle: manifests setup kustomize ## Generate bundle manifests and metadata, the
212
211
$(KUSTOMIZE) build config/kustomize/watch-all -o internal/deploy/kustomize/daily/overlays/watch-all-namespaces/cluster-roles.yaml
213
212
$(KUSTOMIZE) build config/kustomize/watch-another -o internal/deploy/kustomize/daily/overlays/watch-another-namespace/rco-watched-ns/watched-roles.yaml
214
213
214
+ mv config/manager/manager.yaml.bak config/manager/manager.yaml
215
+ mv config/manifests/patches/csvAnnotations.yaml.bak config/manifests/patches/csvAnnotations.yaml
216
+ rm internal/deploy/kustomize/daily/base/runtime-component-operator.yaml.bak
217
+
215
218
operator-sdk bundle validate ./bundle
216
219
217
220
.PHONY : fmt
0 commit comments