Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[base-cluster/backup] node-agent containerSecurityContext #826

Open
cwrau opened this issue Mar 25, 2024 · 0 comments
Open

[base-cluster/backup] node-agent containerSecurityContext #826

cwrau opened this issue Mar 25, 2024 · 0 comments
Assignees
Labels
base-cluster enhancement New feature or request

Comments

@cwrau
Copy link
Member

cwrau commented Mar 25, 2024

Now that #812 has been merged, we should be able to add

--- a/charts/base-cluster/templates/backup/velero.yaml
+++ b/charts/base-cluster/templates/backup/velero.yaml
@@ -41,7 +41,7 @@ spec:
       runAsUser: 1000
       runAsGroup: 1000
       runAsNonRoot: true
-    containerSecurityContext:
+    containerSecurityContext: &containerSecurityContext
       readOnlyRootFilesystem: true
       privileged: false
       capabilities:
@@ -56,6 +56,7 @@ spec:
     nodeAgent:
       resources: {{- .Values.backup.nodeAgent.resources | toYaml | nindent 8 }}
       priorityClassName: system-cluster-critical
+      containerSecurityContext: *containerSecurityContext
     configuration:
       defaultBackupStorageLocation: {{ .Values.backup.defaultLocation | quote }}
       backupStorageLocation: {{- range $name, $spec := .Values.backup.backupStorageLocations }}
diff --git a/charts/base-cluster/values.yaml b/charts/base-cluster/values.yaml
index 1969372..d8f3f00 100644

but this should be tested.

@cwrau cwrau added enhancement New feature or request base-cluster labels Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
base-cluster enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants