Skip to content

Commit

Permalink
Add configurable securityContext to gcloud-sqlproxy (#107)
Browse files Browse the repository at this point in the history
* Add configurable securityContext to gcloud-sqlproxy

* Bump gcloud-sqlproxy chart version
  • Loading branch information
gw0 authored Jun 24, 2021
1 parent a79aeba commit 8994506
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion stable/gcloud-sqlproxy/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ maintainers:
name: gcloud-sqlproxy
sources:
- https://github.com/rimusz/charts
version: 0.20.4
version: 0.20.5
1 change: 1 addition & 0 deletions stable/gcloud-sqlproxy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ The following table lists the configurable parameters of the `gcloud-sqlproxy` c
| `networkPolicy.enabled` | Enable NetworkPolicy | `false` |
| `networkPolicy.ingress.from` | List of sources which should be able to access the pods selected for this rule. If empty, allows all sources. | `[]` |
| `extraArgs` | Additional container arguments | `{}` |
| `securityContext` | Configure Security Context | `{}` |
| `livenessProbe.enabled` | Would you like a livenessProbe to be enabled | `false` |
| `livenessProbe.port` | The port which will be checked by the probe | 5432 |
| `livenessProbe.initialDelaySeconds` | Delay before liveness probe is initiated | 30 |
Expand Down
2 changes: 2 additions & 0 deletions stable/gcloud-sqlproxy/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ spec:
{{ toYaml .Values.podAnnotations | indent 8 }}
spec:
serviceAccountName: {{ template "gcloud-sqlproxy.serviceAccountName" . }}
securityContext:
{{- toYaml .Values.securityContext | nindent 8 }}
{{- if .Values.priorityClassName }}
priorityClassName: "{{ .Values.priorityClassName }}"
{{- end }}
Expand Down
5 changes: 5 additions & 0 deletions stable/gcloud-sqlproxy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,11 @@ terminationGracePeriodSeconds: 30
## Pod annotations
podAnnotations: {}

## Configure Security Context
securityContext: {}
# runAsUser: 1000
# fsGroup: 1000

## Configure Pod Priority
priorityClassName: ""

Expand Down

0 comments on commit 8994506

Please sign in to comment.