Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace for the secretKeyRef doesn't work #29

Closed
DmytroRybka opened this issue Jan 27, 2022 · 1 comment
Closed

Replace for the secretKeyRef doesn't work #29

DmytroRybka opened this issue Jan 27, 2022 · 1 comment

Comments

@DmytroRybka
Copy link

Hi,

When I look into the code I see that it should be possible to use the "placeholder" for SecretKeyRef but when I use it I'm getting the validation error
is invalid: spec.template.spec.containers[0].env[6].valueFrom.secretKeyRef.key: Invalid value: a valid config key must consist of alphanumeric characters, '-', '_' or '.' (e.g. 'key.name', or 'KEY_NAME', or 'key-name', regex used for validation is '[-. _a-zA-Z0-9]+')

  • name: kafka_api_key
    valueFrom:
    secretKeyRef:
    name: myservice
    key: gcp:secretmanager:projects/111222666333/secrets/kafkaKey

image

@alexei-led
Copy link
Collaborator

The secretKeyRef should point to K8s secret and then the value of this secret can be substituted by the secrets-init webhook

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants