diff --git a/infrastructure/hydra/kustomization.yaml b/infrastructure/hydra/kustomization.yaml index 322e5d6..5504fdb 100644 --- a/infrastructure/hydra/kustomization.yaml +++ b/infrastructure/hydra/kustomization.yaml @@ -4,3 +4,4 @@ resources: - coredns-config.yaml - truenas-csi/ - truenas-csi-driver.yaml + - monitoring/ diff --git a/magefiles/magefile.go b/magefiles/magefile.go index ed541b4..7f74a79 100644 --- a/magefiles/magefile.go +++ b/magefiles/magefile.go @@ -83,3 +83,15 @@ func Enc_Dec(opt string) error { t := target.NewA("./scripts/enc_dec_go.sh", opt) return r.RunV("Enc or Dec Go secrets", t) } + +// Reconcile flux +func Flux_reconcile() error { + t := target.NewA("flux", "--kubeconfig", "/home/daniel/.kube/hydra", "reconcile", "source", "git", "flux-system") + return r.RunV("Reconcile flux", t) +} + +// Gets flux status +func Flux_get() error { + t := target.NewA("flux", "--kubeconfig", "/home/daniel/.kube/hydra", "get", "kustomizations") + return r.RunV("Get flux", t) +}