From 42e772da0506da5afa5e731a1a116250f5ccf691 Mon Sep 17 00:00:00 2001 From: Joseph Hanson Date: Tue, 16 Jan 2024 21:20:04 -0600 Subject: [PATCH] Remove duplicate snapshot controller. --- kubernetes/apps/system/kustomization.yaml | 1 - .../snapshot-controller/app/helmrelease.yaml | 34 ------------------- .../app/kustomization.yaml | 6 ---- .../system/snapshot-controller/app/pki.yaml | 17 ---------- .../apps/system/snapshot-controller/ks.yaml | 22 ------------ 5 files changed, 80 deletions(-) delete mode 100644 kubernetes/apps/system/snapshot-controller/app/helmrelease.yaml delete mode 100644 kubernetes/apps/system/snapshot-controller/app/kustomization.yaml delete mode 100644 kubernetes/apps/system/snapshot-controller/app/pki.yaml delete mode 100644 kubernetes/apps/system/snapshot-controller/ks.yaml diff --git a/kubernetes/apps/system/kustomization.yaml b/kubernetes/apps/system/kustomization.yaml index bbfd6492..90776ced 100644 --- a/kubernetes/apps/system/kustomization.yaml +++ b/kubernetes/apps/system/kustomization.yaml @@ -8,4 +8,3 @@ resources: # Flux-Kustomizations - ./node-feature-discovery/ks.yaml - ./reloader/ks.yaml - - ./snapshot-controller/ks.yaml diff --git a/kubernetes/apps/system/snapshot-controller/app/helmrelease.yaml b/kubernetes/apps/system/snapshot-controller/app/helmrelease.yaml deleted file mode 100644 index 3e197891..00000000 --- a/kubernetes/apps/system/snapshot-controller/app/helmrelease.yaml +++ /dev/null @@ -1,34 +0,0 @@ ---- -# yaml-language-server: $schema=https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/main/helmrelease-helm-v2beta2.json -apiVersion: helm.toolkit.fluxcd.io/v2beta2 -kind: HelmRelease -metadata: - name: snapshot-controller -spec: - interval: 30m - chart: - spec: - chart: snapshot-controller - version: 2.0.4 - sourceRef: - kind: HelmRepository - name: piraeus - namespace: flux-system - maxHistory: 2 - install: - crds: CreateReplace - remediation: - retries: 3 - upgrade: - cleanupOnFail: true - crds: CreateReplace - remediation: - retries: 3 - uninstall: - keepHistory: false - values: - controller: - serviceMonitor: - create: true - webhook: - enabled: false diff --git a/kubernetes/apps/system/snapshot-controller/app/kustomization.yaml b/kubernetes/apps/system/snapshot-controller/app/kustomization.yaml deleted file mode 100644 index fbba51d1..00000000 --- a/kubernetes/apps/system/snapshot-controller/app/kustomization.yaml +++ /dev/null @@ -1,6 +0,0 @@ ---- -# yaml-language-server: $schema=https://json.schemastore.org/kustomization.json -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ./helmrelease.yaml diff --git a/kubernetes/apps/system/snapshot-controller/app/pki.yaml b/kubernetes/apps/system/snapshot-controller/app/pki.yaml deleted file mode 100644 index a2bb49e1..00000000 --- a/kubernetes/apps/system/snapshot-controller/app/pki.yaml +++ /dev/null @@ -1,17 +0,0 @@ ---- -# yaml-language-server: $schema=https://ks.hsn.dev/cert-manager.io/issuer_v1.json -apiVersion: cert-manager.io/v1 -kind: Issuer -metadata: - name: snapshot-controller-webhook-selfsign -spec: - selfSigned: {} ---- -# yaml-language-server: $schema=https://ks.hsn.dev/cert-manager.io/issuer_v1.json -apiVersion: cert-manager.io/v1 -kind: Issuer -metadata: - name: snapshot-controller-webhook-ca -spec: - ca: - secretName: snapshot-controller-webhook-ca diff --git a/kubernetes/apps/system/snapshot-controller/ks.yaml b/kubernetes/apps/system/snapshot-controller/ks.yaml deleted file mode 100644 index 2f92e3cc..00000000 --- a/kubernetes/apps/system/snapshot-controller/ks.yaml +++ /dev/null @@ -1,22 +0,0 @@ ---- -# 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: &appname snapshot-controller - namespace: flux-system -spec: - targetNamespace: system - commonMetadata: - labels: - app.kubernetes.io/name: *appname - interval: 10m - path: "./kubernetes/apps/system/snapshot-controller/app" - prune: true - sourceRef: - kind: GitRepository - name: homelab - wait: true - timeout: 2m - dependsOn: - - name: cert-manager