Skip to content

Commit c777953

Browse files
committed
Fixed template scoping and environment variables
1 parent 2285aa9 commit c777953

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

charts/console/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: A Helm chart for Kubernetes
55
type: application
66

77
# This is the chart version.
8-
version: 0.2.4
8+
version: 0.3.0
99

1010
# This is the version number of the application being deployed.
1111
appVersion: "4.11.0" # https://access.redhat.com/support/policy/updates/openshift # paragraph "OpenShift Support Matrix"

charts/console/templates/deployment.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ spec:
4949
resources:
5050
{{- toYaml .Values.resources | nindent 12 }}
5151
env:
52+
{{- if .Values.extraEnv }}
53+
{{- toYaml .Values.extraEnv | nindent 12 }}
54+
{{- end }}
5255
- name: BRIDGE_BASE_ADDRESS
5356
value: {{ .Values.bridgeEnvironmentVariables.BRIDGE_BASE_ADDRESS }}
5457
- name: BRIDGE_USER_AUTH
@@ -66,9 +69,6 @@ spec:
6669
value: {{ .Values.bridgeEnvironmentVariables.BRIDGE_USER_AUTH_OIDC_ISSUER_URL }}
6770
- name: BRIDGE_V
6871
value: {{ .Values.verbosity | quote }}
69-
{{- with .Values.extraEnv }}
70-
{{- toYaml . | nindent 12 }}
71-
{{- end }}
7272
{{- with .Values.nodeSelector }}
7373
nodeSelector:
7474
{{- toYaml . | nindent 8 }}

charts/console/templates/ingress.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ spec:
5656
serviceName: {{ $fullName }}
5757
servicePort: {{ $svcPort }}
5858
{{- end }}
59-
{{- if .Values.ingress.sslRedirect }}
59+
{{- if $.Values.ingress.sslRedirect }}
6060
- path: {{ .path }}
6161
backend:
6262
service:
@@ -67,4 +67,4 @@ spec:
6767
{{- end }}
6868
{{- end }}
6969
{{- end }}
70-
{{- end }}
70+
{{- end }}

charts/console/values.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ bridgeEnvironmentVariables:
6161
BRIDGE_USER_AUTH_OIDC_ISSUER_URL: # https://my-oidc-prodiver.okta.jumpcloud.example.com
6262
# BRIDGE_USER_AUTH_OIDC_CLIENT_SECRET defaults to consuming vaule from values.secret.secretName
6363

64-
extraEnv:
64+
extraEnv: ""
65+
# - name: BRIDGE_INACTIVITY_TIMEOUT
66+
# value: 300
6567

6668
# log-level
6769
verbosity: 1
@@ -72,11 +74,9 @@ service:
7274

7375
ingress:
7476
enabled: false
75-
sslRedirect: false
77+
sslRedirect: true # Used for AWS ALB Controller
7678
className: ""
7779
annotations: {}
78-
# kubernetes.io/ingress.class: nginx
79-
# kubernetes.io/tls-acme: "true"
8080
hosts:
8181
- host: chart-example.local
8282
paths:

0 commit comments

Comments
 (0)