promenade/charts/apiserver-webhook/templates/config-dynamic-config.yaml
Scott Hussey ecfd773506 (charts) Webhook dynamic config
- support a similar dynamic config patter in the apiserver-webhook
  chart as the base apiserver chart

- Update the example values.yaml in apiserver to fully reflect
  configuration of the aggregation API

Change-Id: I85da2512934071fb9d9465ee4b957e18a8e394ad
2019-08-17 13:12:37 -05:00

33 lines
923 B
YAML

{{/*
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/}}
{{- if .Values.manifests.configmap_dynamic_config }}
{{- $envAll := . }}
---
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ .Release.Name }}-dynamic-config
data:
{{- range $key, $val := .Values.conf.apiserver }}
{{ $val.file }}: |
{{- if kindIs "string" $val.content }}
{{ indent 4 $val.content }}
{{- else }}
{{ toYaml $val.content | indent 4 }}
{{- end }}
{{- end -}}
{{- end }}