Skip to content

Commit 074b40a

Browse files
authored
feat: add deployment annotations field (#75)
* feat: add deployment annotations field Signed-off-by: GitHub <[email protected]> * Update Chart.yaml
1 parent 61bba82 commit 074b40a

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-1
lines changed

helm/oauth2-proxy/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: oauth2-proxy
2-
version: 5.3.0
2+
version: 5.4.0
33
apiVersion: v2
44
appVersion: 7.2.0
55
home: https://oauth2-proxy.github.io/oauth2-proxy/

helm/oauth2-proxy/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ Parameter | Description | Default
129129
`livenessProbe.initialDelaySeconds` | number of seconds | 0
130130
`livenessProbe.timeoutSeconds` | number of seconds | 1
131131
`nodeSelector` | node labels for pod assignment | `{}`
132+
`deploymentAnnotations` | annotations to add to the deployment | `{}`
132133
`podAnnotations` | annotations to add to each pod | `{}`
133134
`podLabels` | additional labesl to add to each pod | `{}`
134135
`podDisruptionBudget.enabled`| Enabled creation of PodDisruptionBudget (only if replicaCount > 1) | true

helm/oauth2-proxy/templates/deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ metadata:
44
labels:
55
app: {{ template "oauth2-proxy.name" . }}
66
{{- include "oauth2-proxy.labels" . | indent 4 }}
7+
{{- if .Values.deploymentAnnotations }}
8+
annotations:
9+
{{ toYaml .Values.deploymentAnnotations | indent 8 }}
10+
{{- end }}
711
name: {{ template "oauth2-proxy.fullname" . }}
812
spec:
913
replicas: {{ .Values.replicaCount }}

helm/oauth2-proxy/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ securityContext:
191191
# allowPrivilegeEscalation: false
192192
# runAsUser: 2000
193193

194+
deploymentAnnotations: {}
194195
podAnnotations: {}
195196
podLabels: {}
196197
replicaCount: 1

0 commit comments

Comments
 (0)