Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: extra labels #639

Merged
merged 3 commits into from
Sep 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions helm/charts/oathkeeper-maester/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ A Helm chart for deploying ORY Oathkeeper Rule Controller in Kubernetes
| deployment.automountServiceAccountToken | bool | `true` | |
| deployment.dnsConfig | object | `{}` | Configure pod dnsConfig. |
| deployment.envs | object | `{}` | Configure environment variables. |
| deployment.extraLabels | object | `{}` | Deployment level extra labels |
| deployment.nodeSelector | object | `{}` | Node labels for pod assignment. |
| deployment.podMetadata | object | `{"annotations":{},"labels":{}}` | Specify pod metadata, this metadata is added directly to the pod, and not higher objects |
| deployment.podMetadata.annotations | object | `{}` | Extra pod level annotations |
Expand Down
5 changes: 4 additions & 1 deletion helm/charts/oathkeeper-maester/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ metadata:
namespace: {{ .Release.Namespace }}
{{- end }}
labels:
{{ include "oathkeeper-maester.labels" . | indent 4 }}
{{- include "oathkeeper-maester.labels" . | nindent 4 }}
{{- with .Values.deployment.extraLabels }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
replicas: {{ .Values.replicaCount }}
revisionHistoryLimit: {{ .Values.revisionHistoryLimit }}
Expand Down
2 changes: 2 additions & 0 deletions helm/charts/oathkeeper-maester/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ deployment:

# -- Configure node tolerations.
tolerations: []
# -- Deployment level extra labels
extraLabels: {}

# -- Configure pod topologySpreadConstraints.
topologySpreadConstraints: []
Expand Down
Loading