Skip to content
Merged
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
26 changes: 26 additions & 0 deletions helm/robusta/templates/runner.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,32 @@ spec:
securityContext:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if .Values.runner.dnsConfig.enabled }}
{{- $policy := .Values.runner.dnsConfig.policy }}
{{- $hasConfig := or .Values.runner.dnsConfig.nameservers .Values.runner.dnsConfig.searches .Values.runner.dnsConfig.options }}

{{- if and (eq $policy "None") (not $hasConfig) }}
{{- fail "dnsConfig: when dnsPolicy is 'None', you must set at least one of nameservers, searches, or options" }}
{{- end }}
dnsPolicy: {{ $policy | quote }}
{{- if $hasConfig }}
dnsConfig:
{{- with .Values.runner.dnsConfig.nameservers }}
nameservers:
{{- toYaml . | nindent 10 }}
{{- end }}
{{- with .Values.runner.dnsConfig.searches }}
searches:
{{- toYaml . | nindent 10 }}
{{- end }}
{{- with .Values.runner.dnsConfig.options }}
options:
{{- toYaml . | nindent 10 }}
{{- end }}
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Comment thread
coderabbitai[bot] marked this conversation as resolved.
{{- end }}
{{ else }}
dnsPolicy: ClusterFirst
{{- end }}
{{- if .Values.runner.hardenedFs }}
initContainers:
- name: setup-venv
Expand Down
7 changes: 7 additions & 0 deletions helm/robusta/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -756,6 +756,13 @@ runner:
# Enable hardened filesystem security (read-only root filesystem with writable volume mounts)
hardenedFs: false
setKRRSecurityContext: false
#Enabled custom DNS configuration for runner
dnsConfig:
enabled: false
policy: ClusterFirst
nameservers: []
searches: []
options: []
# CRD permissions for common Kubernetes operators and tools
crdPermissions:
argo: true
Expand Down
Loading