[stable/kong] add release to template ConfigMap (#15817)

Adds the release name as a prefix to the custom NGINX template
ConfigMap. The static name created a regression preventing multiple
installations of Kong in the same namespace, as Helm would attempt to
create the same ConfigMap twice.

Signed-off-by: Travis Raines <traines@konghq.com>
This commit is contained in:
Travis Raines
2019-07-24 11:33:21 -07:00
committed by Kubernetes Prow Robot
parent 5c823b5ca3
commit 0a1ff70837
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -12,5 +12,5 @@ maintainers:
name: kong
sources:
- https://github.com/Kong/kong
version: 0.14.1
version: 0.14.2
appVersion: 1.2
@@ -1,7 +1,7 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: kong-default-custom-server-blocks
name: {{ .Release.Name }}-kong-default-custom-server-blocks
labels:
app: {{ template "kong.name" . }}
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
@@ -26,4 +26,4 @@ data:
access_log off;
stub_status;
}
}
}
+1 -1
View File
@@ -251,5 +251,5 @@ spec:
volumes:
- name: custom-nginx-template-volume
configMap:
name: kong-default-custom-server-blocks
name: {{ .Release.Name }}-kong-default-custom-server-blocks