mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-07-20 11:10:54 +00:00
🔨 Add demoModeEnabled
helm value (#1714)
* 🔨 Add `demoModeEnabled` helm value * 🐛 Fix `demoModeEnabled` ternary expressions * 🦺 Check `demoModeEnabled` existence
This commit is contained in:
parent
95d6655af6
commit
631e5f2d24
@ -150,6 +150,7 @@ type ConfigStruct struct {
|
|||||||
HeadlessMode bool `yaml:"headless" json:"headless" default:"false"`
|
HeadlessMode bool `yaml:"headless" json:"headless" default:"false"`
|
||||||
License string `yaml:"license" json:"license" default:""`
|
License string `yaml:"license" json:"license" default:""`
|
||||||
CloudLicenseEnabled bool `yaml:"cloudLicenseEnabled" json:"cloudLicenseEnabled" default:"true"`
|
CloudLicenseEnabled bool `yaml:"cloudLicenseEnabled" json:"cloudLicenseEnabled" default:"true"`
|
||||||
|
DemoModeEnabled bool `yaml:"demoModeEnabled" json:"demoModeEnabled" default:"false"`
|
||||||
SupportChatEnabled bool `yaml:"supportChatEnabled" json:"supportChatEnabled" default:"true"`
|
SupportChatEnabled bool `yaml:"supportChatEnabled" json:"supportChatEnabled" default:"true"`
|
||||||
InternetConnectivity bool `yaml:"internetConnectivity" json:"internetConnectivity" default:"true"`
|
InternetConnectivity bool `yaml:"internetConnectivity" json:"internetConnectivity" default:"true"`
|
||||||
Scripting configStructs.ScriptingConfig `yaml:"scripting" json:"scripting"`
|
Scripting configStructs.ScriptingConfig `yaml:"scripting" json:"scripting"`
|
||||||
|
@ -37,7 +37,15 @@ spec:
|
|||||||
- name: REACT_APP_TIMEZONE
|
- name: REACT_APP_TIMEZONE
|
||||||
value: '{{ not (eq .Values.timezone "") | ternary .Values.timezone " " }}'
|
value: '{{ not (eq .Values.timezone "") | ternary .Values.timezone " " }}'
|
||||||
- name: REACT_APP_SCRIPTING_DISABLED
|
- name: REACT_APP_SCRIPTING_DISABLED
|
||||||
value: '{{ .Values.tap.liveConfigMapChangesDisabled }}'
|
value: '{{- if .Values.tap.liveConfigMapChangesDisabled -}}
|
||||||
|
{{- if .Values.demoModeEnabled -}}
|
||||||
|
{{ .Values.demoModeEnabled | ternary false true }}
|
||||||
|
{{- else -}}
|
||||||
|
true
|
||||||
|
{{- end }}
|
||||||
|
{{- else -}}
|
||||||
|
false
|
||||||
|
{{- end }}'
|
||||||
- name: REACT_APP_TARGETED_PODS_UPDATE_DISABLED
|
- name: REACT_APP_TARGETED_PODS_UPDATE_DISABLED
|
||||||
value: '{{ .Values.tap.liveConfigMapChangesDisabled }}'
|
value: '{{ .Values.tap.liveConfigMapChangesDisabled }}'
|
||||||
- name: REACT_APP_PRESET_FILTERS_CHANGING_ENABLED
|
- name: REACT_APP_PRESET_FILTERS_CHANGING_ENABLED
|
||||||
|
@ -27,7 +27,15 @@ data:
|
|||||||
AUTH_SAML_ROLE_ATTRIBUTE: '{{ .Values.tap.auth.saml.roleAttribute }}'
|
AUTH_SAML_ROLE_ATTRIBUTE: '{{ .Values.tap.auth.saml.roleAttribute }}'
|
||||||
AUTH_SAML_ROLES: '{{ .Values.tap.auth.saml.roles | toJson }}'
|
AUTH_SAML_ROLES: '{{ .Values.tap.auth.saml.roles | toJson }}'
|
||||||
TELEMETRY_DISABLED: '{{ not .Values.internetConnectivity | ternary "true" (not .Values.tap.telemetry.enabled | ternary "true" "false") }}'
|
TELEMETRY_DISABLED: '{{ not .Values.internetConnectivity | ternary "true" (not .Values.tap.telemetry.enabled | ternary "true" "false") }}'
|
||||||
SCRIPTING_DISABLED: '{{ .Values.tap.liveConfigMapChangesDisabled | ternary "true" "" }}'
|
SCRIPTING_DISABLED: '{{- if .Values.tap.liveConfigMapChangesDisabled -}}
|
||||||
|
{{- if .Values.demoModeEnabled -}}
|
||||||
|
{{ .Values.demoModeEnabled | ternary false true }}
|
||||||
|
{{- else -}}
|
||||||
|
true
|
||||||
|
{{- end }}
|
||||||
|
{{- else -}}
|
||||||
|
false
|
||||||
|
{{- end }}'
|
||||||
TARGETED_PODS_UPDATE_DISABLED: '{{ .Values.tap.liveConfigMapChangesDisabled | ternary "true" "" }}'
|
TARGETED_PODS_UPDATE_DISABLED: '{{ .Values.tap.liveConfigMapChangesDisabled | ternary "true" "" }}'
|
||||||
PRESET_FILTERS_CHANGING_ENABLED: '{{ .Values.tap.liveConfigMapChangesDisabled | ternary "false" "true" }}'
|
PRESET_FILTERS_CHANGING_ENABLED: '{{ .Values.tap.liveConfigMapChangesDisabled | ternary "false" "true" }}'
|
||||||
RECORDING_DISABLED: '{{ .Values.tap.liveConfigMapChangesDisabled | ternary "true" "" }}'
|
RECORDING_DISABLED: '{{ .Values.tap.liveConfigMapChangesDisabled | ternary "true" "" }}'
|
||||||
|
Loading…
Reference in New Issue
Block a user