This pull request adds a -k or --kustomize option to fab generate. When this option is passed, a kustomization.yaml will be generated for each environment with the Kubernetes YAML files added as resources. This allows executing kubectl apply -k on directories with the generated files.
This PR implements #239, and was inspired by #240
Refactored kustomize code into its own file
Added tests
Updated generate.go, adding kustomize to the command line options
Updated generate_test.go, adding the false parameter for kustomize (fixes the tests)
Added "kustomize" go the .gitignore so the tests can generate kustomize.yaml files without adding them to the working tree.
This pull request adds a
-k
or--kustomize
option to fab generate. When this option is passed, a kustomization.yaml will be generated for each environment with the Kubernetes YAML files added as resources. This allows executingkubectl apply -k
on directories with the generated files.This PR implements #239, and was inspired by #240