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

skaffold render output is not same as skaffold run manifests while using helm --post-renderer flag #6552

Open
sev3ryn opened this issue Sep 1, 2021 · 4 comments
Labels
area/render deploy/helm kind/bug Something isn't working priority/p3 agreed that this would be good to have, but no one is available at the moment.

Comments

@sev3ryn
Copy link

sev3ryn commented Sep 1, 2021

Expected behavior

skaffold render creates and displays the same manifests as will be deployed using skaffold run

Actual behavior

skaffold render - ignores --post-renderer helm flag, therefore post-rendering step is skipped while executing skaffold run it executes fine

Information

This behavior is related to the missing option for setting flags for helm template command (only install/upgrade) in the configuration which is executed during skaffold render

@nkubala nkubala added kind/bug Something isn't working priority/p1 High impact feature/bug. deploy/helm labels Sep 16, 2021
@briandealwis
Copy link
Member

My inclination is to close this as working-as-intended. In all honesty, we can't really support the use of --post-renderer in the Helm install and upgrade flags. Skaffold already uses --post-renderer to support skaffold debug and may further broaden our use of --post-renderer.

@sev3ryn I am curious to know what kind of transformations you're performing with post-renderer.

@sev3ryn
Copy link
Author

sev3ryn commented Sep 28, 2021

I'm using post-renderer in helm for two use cases:

  1. To patch third-party helm charts with kustomize to add securityContext and set resources for those charts that don't have them.
  2. To patch secret manifests by replacing the path to secret in Hashicorp Vault with an actual secret.

I wouldn't say that this is p1 issue, but implementing it will help a lot for debugging what is happening during skaffold run

@nkubala nkubala added priority/p2 May take a couple of releases and removed priority/p1 High impact feature/bug. labels Oct 29, 2021
@aaron-prindle
Copy link
Contributor

@briandealwis did you have any opinions on whether it makes sense to add more generfal --post-deployment flag support for helm through the skaffold CLI or if it not feasible as currently skaffold uses the --post-deployment flags? Thanks.

@briandealwis
Copy link
Member

Skaffold doesn't yet use --post-deployment, but it will. I think we can examine our deploy.helm.flags and daisy-chain to whatever is specified there. This is tracked in #6951.

@aaron-prindle aaron-prindle added priority/p3 agreed that this would be good to have, but no one is available at the moment. and removed priority/p2 May take a couple of releases labels Feb 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/render deploy/helm kind/bug Something isn't working priority/p3 agreed that this would be good to have, but no one is available at the moment.
Projects
None yet
Development

No branches or pull requests

5 participants