From 6f8f73e6b63ae09d8d329d84d041f84e1a6f8447 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastian=20Echterh=C3=B6lter?= Date: Fri, 25 Oct 2024 16:40:46 +0200 Subject: [PATCH] feat: make subroutines configurable --- .../account-operator/templates/deployment.yaml | 8 ++++++++ .../tests/__snapshot__/deployment_test.yaml.snap | 16 ++++++++++++++++ charts/account-operator/values.yaml | 10 ++++++++++ 3 files changed, 34 insertions(+) diff --git a/charts/account-operator/templates/deployment.yaml b/charts/account-operator/templates/deployment.yaml index 1e9724f1e..68d22f846 100644 --- a/charts/account-operator/templates/deployment.yaml +++ b/charts/account-operator/templates/deployment.yaml @@ -54,6 +54,14 @@ spec: cpu: {{ .Values.deployment.resources.requests.cpu }} memory: {{ .Values.deployment.resources.requests.memory }} env: + - name: SUBROUTINES_NAMESPACE_ENABLED + value: "{{ .Values.subroutines.namespace.enabled }}" + - name: SUBROUTINES_CREATOR_ENABLED + value: "{{ .Values.subroutines.creator.enabled }}" + - name: SUBROUTINES_EXTENSION_ENABLED + value: "{{ .Values.subroutines.extension.enabled }}" + - name: SUBROUTINES_EXTENSION_READY_ENABLED + value: "{{ .Values.subroutines.extensionReady.enabled }}" - name: KCP_ENABLED value: "{{ .Values.kcp.enabled }}" - name: KCP_VIRTUAL_WORKSPACE_URL diff --git a/charts/account-operator/tests/__snapshot__/deployment_test.yaml.snap b/charts/account-operator/tests/__snapshot__/deployment_test.yaml.snap index 93cb7c8b3..a192e6922 100644 --- a/charts/account-operator/tests/__snapshot__/deployment_test.yaml.snap +++ b/charts/account-operator/tests/__snapshot__/deployment_test.yaml.snap @@ -94,6 +94,14 @@ operator match the snapshot: - --log-level= - --health-probe-bind-address=:8081 env: + - name: SUBROUTINES_NAMESPACE_ENABLED + value: "true" + - name: SUBROUTINES_CREATOR_ENABLED + value: "true" + - name: SUBROUTINES_EXTENSION_ENABLED + value: "true" + - name: SUBROUTINES_EXTENSION_READY_ENABLED + value: "true" - name: KCP_ENABLED value: "false" - name: KCP_VIRTUAL_WORKSPACE_URL @@ -235,6 +243,14 @@ operator match the snapshot (with kubeconfigSecret): - --log-level= - --health-probe-bind-address=:8081 env: + - name: SUBROUTINES_NAMESPACE_ENABLED + value: "true" + - name: SUBROUTINES_CREATOR_ENABLED + value: "true" + - name: SUBROUTINES_EXTENSION_ENABLED + value: "true" + - name: SUBROUTINES_EXTENSION_READY_ENABLED + value: "true" - name: KCP_ENABLED value: "false" - name: KCP_VIRTUAL_WORKSPACE_URL diff --git a/charts/account-operator/values.yaml b/charts/account-operator/values.yaml index bf2331cb2..9b083b5e6 100644 --- a/charts/account-operator/values.yaml +++ b/charts/account-operator/values.yaml @@ -27,4 +27,14 @@ kcp: enabled: false virtualWorkspaceUrl: "" +subroutines: + namespace: + enabled: true + creator: + enabled: true + extension: + enabled: true + extensionReady: + enabled: true + kubeconfigSecret: ""