I want to set a boolean variable in configMap (or secret):
apiVersion: v1 kind: ConfigMap metadata: name: env-config namespace: mlo-stage data: webpack_dev_
Values in a ConfigMap must be key-value string values or files.
Change:
data: webpack_dev_server: false
To:
data: webpack_dev_server: "false"
To your question:
what should I do if I want to pass a boolean as value?
You may handle this in the application, transform from string to bool.
string
bool