Skip to content

Commit 6509027

Browse files
committed
feat: add global labels and anotations
1 parent 9752c41 commit 6509027

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+305
-77
lines changed

hacks/values/hydra-maester/default.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
---
2+
global:
3+
podMetadata:
4+
labels:
5+
ory.sh/global: "mylabel"
6+
annotations:
7+
ory.sh/global: |
8+
{
9+
"foo": "bar"
10+
}
211
adminService:
312
name: hydra-admin.default
413
deployment:

hacks/values/hydra/default.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
global:
22
dnsDomain: example.com
3+
podMetadata:
4+
labels:
5+
ory.sh/global: "mylabel"
6+
annotations:
7+
ory.sh/global: |
8+
{
9+
"foo": "bar"
10+
}
311
412
ingress:
513
admin:

hacks/values/keto/default.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
---
2+
global:
3+
podMetadata:
4+
labels:
5+
ory.sh/global: "mylabel"
6+
annotations:
7+
ory.sh/global: |
8+
{
9+
"foo": "bar"
10+
}
211
keto:
312
automigration:
413
enabled: true

hacks/values/kratos/default.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
---
22
global:
33
dnsDomain: example.com
4+
podMetadata:
5+
labels:
6+
ory.sh/global: "mylabel"
7+
annotations:
8+
ory.sh/global: |
9+
{
10+
"foo": "bar"
11+
}
412
513
autoscaling:
614
enabled: true

hacks/values/oathkeeper-maester/default.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
---
2+
global:
3+
podMetadata:
4+
labels:
5+
ory.sh/global: "mylabel"
6+
annotations:
7+
ory.sh/global: |
8+
{
9+
"foo": "bar"
10+
}
211
# singleNamespaceMode: true
312
priorityClassName: "system-cluster-critical"
413
deployment:

hacks/values/oathkeeper/default.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
11
---
2+
global:
3+
podMetadata:
4+
labels:
5+
ory.sh/global: "mylabel"
6+
annotations:
7+
ory.sh/global: |
8+
{
9+
"foo": "bar"
10+
}
11+
212
demo: false
313
maester:
414
enabled: false

helm/charts/example-idp/values.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ service:
2424
ingress:
2525
enabled: false
2626
className: ""
27-
annotations:
28-
{}
27+
annotations: {}
2928
# kubernetes.io/ingress.class: nginx
3029
# kubernetes.io/tls-acme: "true"
3130
hosts:

helm/charts/hydra-maester/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ A Helm chart for Kubernetes
5151
| deployment.topologySpreadConstraints | list | `[]` | Configure pod topologySpreadConstraints. |
5252
| enabledNamespaces | list | `[]` | The Controller have CREATE and READ access to all Secrets in the namespaces listed below. |
5353
| forwardedProto | string | `nil` | |
54+
| global | object | `{"podMetadata":{"annotations":{},"labels":{}}}` | Global setting, passed down to all pods |
55+
| global.podMetadata | object | `{"annotations":{},"labels":{}}` | Specify pod metadata, this metadata is added directly to the pod, and not higher objects |
56+
| global.podMetadata.annotations | object | `{}` | Extra pod level annotations |
57+
| global.podMetadata.labels | object | `{}` | Extra pod level labels |
5458
| image.pullPolicy | string | `"IfNotPresent"` | Image pull policy |
5559
| image.repository | string | `"oryd/hydra-maester"` | Ory Hydra-maester image |
5660
| image.tag | string | `"v0.0.38"` | Ory Hydra-maester version |

helm/charts/hydra-maester/templates/deployment.yaml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,23 @@ spec:
2929
control-plane: controller-manager
3030
app.kubernetes.io/name: {{ include "hydra-maester.fullname" . }}
3131
app.kubernetes.io/instance: {{ .Release.Name }}
32-
{{- with .Values.deployment.extraLabels }}
32+
{{- with $.Values.deployment.extraLabels }}
3333
{{- toYaml . | nindent 8 }}
3434
{{- end }}
35-
{{- with .Values.deployment.podMetadata.labels }}
35+
{{- with $.Values.deployment.podMetadata.labels }}
36+
{{- toYaml . | nindent 8 }}
37+
{{- end }}
38+
{{- with $.Values.global.podMetadata.labels }}
3639
{{- toYaml . | nindent 8 }}
3740
{{- end }}
3841
annotations:
39-
{{- with .Values.deployment.extraAnnotations }}
42+
{{- with $.Values.deployment.extraAnnotations }}
43+
{{- toYaml . | nindent 8 }}
44+
{{- end }}
45+
{{- with $.Values.deployment.podMetadata.annotations }}
4046
{{- toYaml . | nindent 8 }}
4147
{{- end }}
42-
{{- with .Values.deployment.podMetadata.annotations }}
48+
{{- with $.Values.global.podMetadata.annotations }}
4349
{{- toYaml . | nindent 8 }}
4450
{{- end }}
4551
spec:

helm/charts/hydra-maester/values.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
# -- Global setting, passed down to all pods
2+
global:
3+
# -- Specify pod metadata, this metadata is added directly to the pod, and not higher objects
4+
podMetadata:
5+
# -- Extra pod level labels
6+
labels: {}
7+
# -- Extra pod level annotations
8+
annotations: {}
9+
110
# -- Number of replicas in deployment
211
replicaCount: 1
312
# -- Number of revisions kept in history
@@ -43,8 +52,7 @@ forwardedProto:
4352

4453
## -- Deployment specific config
4554
deployment:
46-
resources:
47-
{}
55+
resources: {}
4856
# We usually recommend not to specify default resources and to leave this as a conscious
4957
# choice for the user. This also increases chances charts run on environments with little
5058
# resources, such as Minikube. If you do want to specify resources, uncomment the following

0 commit comments

Comments
 (0)