diff --git a/charts/openfga/templates/extra-manifests.yaml b/charts/openfga/templates/extra-manifests.yaml new file mode 100644 index 0000000..d824dc5 --- /dev/null +++ b/charts/openfga/templates/extra-manifests.yaml @@ -0,0 +1,8 @@ +{{ range .Values.extraObjects }} +--- +{{ if typeIs "string" . }} + {{- tpl . $ }} +{{- else }} + {{- tpl (toYaml .) $ }} +{{- end }} +{{ end }} \ No newline at end of file diff --git a/charts/openfga/values.schema.json b/charts/openfga/values.schema.json index 2c52b8c..d002147 100644 --- a/charts/openfga/values.schema.json +++ b/charts/openfga/values.schema.json @@ -1007,7 +1007,14 @@ } } }, - "common": {} + "common": {}, + "extraObjects": { + "type": "array", + "items": { + "type": "object" + }, + "default": [] + } }, "additionalProperties": false } diff --git a/charts/openfga/values.yaml b/charts/openfga/values.yaml index 5b2dc65..686a1eb 100644 --- a/charts/openfga/values.yaml +++ b/charts/openfga/values.yaml @@ -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