Skip to content

Commit

Permalink
feat: add extraObjects (#139)
Browse files Browse the repository at this point in the history
* feat: add extraObjects

* fix: add schema entry for extra objects
  • Loading branch information
danielloader authored Aug 7, 2024
1 parent 2e7eec9 commit 0126508
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
8 changes: 8 additions & 0 deletions charts/openfga/templates/extra-manifests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{{ range .Values.extraObjects }}
---
{{ if typeIs "string" . }}
{{- tpl . $ }}
{{- else }}
{{- tpl (toYaml .) $ }}
{{- end }}
{{ end }}
9 changes: 8 additions & 1 deletion charts/openfga/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1007,7 +1007,14 @@
}
}
},
"common": {}
"common": {},
"extraObjects": {
"type": "array",
"items": {
"type": "object"
},
"default": []
}
},
"additionalProperties": false
}
13 changes: 13 additions & 0 deletions charts/openfga/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -328,3 +328,16 @@ migrate:
helm.sh/hook-delete-policy: "before-hook-creation"
labels: {}
timeout:

# -- Array of extra K8s manifests to deploy
## Note: Supports use of custom Helm templates
extraObjects: []
## Example: Deploying a CloudnativePG Postgres cluster for use with OpenFGA:
# - apiVersion: postgresql.cnpg.io/v1
# kind: Cluster
# metadata:
# name: openfga
# spec:
# instances: 3
# storage:
# size: 10Gi

0 comments on commit 0126508

Please sign in to comment.