From b32828c6751522fcbc62610e07f0aaa080570055 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20M=C3=BCller?= Date: Fri, 15 Mar 2024 23:17:00 +0100 Subject: [PATCH] feat(capacitor): add flux sync for capacitor manifests --- .../apps/flux-system/capacitor/flux-sync.yaml | 18 ++++++++++++++++++ .../apps/flux-system/kustomization.yaml | 1 + .../repositories/oci/capacitor-manifests.yaml | 13 +++++++++++++ 3 files changed, 32 insertions(+) create mode 100644 kubernetes/talos-flux/apps/flux-system/capacitor/flux-sync.yaml create mode 100644 kubernetes/talos-flux/flux/repositories/oci/capacitor-manifests.yaml diff --git a/kubernetes/talos-flux/apps/flux-system/capacitor/flux-sync.yaml b/kubernetes/talos-flux/apps/flux-system/capacitor/flux-sync.yaml new file mode 100644 index 000000000..517ec0501 --- /dev/null +++ b/kubernetes/talos-flux/apps/flux-system/capacitor/flux-sync.yaml @@ -0,0 +1,18 @@ +--- +# yaml-language-server: $schema=https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/main/kustomization-kustomize-v1.json +apiVersion: kustomize.toolkit.fluxcd.io/v1 +kind: Kustomization +metadata: + name: capacitor + namespace: flux-system +spec: + targetNamespace: flux-system + interval: 1h + retryInterval: 2m + timeout: 5m + wait: true + prune: true + path: ./ + sourceRef: + kind: OCIRepository + name: capacitor-manifests diff --git a/kubernetes/talos-flux/apps/flux-system/kustomization.yaml b/kubernetes/talos-flux/apps/flux-system/kustomization.yaml index d65472638..be3fdf5b3 100644 --- a/kubernetes/talos-flux/apps/flux-system/kustomization.yaml +++ b/kubernetes/talos-flux/apps/flux-system/kustomization.yaml @@ -6,3 +6,4 @@ resources: # - ./namespace.yaml namespace is part of gotk manifests and will switch reconcile - ./gotk/flux-sync.yaml - ./gimlet/flux-sync.yaml + - ./capacitor/flux-sync.yaml diff --git a/kubernetes/talos-flux/flux/repositories/oci/capacitor-manifests.yaml b/kubernetes/talos-flux/flux/repositories/oci/capacitor-manifests.yaml new file mode 100644 index 000000000..b7a1deee6 --- /dev/null +++ b/kubernetes/talos-flux/flux/repositories/oci/capacitor-manifests.yaml @@ -0,0 +1,13 @@ +--- +# yaml-language-server: $schema=https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/main/ocirepository-source-v1beta2.json +apiVersion: source.toolkit.fluxcd.io/v1beta2 +kind: OCIRepository +metadata: + name: capacitor-manifests + namespace: flux-system +spec: + interval: 12h + url: oci://ghcr.io/gimlet-io/capacitor-manifests + ref: + tag: v0.3.2 + digest: sha256:5839d05c70f18743256c29af42c8ad3cd7525035d3093a1ebe2365e80bb2fcf3