Add Kuztomization

This commit is contained in:
Daniel Cosme
2026-04-21 10:05:38 -04:00
parent 61cc4c71d5
commit 8127cdf42b
8 changed files with 91 additions and 26 deletions

View File

@@ -19,6 +19,7 @@ func init() {
}
func Stack() stack.Stack {
s := stack.NewStack("flux", map[string]any{
"apps": Apps(),
})
@@ -45,7 +46,7 @@ func Apps() kz.Kustomization {
Path: root.FLUX_APPS_HYDRA_PATH,
Prune: true,
}
return kube.NewKustomization(flux_apps_meta, spec)
return kube.NewFluxKustomization(flux_apps_meta, spec)
}
func durMin(d int64) meta.Duration {

View File

@@ -32,13 +32,15 @@ func init() {
}
func Stack() stack.Stack {
s := stack.NewStack("linkding", map[string]any{
"namespace": Namespace,
"srv": srv,
"pvc": pvc,
"deployment": deployment(),
})
return s
kz := kube.NewKuztomizedStack(
map[string]any{
"namespace": Namespace,
"srv": srv,
"pvc": pvc,
"deployment": deployment(),
},
)
return kz.Stack("linkding")
}
func deployment() apps.Deployment {