Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions charts/s1-agent/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -636,6 +636,12 @@ requests:
{{- $_ := set $helperConfig "S1_USE_CUSTOM_CA" (printf "%t" .Values.configuration.custom_ca) -}}
{{- $_ := set $helperConfig "S1_EXCLUDE_NON_RUNNING_CONTAINERS" (printf "%t" .Values.configuration.env.helper.exclude_non_running_containers) -}}
{{- $_ := set $helperConfig "S1_EXCLUDE_INIT_CONTAINERS" (printf "%t" .Values.configuration.env.helper.exclude_init_containers) -}}
{{- if .Values.configuration.env.helper.pod_filter.namespaces -}}
{{- $_ := set $helperConfig "S1_POD_FILTER_NAMESPACES" (join "," .Values.configuration.env.helper.pod_filter.namespaces) -}}
{{- end -}}
{{- if .Values.configuration.env.helper.pod_filter.label_selectors -}}
{{- $_ := set $helperConfig "S1_POD_FILTER_LABEL_SELECTORS" (join "|" .Values.configuration.env.helper.pod_filter.label_selectors) -}}
{{- end -}}
{{- $helperConfig | toYaml -}}
{{- end -}}

Expand Down
11 changes: 11 additions & 0 deletions charts/s1-agent/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,17 @@ configuration:
ndr_enabled: false # to enable ndr mode, set to 'true' (Unsupported)
exclude_non_running_containers: true # to enable non-running containers metadata discovery, set to 'false'
exclude_init_containers: false # to exclude init containers metadata discovery, set to 'true'
pod_filter:
# Optional: restrict the pods informer to specific namespaces (OR logic).
# Leave empty to watch all namespaces (default behaviour).
# Example: ["default", "production"]
namespaces: []
# Optional: restrict the pods informer to pods matching these label selectors (OR logic).
# Each list entry is a standard Kubernetes label selector string where commas mean AND
# within that entry (e.g. "app=frontend,env=prod"). Multiple entries are OR-ed together.
# Leave empty for no label filtering (default behaviour).
# Example: ["app=myapp", "tier=backend,env=prod"]
label_selectors: []
ports:
grpc: 5071 # gRPC server control port
target: 6443 # Server target port (HTTPS)
Expand Down