Skip to content

Commit

Permalink
Merge pull request #1112 from phantasm66/add-controller-security-cont…
Browse files Browse the repository at this point in the history
…ext-support

Add support for securityContext in controller
  • Loading branch information
k8s-ci-robot authored Dec 16, 2021
2 parents 3b308fd + 0aabbbe commit 705b545
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
6 changes: 5 additions & 1 deletion charts/aws-ebs-csi-driver/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
# Helm chart

## v2.6.0

* Add securityContext support for controller Deployment
* Bump app/driver version to `v1.6.0`

## v2.5.0

* Bump app/driver version to `v1.5.0`


## v2.4.1

* Replace deprecated arg `--extra-volume-tags` by `--extra-tags`
Expand Down
4 changes: 2 additions & 2 deletions charts/aws-ebs-csi-driver/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: v2
appVersion: 1.5.0
appVersion: 1.6.0
name: aws-ebs-csi-driver
description: A Helm chart for AWS EBS CSI Driver
version: 2.5.1
version: 2.6.0
kubeVersion: ">=1.17.0-0"
home: https://github.com/kubernetes-sigs/aws-ebs-csi-driver
sources:
Expand Down
4 changes: 4 additions & 0 deletions charts/aws-ebs-csi-driver/templates/controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ spec:
topologySpreadConstraints:
{{- $constraints | toYaml | nindent 8 }}
{{- end }}
{{- with .Values.controller.securityContext }}
securityContext:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: ebs-plugin
image: {{ printf "%s:%s" .Values.image.repository (default (printf "v%s" .Chart.AppVersion) (.Values.image.tag | toString)) }}
Expand Down
3 changes: 3 additions & 0 deletions charts/aws-ebs-csi-driver/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@ controller:
# topologyKey: kubernetes.io/hostname
# whenUnsatisfiable: ScheduleAnyway
topologySpreadConstraints: []
securityContext: {}
# AWS EKS /var/run/secrets/eks.amazonaws.com/serviceaccount/token FS group is nogroup (65534) - required for Kubernetes 1.18.x and below
# fsGroup: 65534

node:
env: []
Expand Down

0 comments on commit 705b545

Please sign in to comment.