Skip to content

Commit 4faa67c

Browse files
authored
Merge pull request #518 from WASdev/add-operator-related-image
Added operator image to related images
2 parents b78172f + 8e249c8 commit 4faa67c

File tree

5 files changed

+17
-4
lines changed

5 files changed

+17
-4
lines changed

Makefile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,8 @@ manifests: controller-gen ## Generate WebhookConfiguration, ClusterRole and Cust
190190
.PHONY: bundle
191191
bundle: 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

bundle/manifests/ibm-websphere-liberty.clusterserviceversion.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ metadata:
5959
capabilities: Auto Pilot
6060
categories: Application Runtime
6161
containerImage: icr.io/cpopen/websphere-liberty-operator:daily
62-
createdAt: "2023-06-26T17:52:19Z"
62+
createdAt: "2023-07-20T10:35:34Z"
6363
description: Deploy and manage containerized Liberty applications
6464
olm.skipRange: '>=1.0.0 <1.2.1'
6565
operators.openshift.io/infrastructure-features: '["disconnected"]'
@@ -860,6 +860,8 @@ spec:
860860
fieldPath: metadata.annotations['olm.targetNamespaces']
861861
- name: RELATED_IMAGE_LIBERTY_SAMPLE_APP
862862
value: icr.io/appcafe/open-liberty/samples/getting-started@sha256:d3c67c4a15c97b0fb82f9ef4a2ccf474232b878787e9eea39af75a3ac78469e3
863+
- name: RELATED_IMAGE_WEBSPHERE_LIBERTY_OPERATOR
864+
value: icr.io/cpopen/websphere-liberty-operator:daily
863865
image: icr.io/cpopen/websphere-liberty-operator:daily
864866
livenessProbe:
865867
failureThreshold: 3
@@ -1134,4 +1136,6 @@ spec:
11341136
relatedImages:
11351137
- image: icr.io/appcafe/open-liberty/samples/getting-started@sha256:d3c67c4a15c97b0fb82f9ef4a2ccf474232b878787e9eea39af75a3ac78469e3
11361138
name: liberty-sample-app
1139+
- image: icr.io/cpopen/websphere-liberty-operator:daily
1140+
name: websphere-liberty-operator
11371141
version: 1.2.1

config/manager/manager.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ spec:
7373
fieldPath: metadata.annotations['olm.targetNamespaces']
7474
- name: RELATED_IMAGE_LIBERTY_SAMPLE_APP
7575
value: icr.io/appcafe/open-liberty/samples/getting-started@sha256:d3c67c4a15c97b0fb82f9ef4a2ccf474232b878787e9eea39af75a3ac78469e3
76+
- name: RELATED_IMAGE_WEBSPHERE_LIBERTY_OPERATOR
77+
value: OPERATOR_IMAGE
7678
securityContext:
7779
allowPrivilegeEscalation: false
7880
privileged: false

internal/deploy/kubectl/websphereliberty-app-operator.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,8 @@ spec:
306306
value: WEBSPHERE_LIBERTY_WATCH_NAMESPACE
307307
- name: RELATED_IMAGE_LIBERTY_SAMPLE_APP
308308
value: icr.io/appcafe/open-liberty/samples/getting-started@sha256:d3c67c4a15c97b0fb82f9ef4a2ccf474232b878787e9eea39af75a3ac78469e3
309+
- name: RELATED_IMAGE_WEBSPHERE_LIBERTY_OPERATOR
310+
value: icr.io/cpopen/websphere-liberty-operator:daily
309311
image: icr.io/cpopen/websphere-liberty-operator:daily
310312
livenessProbe:
311313
failureThreshold: 3

internal/deploy/kustomize/daily/base/websphere-liberty-deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ spec:
5656
fieldPath: metadata.namespace
5757
- name: RELATED_IMAGE_LIBERTY_SAMPLE_APP
5858
value: icr.io/appcafe/open-liberty/samples/getting-started@sha256:d3c67c4a15c97b0fb82f9ef4a2ccf474232b878787e9eea39af75a3ac78469e3
59+
- name: RELATED_IMAGE_WEBSPHERE_LIBERTY_OPERATOR
60+
value: cp.stg.icr.io/cp/websphere-liberty-operator:main
5961
image: cp.stg.icr.io/cp/websphere-liberty-operator:main
6062
livenessProbe:
6163
failureThreshold: 3

0 commit comments

Comments
 (0)