spring-cloud / spring-cloud-deployer-kubernetes

The Spring Cloud Deployer implementation for Kubernetes
Apache License 2.0
157 stars 98 forks source link

Read environment variables of initContainer from configmap ! #453

Closed umutcann closed 2 years ago

umutcann commented 3 years ago

Hi,

We need to set environment variables of initContainer from configmap.

As far as I investigate the implementation of initContainer Environment variable, It is expecting like ['KEY1=VAL1', 'KEY2=VAL2'].

I tried like below. But It does not work.

{name: 'KEY, valueFrom: {configMapKeyRef: {key: 'value', name: 'configmapname'}}}

Do you have any workaround solution?

Or do you have any plan for this feature?

Thanks.