feat: implement secret management with SOPS

This commit is contained in:
Daniel Cosme
2026-04-20 19:58:02 -04:00
parent 6e1da78e02
commit e3c73ed372
20 changed files with 260 additions and 19 deletions
+7
View File
@@ -7,6 +7,7 @@ import (
"danicos.dev/daniel/go-kube/pkg/stack"
"danicos.dev/daniel/homelab/pkg/root"
kz "github.com/fluxcd/kustomize-controller/api/v1"
flux_meta "github.com/fluxcd/pkg/apis/meta"
meta "k8s.io/apimachinery/pkg/apis/meta/v1"
)
@@ -28,6 +29,12 @@ func Apps() kz.Kustomization {
retryInteval := durMin(1)
timeout := durMin(5)
spec := kz.KustomizationSpec{
Decryption: &kz.Decryption{
Provider: root.FLUX_DECRYPTION_PROVIDER,
SecretRef: &flux_meta.LocalObjectReference{
Name: "sops-age",
},
},
Interval: durMin(10),
RetryInterval: &retryInteval,
Timeout: &timeout,