Skip to content

Commit cc6e74a

Browse files
authored
Merge pull request #565 from application-stacks/add-operator-related-image
Added operator image to related images
2 parents d3b99c3 + d50c54e commit cc6e74a

File tree

5 files changed

+17
-4
lines changed

5 files changed

+17
-4
lines changed

Makefile

+6-3
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,8 @@ manifests: controller-gen ## Generate WebhookConfiguration, ClusterRole and Cust
189189
.PHONY: bundle
190190
bundle: manifests setup kustomize ## Generate bundle manifests and metadata, then validate generated files.
191191
scripts/update-sample.sh
192+
193+
sed -i.bak "s,OPERATOR_IMAGE,${IMG},g" config/manager/manager.yaml
192194
sed -i.bak "s,IMAGE,${IMG},g;s,CREATEDAT,${CREATEDAT},g" config/manifests/patches/csvAnnotations.yaml
193195
operator-sdk generate kustomize manifests -q
194196
cd config/manager && $(KUSTOMIZE) edit set image controller=$(IMG)
@@ -200,9 +202,6 @@ bundle: manifests setup kustomize ## Generate bundle manifests and metadata, the
200202
$(KUSTOMIZE) build config/kustomize/operator -o internal/deploy/kustomize/daily/base/runtime-component-operator.yaml
201203
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
202204
$(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
206205

207206
$(KUSTOMIZE) build config/kubectl/crd -o internal/deploy/kubectl/runtime-component-crd.yaml
208207
$(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
212211
$(KUSTOMIZE) build config/kustomize/watch-all -o internal/deploy/kustomize/daily/overlays/watch-all-namespaces/cluster-roles.yaml
213212
$(KUSTOMIZE) build config/kustomize/watch-another -o internal/deploy/kustomize/daily/overlays/watch-another-namespace/rco-watched-ns/watched-roles.yaml
214213

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+
215218
operator-sdk bundle validate ./bundle
216219

217220
.PHONY: fmt

bundle/manifests/runtime-component.clusterserviceversion.yaml

+5-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ metadata:
6868
categories: Application Runtime
6969
certified: "true"
7070
containerImage: icr.io/appcafe/runtime-component-operator:daily
71-
createdAt: "2023-08-01T06:51:41Z"
71+
createdAt: "2023-08-01T13:24:02Z"
7272
description: Deploys any runtime component with dynamic and auto-tuning configuration
7373
olm.skipRange: '>=0.8.0 <1.2.2'
7474
operators.openshift.io/infrastructure-features: '["disconnected"]'
@@ -977,6 +977,8 @@ spec:
977977
fieldPath: metadata.annotations['olm.targetNamespaces']
978978
- name: RELATED_IMAGE_LIBERTY_SAMPLE_APP
979979
value: icr.io/appcafe/open-liberty/samples/getting-started@sha256:e32f0eb0feff73c6bc8416fe2f7aa0cb74cbaa325cae5fad636325ee0ac4a105
980+
- name: RELATED_IMAGE_RUNTIME_COMPONENT_OPERATOR
981+
value: icr.io/appcafe/runtime-component-operator:daily
980982
image: icr.io/appcafe/runtime-component-operator:daily
981983
livenessProbe:
982984
failureThreshold: 3
@@ -1259,4 +1261,6 @@ spec:
12591261
relatedImages:
12601262
- image: icr.io/appcafe/open-liberty/samples/getting-started@sha256:e32f0eb0feff73c6bc8416fe2f7aa0cb74cbaa325cae5fad636325ee0ac4a105
12611263
name: liberty-sample-app
1264+
- image: icr.io/appcafe/runtime-component-operator:daily
1265+
name: runtime-component-operator
12621266
version: 1.2.2

config/manager/manager.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ spec:
6868
fieldPath: metadata.annotations['olm.targetNamespaces']
6969
- name: RELATED_IMAGE_LIBERTY_SAMPLE_APP
7070
value: icr.io/appcafe/open-liberty/samples/getting-started@sha256:e32f0eb0feff73c6bc8416fe2f7aa0cb74cbaa325cae5fad636325ee0ac4a105
71+
- name: RELATED_IMAGE_RUNTIME_COMPONENT_OPERATOR
72+
value: OPERATOR_IMAGE
7173
securityContext:
7274
allowPrivilegeEscalation: false
7375
privileged: false

internal/deploy/kubectl/runtime-component-operator.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,8 @@ spec:
304304
value: RUNTIME_COMPONENT_WATCH_NAMESPACE
305305
- name: RELATED_IMAGE_LIBERTY_SAMPLE_APP
306306
value: icr.io/appcafe/open-liberty/samples/getting-started@sha256:e32f0eb0feff73c6bc8416fe2f7aa0cb74cbaa325cae5fad636325ee0ac4a105
307+
- name: RELATED_IMAGE_RUNTIME_COMPONENT_OPERATOR
308+
value: icr.io/appcafe/runtime-component-operator:daily
307309
image: icr.io/appcafe/runtime-component-operator:daily
308310
livenessProbe:
309311
failureThreshold: 3

internal/deploy/kustomize/daily/base/runtime-component-operator.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ spec:
5151
fieldPath: metadata.namespace
5252
- name: RELATED_IMAGE_LIBERTY_SAMPLE_APP
5353
value: icr.io/appcafe/open-liberty/samples/getting-started@sha256:e32f0eb0feff73c6bc8416fe2f7aa0cb74cbaa325cae5fad636325ee0ac4a105
54+
- name: RELATED_IMAGE_RUNTIME_COMPONENT_OPERATOR
55+
value: icr.io/appcafe/runtime-component-operator:daily
5456
image: icr.io/appcafe/runtime-component-operator:daily
5557
livenessProbe:
5658
failureThreshold: 3

0 commit comments

Comments
 (0)