From 0da4424a46e3d683cbd675544c7894c8cbb640e2 Mon Sep 17 00:00:00 2001 From: Kat Inskip Date: Sat, 20 Jan 2024 13:19:16 -0800 Subject: [PATCH] ops(k8s): rejig cloudflare operator and make an app --- .../cloudflare-operator-app/application.yaml | 14 ++++++++++++++ .../cloudflare-operator-app/kustomization.yaml | 4 ++++ k8s/system/cloudflare-operator/kustomization.yaml | 2 +- k8s/system/kustomization.yaml | 2 +- 4 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 k8s/system/cloudflare-operator-app/application.yaml create mode 100644 k8s/system/cloudflare-operator-app/kustomization.yaml diff --git a/k8s/system/cloudflare-operator-app/application.yaml b/k8s/system/cloudflare-operator-app/application.yaml new file mode 100644 index 00000000..194c8cc9 --- /dev/null +++ b/k8s/system/cloudflare-operator-app/application.yaml @@ -0,0 +1,14 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: cloudflare-operator-app + namespace: argocd +spec: + destination: + namespace: cloudflare-operator-system + name: in-cluster + project: system + source: + repoURL: "https://github.com/gensokyo-zone/infrastructure" + path: k8s/system/cloudflare-operator + targetRevision: main \ No newline at end of file diff --git a/k8s/system/cloudflare-operator-app/kustomization.yaml b/k8s/system/cloudflare-operator-app/kustomization.yaml new file mode 100644 index 00000000..0b082ba2 --- /dev/null +++ b/k8s/system/cloudflare-operator-app/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- application.yaml \ No newline at end of file diff --git a/k8s/system/cloudflare-operator/kustomization.yaml b/k8s/system/cloudflare-operator/kustomization.yaml index 3e5ee8d1..673da6ff 100644 --- a/k8s/system/cloudflare-operator/kustomization.yaml +++ b/k8s/system/cloudflare-operator/kustomization.yaml @@ -2,4 +2,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - https://github.com/adyanth/cloudflare-operator.git//config/default?ref=v0.10.2 -- secret.yaml +- secret.yaml \ No newline at end of file diff --git a/k8s/system/kustomization.yaml b/k8s/system/kustomization.yaml index 06951f56..c8c551d3 100644 --- a/k8s/system/kustomization.yaml +++ b/k8s/system/kustomization.yaml @@ -7,4 +7,4 @@ resources: - coredns - local-path-provisioner - sops-secrets-operator -- cloudflare-operator \ No newline at end of file +- cloudflare-operator-app \ No newline at end of file