Skip to content

Commit

Permalink
feat(openfga): Allow extra labels specific to pods
Browse files Browse the repository at this point in the history
These labels can be used by LabelSelectors (ie: network policies, webhooks)
  • Loading branch information
grimly committed Dec 31, 2024
1 parent e0a860b commit 7158c3f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions charts/openfga/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ spec:
{{- with .Values.commonLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.podExtraLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
Expand Down
8 changes: 8 additions & 0 deletions charts/openfga/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -783,6 +783,14 @@
},
"default": {}
},
"podExtraLabels": {
"type": "object",
"description": "Map of labels to add to the pods' manifest",
"additionalProperties": {
"type": "string"
},
"default": {}
},
"service": {
"type": "object",
"properties": {
Expand Down
1 change: 1 addition & 0 deletions charts/openfga/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ serviceAccount:
annotations: {}

podAnnotations: {}
podExtraLabels: {}

extraEnvVars: []
extraVolumes: []
Expand Down

0 comments on commit 7158c3f

Please sign in to comment.