diff --git a/charts/gitsensor/Chart.yaml b/charts/gitsensor/Chart.yaml index ee687946..362fbfb3 100644 --- a/charts/gitsensor/Chart.yaml +++ b/charts/gitsensor/Chart.yaml @@ -5,4 +5,4 @@ maintainers: - email: prakarsh@devtron.ai name: Prakarsh name: gitsensor -version: 0.11.6 +version: 0.11.7 diff --git a/charts/gitsensor/templates/generic.yaml b/charts/gitsensor/templates/generic.yaml index 5dff6162..2c13d54f 100644 --- a/charts/gitsensor/templates/generic.yaml +++ b/charts/gitsensor/templates/generic.yaml @@ -29,8 +29,8 @@ spec: template: metadata: labels: - {{- if .Values.gitsensor.spec.template.metadata.labels }} -{{ toYaml .Values.gitsensor.spec.template.metadata.labels | indent 8 }} + {{- if $.Values.gitsensor.spec.template.metadata.labels }} +{{ toYaml $.Values.gitsensor.spec.template.metadata.labels | indent 8 }} {{- end }} spec: terminationGracePeriodSeconds: 10 @@ -50,13 +50,26 @@ spec: env: {{- range $key, $val := .Values.gitsensor.envVariables.data }} - name: {{ $key }} - value: {{ $val | quote }} + value: {{ $val | quote }} {{- end }} + {{- with .Values.gitsensor.envFrom }} + {{- if or (.configMapRef) (.configSecretRef) }} + envFrom: + {{- range .configMapRef }} + - configMapRef: + name: {{ . }} + {{- end }} + {{- range .configSecretRef }} + - secretRef: + name: {{ . }} + {{- end }} + {{- end }} + {{- end }} {{- if $.Values.gitsensor.spec.resources}} resources: -{{ toYaml .Values.gitsensor.spec.resources | indent 12 -}} -{{- end}} - {{- if .Values.containerSecurityContext }} +{{ toYaml .Values.gitsensor.spec.resources | indent 12 }} + {{- end}} + {{- if .Values.containerSecurityContext }} securityContext: {{ toYaml .Values.containerSecurityContext | indent 12 }} {{- end }} @@ -64,7 +77,7 @@ spec: tolerations: {{- toYaml . | nindent 8 }} {{- end }} -{{ if .Values.gitsensor.spec.affinity }} +{{- if .Values.gitsensor.spec.affinity }} affinity: {{ toYaml .Values.gitsensor.spec.affinity | indent 8 }} {{- end }} diff --git a/charts/gitsensor/values.yaml b/charts/gitsensor/values.yaml index 5b08b832..fd294374 100644 --- a/charts/gitsensor/values.yaml +++ b/charts/gitsensor/values.yaml @@ -48,6 +48,15 @@ gitsensor: # operator: In # values: # - us-east-2 + + envFrom: + configMapRef: + # - "test" + # - "test2" + configSecretRef: + # - "Test3" + # - "Test4" + storage: class: gp2 requests: 2Gi