-
Notifications
You must be signed in to change notification settings - Fork 275
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
BUG: deploy & run with kubernetes-module type do not copy / prepare secrets #3894
Comments
This bug surfaced in the discord help thread/ discussion https://discord.com/channels/817392104711651328/1077630057712992377/1077630057712992377 – Thank you Th3FalleN for bringing this to our attention! |
@stefreak is this still an issue? |
Not entirely sure if this is related, but I'm noticing the same/similar issue on From my limited testing this occurs with |
@worldofgeese Yes this is still an issue with all versions after |
Bug
Current Behavior
Deploy and running tasks/tests on a kubernetes-module type ignores
copySecrets
andimagePullSecrets
settings.Expected behavior
When deploying a
kubernetes-module
type module, or running tasks/tests on it, we should copy the secrets as specified incopySecrets
andimagePullSecrets
.Either we should copy all the secrets defined in
imagePullSecrets
, or we should introspect the manifests provided to the kubernetes module and only copy the ones that are referenced there.Reproducible example
Take the
kubernetes-secrets
example, and rewrite the backend and frontend modules using thekubernetes-module
type, instead of thecontainer
type.Workaround
No known workaround, other than using the
container
Module type.Suggested solution(s)
The container module type runs the following code in the handler that runs tasks or deploys the service:
We need to add similar code to the handlers that deploy / run the kubernetes-module type.
The kubernetes-module type should probably not add the
imagePullSecrets
field automatically to the workload spec, but it might instead detect referenced secrets in the kubernetes module spec and emit warnings if they're not specified inimagePullSecrets
, and copy the referenced secrets automatically.Your environment
garden version
0.12.51-edge-5015f6278The text was updated successfully, but these errors were encountered: