Skip to content

Commit

Permalink
Merge pull request #509 from cwrau/fix/node-agent-security-context
Browse files Browse the repository at this point in the history
fix(velero): remove useless `nodeAgent.privileged`
  • Loading branch information
jenting authored Mar 1, 2024
2 parents b4ced58 + f440ce2 commit dde9531
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/velero/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ appVersion: 1.13.0
kubeVersion: ">=1.16.0-0"
description: A Helm chart for velero
name: velero
version: 5.4.1
version: 6.0.0
home: https://github.com/vmware-tanzu/velero
icon: https://cdn-images-1.medium.com/max/1600/1*-9mb3AKnKdcL_QD3CMnthQ.png
sources:
Expand Down
7 changes: 6 additions & 1 deletion charts/velero/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,13 @@ If a value needs to be added or changed, you may do so with the `upgrade` comman
```bash
helm upgrade vmware-tanzu/velero <RELEASE NAME> --reuse-values --set configuration.backupStorageLocation[0].provider=<NEW PROVIDER>
```
## Upgrading Chart

## Upgrading
### Upgrading to 6.0.0

This version removes the `nodeAgent.privileged` field, you should use `nodeAgent.containerSecurityContext.privileged` instead

## Upgrading Velero

### Upgrading to v1.13

Expand Down
1 change: 0 additions & 1 deletion charts/velero/templates/node-agent-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,6 @@ spec:
lifecycle: {{ toYaml .Values.nodeAgent.lifecycle | nindent 12 }}
{{- end }}
securityContext:
privileged: {{ .Values.nodeAgent.privileged }}
{{- with $containerSecurityContext }}
{{- toYaml . | nindent 12 }}
{{- end }}
Expand Down
1 change: 0 additions & 1 deletion charts/velero/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,6 @@ deployNodeAgent: false

nodeAgent:
podVolumePath: /var/lib/kubelet/pods
privileged: false
# Pod priority class name to use for the node-agent daemonset. Optional.
priorityClassName: ""
# Resource requests/limits to specify for the node-agent daemonset deployment. Optional.
Expand Down

0 comments on commit dde9531

Please sign in to comment.