Configmap from files #1176
MkrierPharmanity
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi
Currently in my applications have high number of env variables requirement read from a .env files and its painful to adding one by one to my cdk8s files.
Before cdk8s i was using the "--from-env-file" options of the "kubectl create configmap" command resulting in a configmap.yaml that i have all the variables of the env file writted to the data property ( cf : https://dulaj.medium.com/kubernetes-env-file-to-config-maps-and-secrets-5bfdb37d8934 for a better explaination if i'm not clear )
After discussing with @iliapolo in Slack , currently there is no simple way to do that with the cdk8s API, adding a "AddPropertiesFile" function to "cdk8splus25.ConfigMap" object will be a great feature
Beta Was this translation helpful? Give feedback.
All reactions