Skip to content
This repository was archived by the owner on Jul 26, 2022. It is now read-only.

Commit 165662c

Browse files
arruzkFlydiverny
authored andcommitted
feat: Update aws-sdk to enable IRSA (AWS IAM Roles for ServiceAccounts) support, add securityContext to helm chart (#200)
- Update AWS SDK version - securityContext in a helm chart
1 parent 25e2f74 commit 165662c

File tree

5 files changed

+60
-48
lines changed

5 files changed

+60
-48
lines changed

charts/kubernetes-external-secrets/README.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ $ helm install --name my-release external-secrets/kubernetes-external-secrets
2222

2323
> **Tip:** A namespace can be specified by the `Helm` option '`--namespace kube-external-secrets`'
2424
25+
To install the chart with [AWS IAM Roles for Service Accounts](https://docs.aws.amazon.com/eks/latest/userguide/iam-roles-for-service-accounts.html):
26+
27+
```bash
28+
$ helm install --name my-release --set securityContext.fsGroup=65534 --set serviceAccount.annotations."eks\.amazonaws\.com/role-arn"='arn:aws:iam::111111111111:role/ROLENAME' external-secrets/kubernetes-external-secrets
29+
```
30+
2531
## Uninstalling the Chart
2632

2733
To uninstall/delete the deployment:
@@ -49,8 +55,10 @@ The following table lists the configurable parameters of the `kubernetes-externa
4955
| `nameOverride` | Override the name of app | `nil` |
5056
| `fullnameOverride` | Override the full name of app | `nil` |
5157
| `rbac.create` | Create & use RBAC resources | `true` |
58+
| `securityContext.fsGroup` | Security context for the container | `{}` |
5259
| `serviceAccount.create` | Whether a new service account name should be created. | `true` |
53-
| `serviceAccount.name` | Service account to be used. | automatically generated
60+
| `serviceAccount.name` | Service account to be used. | automatically generated |
61+
| `serviceAccount.annotations` | Annotations to be added to service account | `nil` |
5462
| `podAnnotations` | Annotations to be added to pods | `{}` |
5563
| `replicaCount` | Number of replicas | `1` |
5664
| `nodeSelector` | node labels for pod assignment | `{}` |

charts/kubernetes-external-secrets/templates/deployment.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ spec:
2424
{{- end }}
2525
spec:
2626
serviceAccountName: {{ template "kubernetes-external-secrets.serviceAccountName" . }}
27+
{{- if .Values.securityContext }}
28+
securityContext: {{ toYaml .Values.securityContext | nindent 8 }}
29+
{{- end }}
2730
containers:
2831
- name: {{ .Chart.Name }}
2932
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"

charts/kubernetes-external-secrets/values.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ fullnameOverride: ""
4343

4444
podAnnotations: {}
4545

46+
securityContext: {}
47+
# fsGroup: 65534
48+
4649
resources: {}
4750
# We usually recommend not to specify default resources and to leave this as a conscious
4851
# choice for the user. This also increases chances charts run on environments with little

package-lock.json

+44-46
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"node": ">=12.0.0"
3030
},
3131
"dependencies": {
32-
"aws-sdk": "^2.433.0",
32+
"aws-sdk": "^2.566.0",
3333
"express": "^4.17.1",
3434
"json-stream": "^1.0.0",
3535
"kubernetes-client": "^8.3.0",

0 commit comments

Comments
 (0)