From e736d5f8741b026dd70154113bbb2a7a8ab6430b Mon Sep 17 00:00:00 2001 From: Sirius Claw Date: Mon, 20 Apr 2026 03:36:34 +0000 Subject: [PATCH] feat: Add KEDA and KEDA HTTP Add-on controllers --- .../controllers/base/keda/kustomization.yaml | 7 +++++++ .../controllers/base/keda/namespace.yaml | 4 ++++ .../base/keda/release-http-add-on.yaml | 21 +++++++++++++++++++ .../controllers/base/keda/release-keda.yaml | 19 +++++++++++++++++ .../controllers/base/keda/repository.yaml | 8 +++++++ .../staging/keda/kustomization.yaml | 4 ++++ 6 files changed, 63 insertions(+) create mode 100644 infrastructure/controllers/base/keda/kustomization.yaml create mode 100644 infrastructure/controllers/base/keda/namespace.yaml create mode 100644 infrastructure/controllers/base/keda/release-http-add-on.yaml create mode 100644 infrastructure/controllers/base/keda/release-keda.yaml create mode 100644 infrastructure/controllers/base/keda/repository.yaml create mode 100644 infrastructure/controllers/staging/keda/kustomization.yaml diff --git a/infrastructure/controllers/base/keda/kustomization.yaml b/infrastructure/controllers/base/keda/kustomization.yaml new file mode 100644 index 0000000..757ee4a --- /dev/null +++ b/infrastructure/controllers/base/keda/kustomization.yaml @@ -0,0 +1,7 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - namespace.yaml + - repository.yaml + - release-keda.yaml + - release-http-add-on.yaml diff --git a/infrastructure/controllers/base/keda/namespace.yaml b/infrastructure/controllers/base/keda/namespace.yaml new file mode 100644 index 0000000..e437703 --- /dev/null +++ b/infrastructure/controllers/base/keda/namespace.yaml @@ -0,0 +1,4 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: keda diff --git a/infrastructure/controllers/base/keda/release-http-add-on.yaml b/infrastructure/controllers/base/keda/release-http-add-on.yaml new file mode 100644 index 0000000..9e98e1d --- /dev/null +++ b/infrastructure/controllers/base/keda/release-http-add-on.yaml @@ -0,0 +1,21 @@ +apiVersion: helm.toolkit.fluxcd.io/v2beta1 +kind: HelmRelease +metadata: + name: keda-http-add-on + namespace: keda +spec: + interval: 1h + chart: + spec: + chart: keda-add-ons-http + version: ">= 0.8.0" + sourceRef: + kind: HelmRepository + name: kedacore + install: + createNamespace: true + crds: CreateReplace + upgrade: + crds: CreateReplace + dependsOn: + - name: keda diff --git a/infrastructure/controllers/base/keda/release-keda.yaml b/infrastructure/controllers/base/keda/release-keda.yaml new file mode 100644 index 0000000..3be8573 --- /dev/null +++ b/infrastructure/controllers/base/keda/release-keda.yaml @@ -0,0 +1,19 @@ +apiVersion: helm.toolkit.fluxcd.io/v2beta1 +kind: HelmRelease +metadata: + name: keda + namespace: keda +spec: + interval: 1h + chart: + spec: + chart: keda + version: ">= 2.14.0" + sourceRef: + kind: HelmRepository + name: kedacore + install: + createNamespace: true + crds: CreateReplace + upgrade: + crds: CreateReplace diff --git a/infrastructure/controllers/base/keda/repository.yaml b/infrastructure/controllers/base/keda/repository.yaml new file mode 100644 index 0000000..66f8240 --- /dev/null +++ b/infrastructure/controllers/base/keda/repository.yaml @@ -0,0 +1,8 @@ +apiVersion: source.toolkit.fluxcd.io/v1beta2 +kind: HelmRepository +metadata: + name: kedacore + namespace: keda +spec: + interval: 1h + url: https://kedacore.github.io/charts diff --git a/infrastructure/controllers/staging/keda/kustomization.yaml b/infrastructure/controllers/staging/keda/kustomization.yaml new file mode 100644 index 0000000..d9a6a4b --- /dev/null +++ b/infrastructure/controllers/staging/keda/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - ../../base/keda