Skip to content

Comments

Replace privileged: true with fine grained capabilities#1209

Merged
pstranak-sw merged 2 commits intomasterfrom
chore/replace-privileged-with-fine-grained-capabilities
Dec 3, 2025
Merged

Replace privileged: true with fine grained capabilities#1209
pstranak-sw merged 2 commits intomasterfrom
chore/replace-privileged-with-fine-grained-capabilities

Conversation

@turytsia
Copy link
Contributor

Summary

This PR replaces privileged: true with fine grained capabilities according to documentation.

@turytsia turytsia requested a review from a team as a code owner November 26, 2025 09:40
@github-actions github-actions bot added the helm label Nov 26, 2025
Copy link
Contributor

@jakub-racek-swi jakub-racek-swi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, surely you've verified it works 👍

@@ -32,7 +32,21 @@ spec:
image: "{{ include "common.image" (tuple . .Values.network_topology (tuple "image" "obi")) }}"
imagePullPolicy: {{ .Values.network_topology.image.pullPolicy }}
securityContext:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would make this configurable:

  1. If .Values.network_topology.privileged is set, put here privileged: true.
  2. Else if .Values.network_topology.securityContext is set, put its content here.
  3. Else put these default values here.

@pstranak-sw pstranak-sw merged commit 020260f into master Dec 3, 2025
18 checks passed
@pstranak-sw pstranak-sw deleted the chore/replace-privileged-with-fine-grained-capabilities branch December 3, 2025 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

4 participants