Skip to content

Commit

Permalink
feat: common labels
Browse files Browse the repository at this point in the history
  • Loading branch information
bagnaram committed Nov 22, 2024
1 parent e55f030 commit b9f7e47
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions charts/openfga/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ Common labels
{{- define "openfga.labels" -}}
helm.sh/chart: {{ include "openfga.chart" . }}
{{ include "openfga.selectorLabels" . }}
{{ include "openfga.commonLabels" . }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
Expand Down
5 changes: 5 additions & 0 deletions charts/openfga/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@
},
"additionalProperties": false
},
"commonLabels": {
"type": "object",
"description": "Common labels to apply to OpenFGA resources",
"default": ""
},
"fullnameOverride": {
"type": "string",
"description": "Overrides the default fully qualified app name",
Expand Down
3 changes: 3 additions & 0 deletions charts/openfga/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""

# Specify additional labels to apply to OpenFGA resources
commonLabels: {}

serviceAccount:
# Specifies whether a service account should be created
create: true
Expand Down

0 comments on commit b9f7e47

Please sign in to comment.