Skip to content

Commit

Permalink
feat: add config to disable courier (#550)
Browse files Browse the repository at this point in the history
  • Loading branch information
viters authored Nov 23, 2022
1 parent f077094 commit 7d3e6d5
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions helm/charts/kratos/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ A ORY Kratos Helm chart for Kubernetes
| statefulSet.topologySpreadConstraints | list | `[]` | Configure pod topologySpreadConstraints. |
| strategy | object | `{"rollingUpdate":{"maxSurge":"30%","maxUnavailable":0},"type":"RollingUpdate"}` | Deployment update strategy |
| tolerations | list | `[]` | If you do want to specify node labels, uncomment the following lines, adjust them as necessary, and remove the curly braces after 'annotations:'. foo: bar Configure node tolerations. |
| courier.enabled | boolean | `true` | |
| watcher | object | `{"enabled":false,"image":"oryd/k8s-toolbox:0.0.4","mountFile":"","podMetadata":{"annotations":{},"labels":{}},"watchLabelKey":"ory.sh/watcher"}` | Configuration of the watcher sidecar |
| watcher.mountFile | string | `""` | Path to mounted file, which wil be monitored for changes. eg: /etc/secrets/my-secret/foo |
| watcher.podMetadata | object | `{"annotations":{},"labels":{}}` | Specify pod metadata, this metadata is added directly to the pod, and not higher objects |
Expand Down
2 changes: 2 additions & 0 deletions helm/charts/kratos/templates/statefulset-mail.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.courier.enabled -}}
{{- $resources := ternary .Values.deployment.resources .Values.resources (not (empty .Values.deployment.resources )) -}}
{{- $annotations := ternary .Values.statefulSet.annotations .Values.deployment.annotations (not (empty .Values.statefulSet.annotations )) -}}
{{- $labels := ternary .Values.statefulSet.labels .Values.deployment.labels (not (empty .Values.statefulSet.labels )) -}}
Expand Down Expand Up @@ -149,3 +150,4 @@ spec:
topologySpreadConstraints:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
2 changes: 2 additions & 0 deletions helm/charts/kratos/templates/statefulset-svc.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Headless Service for StatefulSet. See https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#limitations
# and https://kubernetes.io/docs/concepts/services-networking/service/#headless-services for details.
{{- if .Values.courier.enabled }}
apiVersion: v1
kind: Service
metadata:
Expand Down Expand Up @@ -27,3 +28,4 @@ spec:
selector:
app.kubernetes.io/name: {{ include "kratos.fullname" . }}-courier
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}
4 changes: 4 additions & 0 deletions helm/charts/kratos/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,10 @@ nodeSelector: {}
# Configure node tolerations.
tolerations: []

# -- Configuration of the courier
courier:
enabled: true

# -- Configuration of the watcher sidecar
watcher:
enabled: false
Expand Down

0 comments on commit 7d3e6d5

Please sign in to comment.