Skip to content

Commit

Permalink
update-chart (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
calvix authored Nov 22, 2023
1 parent 5535d9b commit 12a1cff
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 15 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Updated

- Extract registry from container images to allow set it for all images on value level.
- Change node-selector values for to fit new scheme.
- Configure same service account for both controller and node to simplify IRSA role permissions.

## [1.1.0] - 2023-10-30

### Changed
Expand Down
6 changes: 3 additions & 3 deletions helm/aws-efs-csi-driver/templates/controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ spec:
- name: efs-plugin
securityContext:
privileged: true
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
args:
- --endpoint=$(CSI_ENDPOINT)
Expand Down Expand Up @@ -80,7 +80,7 @@ spec:
resources: {{ toYaml . | nindent 12 }}
{{- end }}
- name: csi-provisioner
image: {{ printf "%s:%s" .Values.sidecars.csiProvisioner.image.repository .Values.sidecars.csiProvisioner.image.tag }}
image: "{{ .Values.image.registry }}/{{ .Values.sidecars.csiProvisioner.image.repository }}:{{ .Values.sidecars.csiProvisioner.image.tag }}"
args:
- --csi-address=$(ADDRESS)
- --v={{ .Values.controller.logLevel }}
Expand All @@ -96,7 +96,7 @@ spec:
- name: socket-dir
mountPath: /var/lib/csi/sockets/pluginproxy/
- name: liveness-probe
image: {{ printf "%s:%s" .Values.sidecars.livenessProbe.image.repository .Values.sidecars.livenessProbe.image.tag }}
image: "{{ .Values.image.registry }}/{{ .Values.sidecars.livenessProbe.image.repository }}:{{ .Values.sidecars.livenessProbe.image.tag }}"
args:
- --csi-address=/csi/csi.sock
- --health-port={{ .Values.controller.healthPort }}
Expand Down
6 changes: 3 additions & 3 deletions helm/aws-efs-csi-driver/templates/node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ spec:
- name: efs-plugin
securityContext:
privileged: true
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag }}"
args:
- --endpoint=$(CSI_ENDPOINT)
- --logtostderr
Expand Down Expand Up @@ -84,7 +84,7 @@ spec:
resources: {{ toYaml . | nindent 12 }}
{{- end }}
- name: node-driver-registrar
image: {{ printf "%s:%s" .Values.sidecars.nodeDriverRegistrar.image.repository .Values.sidecars.nodeDriverRegistrar.image.tag }}
image: "{{ .Values.image.registry }}/{{ .Values.sidecars.nodeDriverRegistrar.image.repository }}:{{ .Values.sidecars.nodeDriverRegistrar.image.tag }}"
args:
- --csi-address=$(ADDRESS)
- --kubelet-registration-path=$(DRIVER_REG_SOCK_PATH)
Expand All @@ -107,7 +107,7 @@ spec:
resources: {{ toYaml . | nindent 12 }}
{{- end }}
- name: liveness-probe
image: {{ printf "%s:%s" .Values.sidecars.livenessProbe.image.repository .Values.sidecars.livenessProbe.image.tag }}
image: "{{ .Values.image.registry }}/{{ .Values.sidecars.livenessProbe.image.repository }}:{{ .Values.sidecars.livenessProbe.image.tag }}"
args:
- --csi-address=/csi/csi.sock
- --health-port={{ .Values.node.healthPort }}
Expand Down
19 changes: 10 additions & 9 deletions helm/aws-efs-csi-driver/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,25 @@ namespace: kube-system
replicaCount: 1

image:
repository: docker.io/giantswarm/aws-efs-csi-driver
registry: docker.io
repository: giantswarm/aws-efs-csi-driver
tag: "v1.7.0"
pullPolicy: IfNotPresent

sidecars:
livenessProbe:
image:
repository: docker.io/giantswarm/livenessprobe
repository: giantswarm/livenessprobe
tag: "v2.11.0"
resources: {}
nodeDriverRegistrar:
image:
repository: docker.io/giantswarm/csi-node-driver-registrar
repository: giantswarm/csi-node-driver-registrar
tag: "v2.9.1"
resources: {}
csiProvisioner:
image:
repository: docker.io/giantswarm/csi-provisioner
repository: giantswarm/csi-provisioner
tag: "v3.6.2"
resources: {}

Expand All @@ -52,13 +53,13 @@ node:
resources:
{}
nodeSelector:
kubernetes.io/role: worker
node.kubernetes.io/worker: ""
tolerations:
- operator: Exists
# Specifies whether a service account should be created
serviceAccount:
create: true
name: efs-csi-node-sa
name: efs-csi-sa
annotations: {}
## Enable if EKS IAM for SA is used
# eks.amazonaws.com/role-arn: arn:aws:iam::111122223333:role/efs-csi-role
Expand All @@ -84,13 +85,13 @@ controller:
resources:
{}
nodeSelector:
kubernetes.io/role: master
node-role.kubernetes.io/control-plane: ""
tolerations:
- operator: Exists
affinity: {}
serviceAccount:
create: true
name: efs-csi-controller-sa
create: false
name: efs-csi-sa
annotations: {}
## Enable if EKS IAM for SA is used
# eks.amazonaws.com/role-arn: arn:aws:iam::111122223333:role/efs-csi-role
Expand Down

0 comments on commit 12a1cff

Please sign in to comment.