Skip to content

Commit

Permalink
Fix duplicated env setting in operator chart
Browse files Browse the repository at this point in the history
  • Loading branch information
BenRub committed Nov 2, 2023
1 parent 851af8b commit aa588b6
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ spec:
- /manager
image: "{{ .Values.operator.image.repository | default "cbartifactory/octarine-operator" }}:{{ .Values.operator.image.version | default .Chart.AppVersion }}"
env:
- name: OPERATOR_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
{{/* If you want to enable HTTP Proxy you need to set all 3 of the values - operator.proxy.http, operator.proxy.https and operator.proxy.noProxy */}}
{{- if .Values.operator.proxy -}}
- name: HTTP_PROXY
Expand Down Expand Up @@ -101,10 +105,5 @@ spec:
readOnlyRootFilesystem: true
runAsNonRoot: true
runAsUser: 65532
env:
- name: OPERATOR_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
serviceAccountName: cbcontainers-operator
terminationGracePeriodSeconds: 10

0 comments on commit aa588b6

Please sign in to comment.