mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-06-23 06:48:47 +00:00
🔨 Create dissectorsUiEnabled
flag (#1599)
* 🔨 Create `dissectorsUiEnabled` flag * 🔨 Rename `dissectorsUiEnabled` flag * 🔨 Add `DISSECTORS_UPDATING_ENABLED` config * 🔨 Set `dissectorsUpdatingEnabled: true` by default
This commit is contained in:
parent
1dfef1be23
commit
32caeb37e4
@ -99,19 +99,20 @@ type ManifestsConfig struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type ConfigStruct struct {
|
type ConfigStruct struct {
|
||||||
Tap configStructs.TapConfig `yaml:"tap" json:"tap"`
|
Tap configStructs.TapConfig `yaml:"tap" json:"tap"`
|
||||||
Logs configStructs.LogsConfig `yaml:"logs" json:"logs"`
|
Logs configStructs.LogsConfig `yaml:"logs" json:"logs"`
|
||||||
Config configStructs.ConfigConfig `yaml:"config,omitempty" json:"config,omitempty"`
|
Config configStructs.ConfigConfig `yaml:"config,omitempty" json:"config,omitempty"`
|
||||||
Kube KubeConfig `yaml:"kube" json:"kube"`
|
Kube KubeConfig `yaml:"kube" json:"kube"`
|
||||||
DumpLogs bool `yaml:"dumpLogs" json:"dumpLogs" default:"false"`
|
DumpLogs bool `yaml:"dumpLogs" json:"dumpLogs" default:"false"`
|
||||||
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"`
|
||||||
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"`
|
DissectorsUpdatingEnabled bool `yaml:"dissectorsUpdatingEnabled" json:"dissectorsUpdatingEnabled" default:"true"`
|
||||||
Manifests ManifestsConfig `yaml:"manifests,omitempty" json:"manifests,omitempty"`
|
Scripting configStructs.ScriptingConfig `yaml:"scripting" json:"scripting"`
|
||||||
Timezone string `yaml:"timezone" json:"timezone"`
|
Manifests ManifestsConfig `yaml:"manifests,omitempty" json:"manifests,omitempty"`
|
||||||
|
Timezone string `yaml:"timezone" json:"timezone"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (config *ConfigStruct) ImagePullPolicy() v1.PullPolicy {
|
func (config *ConfigStruct) ImagePullPolicy() v1.PullPolicy {
|
||||||
|
@ -188,6 +188,7 @@ Please refer to [metrics](./metrics.md) documentation for details.
|
|||||||
| `timezone` | IANA time zone applied to time shown in the front-end | `""` (local time zone applies) |
|
| `timezone` | IANA time zone applied to time shown in the front-end | `""` (local time zone applies) |
|
||||||
| `supportChatEnabled` | Enable real-time support chat channel based on Intercom | `true` |
|
| `supportChatEnabled` | Enable real-time support chat channel based on Intercom | `true` |
|
||||||
| `internetConnectivity` | Turns off API requests that are dependant on Internet connectivity such as `telemetry` and `online-support`. | `true` |
|
| `internetConnectivity` | Turns off API requests that are dependant on Internet connectivity such as `telemetry` and `online-support`. | `true` |
|
||||||
|
| `dissectorsUpdatingEnabled` | Turns off UI for enabling/disabling dissectors | `true` |
|
||||||
|
|
||||||
KernelMapping pairs kernel versions with a
|
KernelMapping pairs kernel versions with a
|
||||||
DriverContainer image. Kernel versions can be matched
|
DriverContainer image. Kernel versions can be matched
|
||||||
|
@ -60,6 +60,8 @@ spec:
|
|||||||
{{- end }}'
|
{{- end }}'
|
||||||
- name: REACT_APP_SUPPORT_CHAT_ENABLED
|
- name: REACT_APP_SUPPORT_CHAT_ENABLED
|
||||||
value: '{{ and .Values.supportChatEnabled .Values.internetConnectivity | ternary "true" "false" }}'
|
value: '{{ and .Values.supportChatEnabled .Values.internetConnectivity | ternary "true" "false" }}'
|
||||||
|
- name: REACT_APP_DISSECTORS_UPDATING_ENABLED
|
||||||
|
value: '{{ .Values.dissectorsUpdatingEnabled | ternary "true" "false" }}'
|
||||||
{{- if .Values.tap.docker.overrideTag.front }}
|
{{- if .Values.tap.docker.overrideTag.front }}
|
||||||
image: '{{ .Values.tap.docker.registry }}/front:{{ .Values.tap.docker.overrideTag.front }}'
|
image: '{{ .Values.tap.docker.registry }}/front:{{ .Values.tap.docker.overrideTag.front }}'
|
||||||
{{ else }}
|
{{ else }}
|
||||||
|
@ -47,5 +47,6 @@ data:
|
|||||||
{{- end }}'
|
{{- end }}'
|
||||||
DUPLICATE_TIMEFRAME: '{{ .Values.tap.misc.duplicateTimeframe }}'
|
DUPLICATE_TIMEFRAME: '{{ .Values.tap.misc.duplicateTimeframe }}'
|
||||||
ENABLED_DISSECTORS: '{{ gt (len .Values.tap.enabledDissectors) 0 | ternary (join "," .Values.tap.enabledDissectors) "" }}'
|
ENABLED_DISSECTORS: '{{ gt (len .Values.tap.enabledDissectors) 0 | ternary (join "," .Values.tap.enabledDissectors) "" }}'
|
||||||
|
DISSECTORS_UPDATING_ENABLED: '{{ .Values.dissectorsUpdatingEnabled | ternary "true" "false" }}'
|
||||||
DETECT_DUPLICATES: '{{ .Values.tap.misc.detectDuplicates | ternary "true" "false" }}'
|
DETECT_DUPLICATES: '{{ .Values.tap.misc.detectDuplicates | ternary "true" "false" }}'
|
||||||
|
|
||||||
|
@ -152,6 +152,7 @@ license: ""
|
|||||||
cloudLicenseEnabled: true
|
cloudLicenseEnabled: true
|
||||||
supportChatEnabled: true
|
supportChatEnabled: true
|
||||||
internetConnectivity: true
|
internetConnectivity: true
|
||||||
|
dissectorsUpdatingEnabled: true
|
||||||
scripting:
|
scripting:
|
||||||
env: {}
|
env: {}
|
||||||
source: ""
|
source: ""
|
||||||
|
Loading…
Reference in New Issue
Block a user