Add a dry-run mode to flux build kustomization

If implemented user will be able to use `flux build kustomization`
without any connection to the cluster.

Signed-off-by: Soule BA <soule@weave.works>
This commit is contained in:
Soule BA 2022-11-15 12:01:07 +01:00
parent 35ea91c111
commit ad5daee004
No known key found for this signature in database
GPG key ID: 4D40965192802994
7 changed files with 274 additions and 200 deletions

View file

@ -97,7 +97,7 @@ func TestDiffKustomization(t *testing.T) {
"fluxns": allocateNamespace("flux-system"),
}
b, _ := build.NewBuilder(kubeconfigArgs, kubeclientOptions, "podinfo", "")
b, _ := build.NewBuilder("podinfo", "", build.WithClientConfig(kubeconfigArgs, kubeclientOptions))
resourceManager, err := b.Manager()
if err != nil {