Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion helm/hookshot/templates/_pod.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,10 @@ containers:
{{- toYaml .Values.containerSecurityContext | nindent 6 }}
{{- end }}
volumeMounts:
{{- if or (and (not .Values.hookshot.existingConfigMap) (.Values.hookshot.config)) (.Values.hookshot.existingConfigMap) }}
- name: config
mountPath: "/data"
{{- if .Values.extraContainerVolumeMounts }}
{{ tpl (toYaml .Values.extraContainerVolumeMounts) . | indent 6 }}
{{- end }}
ports:
- name: webhook
Expand Down Expand Up @@ -108,9 +109,15 @@ tolerations:
{{ toYaml . | indent 2 }}
{{- end }}
volumes:
{{- if .Values.hookshot.existingConfigSecretName }}
- name: config
secret:
secretName: {{ .Values.hookshot.existingConfigSecretName }}
{{- else }}
- name: config
configMap:
name: {{ template "hookshot.configMapName" . }}
{{- end }}
{{- $root := . }}
{{- range .Values.extraConfigmapMounts }}
- name: {{ tpl .name $root }}
Expand Down
2 changes: 1 addition & 1 deletion helm/hookshot/templates/configmap.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
{{- if not .Values.hookshot.existingConfigMap }}
{{- if not (or .Values.hookshot.existingConfigMap .Values.hookshot.existingConfigSecretName) }}
apiVersion: v1
kind: ConfigMap
metadata:
Expand Down
2 changes: 2 additions & 0 deletions helm/hookshot/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ tolerations: []
# -- Affinity settings for deployment
affinity: {}
hookshot:
# -- Name of existing config Secret with valid Hookshot configuration
existingConfigSecretName:
# -- Name of existing ConfigMap with valid Hookshot configuration
existingConfigMap:
# -- Raw Hookshot configuration. Gets templated into a YAML file and then loaded unless an existingConfigMap is specified.
Expand Down