From 4ec06b7c95ff6200f5b98dc813188370c0fbf170 Mon Sep 17 00:00:00 2001 From: Alon Girmonsky <1990761+alongir@users.noreply.github.com> Date: Thu, 1 Aug 2024 17:54:05 -0700 Subject: [PATCH] When internet connectivity is off, remove the option to have a cloud license. --- helm-chart/templates/06-front-deployment.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helm-chart/templates/06-front-deployment.yaml b/helm-chart/templates/06-front-deployment.yaml index 1fd0a366e..0af20d4df 100644 --- a/helm-chart/templates/06-front-deployment.yaml +++ b/helm-chart/templates/06-front-deployment.yaml @@ -27,7 +27,7 @@ spec: - name: REACT_APP_DEFAULT_FILTER value: '{{ not (eq .Values.tap.defaultFilter "") | ternary .Values.tap.defaultFilter " " }}' - name: REACT_APP_AUTH_ENABLED - value: '{{- if and .Values.cloudLicenseEnabled (not (empty .Values.license)) -}} + value: '{{- if or (and .Values.cloudLicenseEnabled (not (empty .Values.license))) (not .Values.internetConnectivity) -}} "false" {{- else -}} {{ .Values.cloudLicenseEnabled | ternary "true" .Values.tap.auth.enabled }} @@ -53,7 +53,7 @@ spec: {{ .Values.tap.stopTrafficCapturingDisabled | ternary "true" "false" }} {{- end -}}' - name: 'REACT_APP_CLOUD_LICENSE_ENABLED' - value: '{{- if and .Values.cloudLicenseEnabled (not (empty .Values.license)) -}} + value: '{{- if or (and .Values.cloudLicenseEnabled (not (empty .Values.license))) (not .Values.internetConnectivity) -}} "false" {{- else -}} {{ .Values.cloudLicenseEnabled }}