Skip to content

Commit 0718df8

Browse files
committed
[olm-operator-installer] add support to set env variables on subscription
Signed-off-by: Tiago Bueno <49003339+tlbueno@users.noreply.github.com>
1 parent 5561d01 commit 0718df8

File tree

5 files changed

+22
-2
lines changed

5 files changed

+22
-2
lines changed

charts/olm-operator-installer/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.1.1
18+
version: 0.1.2
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to

charts/olm-operator-installer/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,5 +83,10 @@ subscription:
8383
# the initial version of the operator to be installed
8484
# if empty it will not be used in the subscription
8585
startingCSV: ""
86+
87+
#config:
88+
# env:
89+
# - name: ENV_VAR_TO_BE_ADDED
90+
# value: ENV_VAR_VALUE
8691
```
8792

charts/olm-operator-installer/examples/amq-broker-operator.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,8 @@ subscription:
5858
# if empty it will not be used in the subscription
5959
startingCSV: ""
6060

61+
config:
62+
env:
63+
# Set operator log level
64+
- name: ARGS
65+
value: "--zap-log-level=info"

charts/olm-operator-installer/templates/Subscription.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,10 @@ spec:
1212
{{- if .Values.subscription.startingCSV }}
1313
startingCSV: {{ .Values.subscription.startingCSV }}
1414
{{- end }}
15-
15+
{{- if .Values.subscription.config }}
16+
config:
17+
{{- if .Values.subscription.config.env }}
18+
env:
19+
{{- .Values.subscription.config.env | toYaml | nindent 4 }}
20+
{{- end }}
21+
{{- end }}

charts/olm-operator-installer/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,7 @@ subscription:
5656
# if empty it will not be used in the subscription
5757
startingCSV: ""
5858

59+
#config:
60+
# env:
61+
# - name: ENV_VAR_TO_BE_ADDED
62+
# value: ENV_VAR_VALUE

0 commit comments

Comments
 (0)