Skip to content

Commit

Permalink
feat: add extraLabels to keto (#381)
Browse files Browse the repository at this point in the history
  • Loading branch information
Demonsthere authored Dec 8, 2021
1 parent 4731eed commit ed71496
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .circleci/values/keto.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ ingress:
read:
enabled: true
write:
enabled: true
enabled: true
extraLabels:
ory.sh/test: keto
6 changes: 6 additions & 0 deletions helm/charts/keto/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ metadata:
name: {{ include "keto.fullname" . }}
labels:
{{- include "keto.labels" . | nindent 4 }}
{{- with .Values.extraLabels }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if not .Values.autoscaling.enabled }}
replicas: {{ .Values.replicaCount }}
Expand All @@ -19,6 +22,9 @@ spec:
{{- end }}
labels:
{{- include "keto.selectorLabels" . | nindent 8 }}
{{- with .Values.extraLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
Expand Down
14 changes: 12 additions & 2 deletions helm/charts/keto/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -142,17 +142,27 @@ autoscaling:

nodeSelector: {}

# -- Array of extra Envs to be added to the deployment. K8s format expected
# - name: FOO
# value: BAR
extraEnv: []

extraVolumes: []
# -- Array of extra Volumes to be added to the deployment. K8s format expected
# - name: my-volume
# secret:
# secretName: my-secret
extraVolumes: []

extraVolumeMounts: []
# -- Array of extra VolumeMounts to be added to the deployment. K8s format expected
# - name: my-volume
# mountPath: /etc/secrets/my-secret
# readOnly: true
extraVolumeMounts: []

# -- Extra labels to be added to the deployment, and pods. K8s object format expected
# foo: bar
# my.special.label/type: value
extraLabels: {}

# -- Configuration for tracing providers. Only datadog is currently supported through this block.
# If you need to use a different tracing provider, please manually set the configuration values
Expand Down

0 comments on commit ed71496

Please sign in to comment.