Skip to content

Commit

Permalink
Prefix configmap with helm release name
Browse files Browse the repository at this point in the history
Avoid name conflicts if helm chart is deployed multiple times.
  • Loading branch information
FlorianNachtigall committed Jul 8, 2020
1 parent 6644f2d commit 879c905
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion subcharts/spi/templates/configmap.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: worker-config
name: "{{ include "spi.fullname" . }}-worker-config"
data:
{{tpl ((.Files.Glob "**worker_config.yaml").AsConfig) . | indent 2 }}
2 changes: 1 addition & 1 deletion subcharts/spi/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ spec:
volumes:
- name: worker-config
configMap:
name: worker-config
name: {{ $fullName }}-worker-config
{{- with $.Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down

0 comments on commit 879c905

Please sign in to comment.