1
0
mirror of synced 2026-02-06 19:05:55 +00:00

Add sourcesecret and kustomization manifestgen

This includes a change to the `sync` generator to make the deploy
secret name configurable.

Signed-off-by: Hidde Beydals <hello@hidde.co>
This commit is contained in:
Hidde Beydals
2021-02-23 13:00:39 +01:00
parent ff2833c4d1
commit 8a5bba80bf
19 changed files with 690 additions and 495 deletions

View File

@@ -26,6 +26,7 @@ type Options struct {
Name string
Namespace string
Branch string
Secret string
TargetPath string
ManifestFile string
GitImplementation string
@@ -38,6 +39,7 @@ func MakeDefaultOptions() Options {
Name: "flux-system",
Namespace: "flux-system",
Branch: "main",
Secret: "flux-system",
ManifestFile: "gotk-sync.yaml",
TargetPath: "",
GitImplementation: "",

View File

@@ -53,7 +53,7 @@ func Generate(options Options) (*manifestgen.Manifest, error) {
Branch: options.Branch,
},
SecretRef: &meta.LocalObjectReference{
Name: options.Name,
Name: options.Secret,
},
GitImplementation: options.GitImplementation,
},