From 6b228e725a3ba6e6bf4b5610786db6eee64cac1f Mon Sep 17 00:00:00 2001 From: Qixiang Wan Date: Wed, 10 Dec 2025 21:55:35 +0800 Subject: [PATCH] mintmaker: add controller config for stone-stg-rh01 Add cluster-specific configuration for the stone-stg-rh01 staging environment to enable Kite integration: - Create config.json to enable Kite integration and add the API URL - Add kustomization.yaml that generates a ConfigMap from config.json - Add patch to mount the config as a volume at /etc/mintmaker --- .../staging/stone-stg-rh01/config.json | 6 ++++++ .../staging/stone-stg-rh01/kustomization.yaml | 13 +++++++++++++ .../manager-mount-config-patch.yaml | 17 +++++++++++++++++ 3 files changed, 36 insertions(+) create mode 100644 components/mintmaker/staging/stone-stg-rh01/config.json create mode 100644 components/mintmaker/staging/stone-stg-rh01/kustomization.yaml create mode 100644 components/mintmaker/staging/stone-stg-rh01/manager-mount-config-patch.yaml diff --git a/components/mintmaker/staging/stone-stg-rh01/config.json b/components/mintmaker/staging/stone-stg-rh01/config.json new file mode 100644 index 00000000000..d0fdc8f6eb3 --- /dev/null +++ b/components/mintmaker/staging/stone-stg-rh01/config.json @@ -0,0 +1,6 @@ +{ + "kite": { + "enabled": true, + "api-url": "https://konflux-kite-api-konflux-kite.apps.stone-stg-rh01.l2vh.p1.openshiftapps.com" + } +} diff --git a/components/mintmaker/staging/stone-stg-rh01/kustomization.yaml b/components/mintmaker/staging/stone-stg-rh01/kustomization.yaml new file mode 100644 index 00000000000..e5dc4378f6f --- /dev/null +++ b/components/mintmaker/staging/stone-stg-rh01/kustomization.yaml @@ -0,0 +1,13 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- ../base +namespace: mintmaker + +configMapGenerator: + - name: controller-config + files: + - config.json + +patches: + - path: manager-mount-config-patch.yaml diff --git a/components/mintmaker/staging/stone-stg-rh01/manager-mount-config-patch.yaml b/components/mintmaker/staging/stone-stg-rh01/manager-mount-config-patch.yaml new file mode 100644 index 00000000000..c593aeda5cd --- /dev/null +++ b/components/mintmaker/staging/stone-stg-rh01/manager-mount-config-patch.yaml @@ -0,0 +1,17 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: controller-manager + namespace: system +spec: + template: + spec: + containers: + - name: manager + volumeMounts: + - name: controller-config + mountPath: /etc/mintmaker + volumes: + - name: controller-config + configMap: + name: controller-config