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

[Kubernetes] imagePullSecrets: unable to deploy #56

Closed
jhoelzel opened this issue Dec 11, 2023 · 2 comments
Closed

[Kubernetes] imagePullSecrets: unable to deploy #56

jhoelzel opened this issue Dec 11, 2023 · 2 comments

Comments

@jhoelzel
Copy link

Thanks again for a nice solution to our problems ;)

When deploying custom images to Kubernetes from a private image repository, an acces configuration is required.
Link to Docs

This secret is defined by a key called " .dockerconfigjson ". You can probably see where im going with this:

There is currently no way to deploy it with the kubernetes operator. https://docs.doppler.com/docs/kubernetes-operator

We really would appreciate a solution to this as the only secret "not dopplered" are our image pull secrets =)
The best solution is probably a Name Transformer.

Thank you!

@nmanoogian
Copy link
Member

Hi @jhoelzel! Thanks for reaching out!

I think you might be able to use custom types and processors to achieve this. It might look something like:

apiVersion: secrets.doppler.com/v1alpha1
kind: DopplerSecret
metadata:
  name: my-dopplersecret
  namespace: doppler-operator-system
spec:
  tokenSecret:
    name: doppler-token-secret
  managedSecret:
    name: doppler-config-secret
    namespace: default
    type: kubernetes.io/dockerconfigjson
  processors:
    DOCKER_CONFIG_JSON: # This is the name of the secret in Doppler to use for the `.dockerconfigjson` contents
      asName: .dockerconfigjson

Can you give this a go and let me know if it works for you?

@jhoelzel
Copy link
Author

This has worked brilliantly for me thank you!

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

No branches or pull requests

2 participants