Skip to content

Commit 22820fd

Browse files
committed
fix(chart): persist operatorstatus reporting changes to chart
previously these were only added directly to `/manifests`
1 parent 1688965 commit 22820fd

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

deploy/chart/templates/0000_50_olm_06-olm-operator.deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ spec:
5050
path: /healthz
5151
port: {{ .Values.olm.service.internalPort }}
5252
env:
53+
{{ if (.Values.installType) and eq .Values.installType "ocp" }}
54+
- name: RELEASE_VERSION
55+
value: "0.0.1-snapshot"
56+
{{ end }}
5357
- name: OPERATOR_NAMESPACE
5458
valueFrom:
5559
fieldRef:

deploy/chart/templates/0000_50_olm_14-operatorstatus.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,8 @@ apiVersion: config.openshift.io/v1
33
kind: ClusterOperator
44
metadata:
55
name: {{ .Values.writeStatusName }}
6+
status:
7+
versions:
8+
- name: operator
9+
version: "0.0.1-snapshot"
610
{{- end }}

0 commit comments

Comments
 (0)