Skip to content

Commit 7158c3f

Browse files
committed
feat(openfga): Allow extra labels specific to pods
These labels can be used by LabelSelectors (ie: network policies, webhooks)
1 parent e0a860b commit 7158c3f

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

charts/openfga/templates/deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ spec:
2929
{{- with .Values.commonLabels }}
3030
{{- toYaml . | nindent 8 }}
3131
{{- end }}
32+
{{- with .Values.podExtraLabels }}
33+
{{- toYaml . | nindent 8 }}
34+
{{- end }}
3235
spec:
3336
{{- with .Values.imagePullSecrets }}
3437
imagePullSecrets:

charts/openfga/values.schema.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -783,6 +783,14 @@
783783
},
784784
"default": {}
785785
},
786+
"podExtraLabels": {
787+
"type": "object",
788+
"description": "Map of labels to add to the pods' manifest",
789+
"additionalProperties": {
790+
"type": "string"
791+
},
792+
"default": {}
793+
},
786794
"service": {
787795
"type": "object",
788796
"properties": {

charts/openfga/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ serviceAccount:
2828
annotations: {}
2929

3030
podAnnotations: {}
31+
podExtraLabels: {}
3132

3233
extraEnvVars: []
3334
extraVolumes: []

0 commit comments

Comments
 (0)