Skip to content

Commit

Permalink
[stable/dex] Add podLabels support (helm#20060)
Browse files Browse the repository at this point in the history
* [stable/dex] Add podLabels support

Signed-off-by: Ondrej Homolka <[email protected]>

* [stable/dex] Updated chart README with podLabels parameter

Signed-off-by: Ondrej Homolka <[email protected]>

* [stable/dex] Bumbed version to 2.8.0

Signed-off-by: Ondrej Homolka <[email protected]>
  • Loading branch information
hmlkao committed Jan 30, 2020
1 parent bd99f09 commit 59036c1
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion stable/dex/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: dex
version: 2.7.0
version: 2.8.0
appVersion: 2.21.0
description: CoreOS Dex
keywords:
Expand Down
1 change: 1 addition & 0 deletions stable/dex/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ Parameters introduced starting from v2
| `crd.present` | Whether dex's CRDs are already present (if not cluster role and cluster role binding will be created to enable dex to create them). Depends on `rbac.create` | `false` |
| `grpc` | Enable dex grpc endpoint | `true` |
| `https` | Enable TLS termination for the dex http endpoint | `false` |
| `podLabels` | Custom pod labels | `{}` |
| `ports.grpc.containerPort` | grpc port listened by the dex | `5000` |
| `ports.grpc.nodePort` | K8S Service node port for the dex grpc listener | `35000` |
| `ports.grpc.servicePort` | K8S Service port for the dex grpc listener | `35000` |
Expand Down
3 changes: 3 additions & 0 deletions stable/dex/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ spec:
app.kubernetes.io/name: {{ include "dex.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/component: dex
{{- if .Values.podLabels }}
{{ toYaml .Values.podLabels | indent 8 }}
{{- end }}
annotations:
checksum/config: {{ include (print $.Template.BasePath "/secret.yaml") . | sha256sum }}
{{- if .Values.podAnnotations }}
Expand Down
2 changes: 2 additions & 0 deletions stable/dex/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ inMiniKube: false

nodeSelector: {}

podLabels: {}

podAnnotations: {}

initContainers: []
Expand Down

0 comments on commit 59036c1

Please sign in to comment.