From f3a0d3548530e6ea8537f14d1c0ec46e53e4dc77 Mon Sep 17 00:00:00 2001 From: Volodymyr Stoiko Date: Tue, 3 Feb 2026 20:11:43 +0200 Subject: [PATCH] Make cloud-api-url configurable (#1827) --- config/configStruct.go | 1 + helm-chart/templates/04-hub-deployment.yaml | 4 ++-- helm-chart/templates/09-worker-daemon-set.yaml | 4 ++-- helm-chart/values.yaml | 1 + 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/config/configStruct.go b/config/configStruct.go index 4a13e5088..8bcb0621b 100644 --- a/config/configStruct.go +++ b/config/configStruct.go @@ -177,6 +177,7 @@ type ConfigStruct struct { DumpLogs bool `yaml:"dumpLogs" json:"dumpLogs" default:"false"` HeadlessMode bool `yaml:"headless" json:"headless" default:"false"` License string `yaml:"license" json:"license" default:""` + CloudApiUrl string `yaml:"cloudApiUrl" json:"cloudApiUrl" default:"https://api.kubeshark.com"` CloudLicenseEnabled bool `yaml:"cloudLicenseEnabled" json:"cloudLicenseEnabled" default:"true"` AiAssistantEnabled bool `yaml:"aiAssistantEnabled" json:"aiAssistantEnabled" default:"true"` DemoModeEnabled bool `yaml:"demoModeEnabled" json:"demoModeEnabled" default:"false"` diff --git a/helm-chart/templates/04-hub-deployment.yaml b/helm-chart/templates/04-hub-deployment.yaml index be8a3e68e..78db8521c 100644 --- a/helm-chart/templates/04-hub-deployment.yaml +++ b/helm-chart/templates/04-hub-deployment.yaml @@ -55,6 +55,8 @@ spec: {{- if .Values.tap.gitops.enabled }} - -gitops {{- end }} + - -cloud-api-url + - '{{ .Values.cloudApiUrl }}' {{- if .Values.tap.secrets }} envFrom: {{- range .Values.tap.secrets }} @@ -75,8 +77,6 @@ spec: value: '{{ (include "sentry.enabled" .) }}' - name: SENTRY_ENVIRONMENT value: '{{ .Values.tap.sentry.environment }}' - - name: KUBESHARK_CLOUD_API_URL - value: 'https://api.kubeshark.com' - name: PROFILING_ENABLED value: '{{ .Values.tap.pprof.enabled }}' {{- if .Values.tap.docker.overrideImage.hub }} diff --git a/helm-chart/templates/09-worker-daemon-set.yaml b/helm-chart/templates/09-worker-daemon-set.yaml index 4ae71c0a9..4b9ee34b8 100644 --- a/helm-chart/templates/09-worker-daemon-set.yaml +++ b/helm-chart/templates/09-worker-daemon-set.yaml @@ -103,6 +103,8 @@ spec: - '{{ .Values.tap.storageLimit }}' - -capture-db-max-size - '{{ .Values.tap.capture.dbMaxSize }}' + - -cloud-api-url + - '{{ .Values.cloudApiUrl }}' {{- if .Values.tap.docker.overrideImage.worker }} image: '{{ .Values.tap.docker.overrideImage.worker }}' {{- else if .Values.tap.docker.overrideTag.worker }} @@ -129,8 +131,6 @@ spec: value: '{{ .Values.tap.misc.tcpStreamChannelTimeoutMs }}' - name: TCP_STREAM_CHANNEL_TIMEOUT_SHOW value: '{{ .Values.tap.misc.tcpStreamChannelTimeoutShow }}' - - name: KUBESHARK_CLOUD_API_URL - value: 'https://api.kubeshark.com' - name: PROFILING_ENABLED value: '{{ .Values.tap.pprof.enabled }}' - name: SENTRY_ENABLED diff --git a/helm-chart/values.yaml b/helm-chart/values.yaml index 02c788233..83cc20cc6 100644 --- a/helm-chart/values.yaml +++ b/helm-chart/values.yaml @@ -265,6 +265,7 @@ kube: dumpLogs: false headless: false license: "" +cloudApiUrl: "https://api.kubeshark.com" cloudLicenseEnabled: true aiAssistantEnabled: true demoModeEnabled: false