From d709ee89675858926e8c1938190afbdbea90b149 Mon Sep 17 00:00:00 2001 From: Ilia Medvedev Date: Sun, 19 Oct 2025 10:34:42 +0300 Subject: [PATCH 1/2] fix: app proxy isNamespaced returns nil in template failing the install --- .../templates/_components/cap-app-proxy/_config.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/charts/gitops-runtime/templates/_components/cap-app-proxy/_config.yaml b/charts/gitops-runtime/templates/_components/cap-app-proxy/_config.yaml index aa185052..209860b3 100644 --- a/charts/gitops-runtime/templates/_components/cap-app-proxy/_config.yaml +++ b/charts/gitops-runtime/templates/_components/cap-app-proxy/_config.yaml @@ -5,6 +5,7 @@ cors: {{ .Values.config.cors | default .Values.global.codefresh.url }} isConfigurationRuntime: {{ .Values.global.runtime.isConfigurationRuntime | quote }} isExternalArgoCD: {{ .Values.global.runtime.isExternalArgoCD | quote }} runtimeName: {{ required "global.runtime.name is required" .Values.global.runtime.name | quote}} +# Test CI isNamespacedRuntime: {{ .Values.global.runtime.singleNamespace | quote }} logLevel: {{ .Values.config.logLevel | quote }} {{- $enrichmentValues := get .Values "image-enrichment" }} From 1795fec9ca9878b9c13d01f1f9c998f51d29e571 Mon Sep 17 00:00:00 2001 From: Ilia Medvedev Date: Sun, 19 Oct 2025 11:16:33 +0300 Subject: [PATCH 2/2] add default value for singleNamespace --- .../templates/_components/cap-app-proxy/_config.yaml | 1 - charts/gitops-runtime/values.yaml | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/charts/gitops-runtime/templates/_components/cap-app-proxy/_config.yaml b/charts/gitops-runtime/templates/_components/cap-app-proxy/_config.yaml index 209860b3..aa185052 100644 --- a/charts/gitops-runtime/templates/_components/cap-app-proxy/_config.yaml +++ b/charts/gitops-runtime/templates/_components/cap-app-proxy/_config.yaml @@ -5,7 +5,6 @@ cors: {{ .Values.config.cors | default .Values.global.codefresh.url }} isConfigurationRuntime: {{ .Values.global.runtime.isConfigurationRuntime | quote }} isExternalArgoCD: {{ .Values.global.runtime.isExternalArgoCD | quote }} runtimeName: {{ required "global.runtime.name is required" .Values.global.runtime.name | quote}} -# Test CI isNamespacedRuntime: {{ .Values.global.runtime.singleNamespace | quote }} logLevel: {{ .Values.config.logLevel | quote }} {{- $enrichmentValues := get .Values "image-enrichment" }} diff --git a/charts/gitops-runtime/values.yaml b/charts/gitops-runtime/values.yaml index 63a07799..6480e9fa 100644 --- a/charts/gitops-runtime/values.yaml +++ b/charts/gitops-runtime/values.yaml @@ -49,6 +49,8 @@ global: cluster: https://kubernetes.default.svc # -- Defines whether this is a Codefresh hosted runtime. Should not be changed. codefreshHosted: false + # -- Defines if runtime is namespace scoped. Required for running multiple runtimes in the same cluster + singleNamespace: false # -- Ingress settings ingress: # -- if set to true, the pre-install hook will validate the existance of appropriate values, but *will not* attempt to make a web request to the ingress host