promenade: convert configmap-etc to secret
This converts the etc configmap to be a secret, whic provides additional obfuscation against accidental inspection of secrets. Change-Id: Ifd522a786eb751e7fad35d3f9ee17ec2bb87e010
This commit is contained in:
parent
3674a86ed8
commit
bfd4924452
@ -47,14 +47,11 @@ limitations under the License.
|
|||||||
|
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ConfigMap
|
kind: Secret
|
||||||
metadata:
|
metadata:
|
||||||
name: promenade-etc
|
name: promenade-etc
|
||||||
data:
|
data:
|
||||||
api-paste.ini: |+
|
api-paste.ini: {{ include "helm-toolkit.utils.to_ini" .Values.conf.paste | b64enc }}
|
||||||
{{ include "helm-toolkit.utils.to_ini" .Values.conf.paste | indent 4 }}
|
promenade.conf: {{ include "helm-toolkit.utils.to_ini" .Values.conf.promenade | b64enc }}
|
||||||
promenade.conf: |+
|
policy.yaml: {{ toYaml .Values.conf.policy | b64enc }}
|
||||||
{{ include "helm-toolkit.utils.to_ini" .Values.conf.promenade | indent 4 }}
|
|
||||||
policy.yaml: |+
|
|
||||||
{{ toYaml .Values.conf.policy | indent 4 }}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -118,8 +118,8 @@ spec:
|
|||||||
{{ if $mounts_promenade_api.volumeMounts }}{{ toYaml $mounts_promenade_api.volumeMounts | indent 12 }}{{ end }}
|
{{ if $mounts_promenade_api.volumeMounts }}{{ toYaml $mounts_promenade_api.volumeMounts | indent 12 }}{{ end }}
|
||||||
volumes:
|
volumes:
|
||||||
- name: promenade-etc
|
- name: promenade-etc
|
||||||
configMap:
|
secret:
|
||||||
name: promenade-etc
|
secretName: promenade-etc
|
||||||
defaultMode: 0444
|
defaultMode: 0444
|
||||||
{{ if $mounts_promenade_api.volumes }}{{ toYaml $mounts_promenade_api.volumes | indent 8 }}{{ end }}
|
{{ if $mounts_promenade_api.volumes }}{{ toYaml $mounts_promenade_api.volumes | indent 8 }}{{ end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
Loading…
Reference in New Issue
Block a user