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:
@@ -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: "",
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user