mirror of https://github.com/helm/helm
Closes #13192 Signed-off-by: Thiago Perrotta <thiago@perrotta.dev>pull/31169/head
parent
30404b4173
commit
d793d56151
@ -0,0 +1,6 @@
|
||||
apiVersion: v2
|
||||
name: configmaplist-chart
|
||||
description: Test chart with ConfigMapList
|
||||
type: application
|
||||
version: "0.1.0"
|
||||
appVersion: "1.0"
|
@ -0,0 +1,7 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: {{ .Release.Name }}-single-config
|
||||
namespace: {{ .Release.Namespace }}
|
||||
data:
|
||||
setting: "value"
|
@ -0,0 +1,21 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMapList
|
||||
metadata:
|
||||
# ConfigMapList objects don't require meaningful names
|
||||
# This should not trigger lint warnings
|
||||
items:
|
||||
- apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: {{ .Release.Name }}-database-config
|
||||
namespace: {{ .Release.Namespace }}
|
||||
data:
|
||||
host: {{ .Values.configs.database.host }}
|
||||
port: "{{ .Values.configs.database.port }}"
|
||||
- apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: {{ .Release.Name }}-cache-config
|
||||
namespace: {{ .Release.Namespace }}
|
||||
data:
|
||||
redis-url: {{ .Values.configs.cache.redis }}
|
@ -0,0 +1,7 @@
|
||||
# Default values for configmaplist-chart
|
||||
configs:
|
||||
database:
|
||||
host: localhost
|
||||
port: 5432
|
||||
cache:
|
||||
redis: redis://localhost:6379
|
Loading…
Reference in new issue