@@ -190,6 +190,8 @@ manifests: controller-gen ## Generate WebhookConfiguration, ClusterRole and Cust
190190.PHONY : bundle
191191bundle : manifests setup kustomize # # Generate bundle manifests and metadata, then validate generated files.
192192 scripts/update-sample.sh
193+
194+ sed -i.bak " s,OPERATOR_IMAGE,${IMG} ,g" config/manager/manager.yaml
193195 sed -i.bak " s,IMAGE,${IMG} ,g;s,CREATEDAT,${CREATEDAT} ,g" config/manifests/patches/csvAnnotations.yaml
194196 operator-sdk generate kustomize manifests -q
195197 cd config/manager && $(KUSTOMIZE ) edit set image controller=$(IMG )
@@ -202,9 +204,6 @@ bundle: manifests setup kustomize ## Generate bundle manifests and metadata, the
202204 sed -i.bak "s,${IMG},${KUSTOMIZE_IMG},g;s,serviceAccountName: controller-manager,serviceAccountName: websphere-liberty-controller-manager,g" internal/deploy/kustomize/daily/base/websphere-liberty-deployment.yaml
203205 $(KUSTOMIZE) build config/kustomize/roles -o internal/deploy/kustomize/daily/base/websphere-liberty-roles.yaml
204206
205- mv config/manifests/patches/csvAnnotations.yaml.bak config/manifests/patches/csvAnnotations.yaml
206- rm internal/deploy/kustomize/daily/base/websphere-liberty-deployment.yaml.bak
207-
208207 $(KUSTOMIZE) build config/kubectl/crd -o internal/deploy/kubectl/websphereliberty-app-crd.yaml
209208 $(KUSTOMIZE) build config/kubectl/operator -o internal/deploy/kubectl/websphereliberty-app-operator.yaml
210209 $(KUSTOMIZE) build config/kubectl/rbac-watch-all -o internal/deploy/kubectl/websphereliberty-app-rbac-watch-all.yaml
@@ -213,6 +212,10 @@ bundle: manifests setup kustomize ## Generate bundle manifests and metadata, the
213212 $(KUSTOMIZE) build config/kustomize/watch-all -o internal/deploy/kustomize/daily/overlays/watch-all-namespaces/cluster-roles.yaml
214213 $(KUSTOMIZE) build config/kustomize/watch-another -o internal/deploy/kustomize/daily/overlays/watch-another-namespace/wlo-watched-ns/watched-roles.yaml
215214
215+ mv config/manager/manager.yaml.bak config/manager/manager.yaml
216+ mv config/manifests/patches/csvAnnotations.yaml.bak config/manifests/patches/csvAnnotations.yaml
217+ rm internal/deploy/kustomize/daily/base/websphere-liberty-deployment.yaml.bak
218+
216219 operator-sdk bundle validate ./bundle
217220
218221.PHONY : fmt
0 commit comments