Allow seed datainjection into configmap
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
44add4ee72
commit
be3f0d2466
@ -15,10 +15,10 @@ type: application
|
||||
# This is the chart version. This version number should be incremented each time you make changes
|
||||
# to the chart and its templates, including the app version.
|
||||
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
||||
version: v0.2.2
|
||||
version: v0.3.0
|
||||
|
||||
# This is the version number of the application being deployed. This version number should be
|
||||
# incremented each time you make changes to the application. Versions are not expected to
|
||||
# follow Semantic Versioning. They should reflect the version the application is using.
|
||||
# It is recommended to use it with quotes.
|
||||
appVersion: "v0.2.2"
|
||||
appVersion: "v0.3.0"
|
||||
|
@ -1,14 +1,9 @@
|
||||
{{- if not .Values.json-server.data.existingConfigMap }}
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: {{ .Release.Name }}-configmap
|
||||
data:
|
||||
db.json: |
|
||||
{
|
||||
"metacluster": {
|
||||
"version": "3.2.0",
|
||||
"title": "json-server",
|
||||
"author": "typicode"
|
||||
},
|
||||
"foo": { "bar": "woot" }
|
||||
}
|
||||
{{ include "common.tplvalues.render" ( dict "value" .Values.json-server.data.configInline "context" $) | indent 4 }}
|
||||
{{- end -}}
|
||||
|
@ -1,6 +1,10 @@
|
||||
# Default values for json-server.
|
||||
# This is a YAML-formatted file.
|
||||
# Declare variables to be passed into your templates.
|
||||
|
||||
json-server:
|
||||
data:
|
||||
# Not implemented yet
|
||||
# existingConfigMap: ""
|
||||
configInline: {}
|
||||
|
||||
replicaCount: 1
|
||||
|
||||
@ -47,14 +51,14 @@ ingress:
|
||||
# kubernetes.io/ingress.class: nginx
|
||||
# kubernetes.io/tls-acme: "true"
|
||||
hosts:
|
||||
- host: chart-example.local
|
||||
- host: metadata.example.org
|
||||
paths:
|
||||
- path: /
|
||||
pathType: ImplementationSpecific
|
||||
tls: []
|
||||
# - secretName: chart-example-tls
|
||||
# - secretName: json-server-tls
|
||||
# hosts:
|
||||
# - chart-example.local
|
||||
# - metadata.example.org
|
||||
|
||||
resources: {}
|
||||
# We usually recommend not to specify default resources and to leave this as a conscious
|
||||
|
Loading…
Reference in New Issue
Block a user