To define clients in secret to store client name and password, how to define a client array in env and secret to store these data?
It should be like this in application.yml:
app:
clients:
client1: password1
client2: password2
......
I tried to define this in app-deployment.yml, but it didn't seem to be allowed
env:
- name: APPLICATION_CLIENTS
value:
- name: client1
valueFrom:
secretKeyRef:
name: clients
key: client1-password
- name: client2
valueFrom:
secretKeyRef:
name: clients
key: client2-password
Error:
invalid type for io.k8s.api.core.v1.EnvVar.value: got "array" expected "string"