Velvet Star Monitor

Standout celebrity highlights with iconic style.

updates

How could I preview the final result when applying kustomizations to a git repo with helm templates?

Writer Matthew Martinez

I have a git repo with helm charts, and a git repo per environment with kustomizations for those charts. All of this in working great with flux. But I don't know how to "preview" my changes to the kustomization files.

Let's say I edit the dev environment kustomization, can I preview what the final yaml file will look like ?

1 Answer

You can have a look at 2 different commands:

  • flux diff - "The diff command does a build, then it performs a server-side dry-run and prints the diff."

  • kustomize build - "It recursively builds (aka hydrates) the kustomization.yaml you point it to, resulting in a set of Kubernetes resources ready to be deployed."

As Flux Kustomization only points to a standard kustomize file, you can use the kustomize build to see the manifests.

PS: For helm, check out helm template

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.