admin管理员组

文章数量:1125111

In my k8s infrastructure I have the following environment variable declared: password,role,enabled, as a string.

When I check the envs, everything is fine and I can see :

USER : password,role,enabled

apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ .Release.Name }}-conf
  namespace: {{ .Release.Namespace }}
data:
  application-users.properties: |
    username: ${USER}

The problem is that those commas are giving me hard times, I don't know why, but they are not injected correctly in the configMap. If I edit the configMap manually and I insert directly password,role,enabled, everything will work.

Already tried with:

sa-mktboss: "${USER}"

and:

sa-mktboss : password\,role\,enabled

本文标签: kubernetesEnvironment variables with a commaStack Overflow