Skip to content

Commit

Permalink
[Neutron Agent] Enable additional sec capabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
sven-rosenzweig committed Nov 12, 2024
1 parent 603df8a commit 1be88cb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{{- $envAll := . }}
{{- if .Values.agent.apod | default false }}
{{- if .Values.global.apods | default false }}
{{- $release_requires_sec_cap:= or (hasPrefix "ussuri" (default .Values.imageVersion .Values.imageVersionServerAPI)) (hasPrefix "yoga" (default .Values.imageVersion .Values.imageVersionServerAPI)) -}}
{{ range $az_long, $apods := .Values.global.apods }}
{{ range $k, $apod := $apods }}
{{- if not (has $apod ($.Values.disabled_network_agents | default list )) }}
Expand Down Expand Up @@ -163,12 +162,10 @@ spec:
capabilities:
add:
- NET_ADMIN
{{- if $release_requires_sec_cap }}
- SYS_ADMIN
- DAC_OVERRIDE
- DAC_READ_SEARCH
- SYS_PTRACE
{{ end }}
resources:
{{ toYaml $.Values.pod.resources.linuxbridge_agent | indent 12 }}
volumeMounts:
Expand Down
3 changes: 0 additions & 3 deletions openstack/neutron/templates/statefulset-network-agent.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{{- $envAll := . }}
{{- $release_requires_sec_cap:= or (hasPrefix "ussuri" (default .Values.imageVersion .Values.imageVersionServerAPI)) (hasPrefix "yoga" (default .Values.imageVersion .Values.imageVersionServerAPI)) -}}
{{- if and (.Values.agent.multus | default false) .Values.agent.controlplane }}
{{- $az_count := len .Values.global.availability_zones -}}
{{ range $i, $az_long := .Values.global.availability_zones | default (list (printf "%sa" $.Values.global.region) (printf "%sb" $.Values.global.region)) }}
Expand Down Expand Up @@ -246,12 +245,10 @@ spec:
capabilities:
add:
- NET_ADMIN
{{- if $release_requires_sec_cap }}
- SYS_ADMIN
- DAC_OVERRIDE
- DAC_READ_SEARCH
- SYS_PTRACE
{{ end }}
resources:
{{ toYaml $.Values.pod.resources.linuxbridge_agent | indent 12 }}
volumeMounts:
Expand Down

0 comments on commit 1be88cb

Please sign in to comment.