ory / k8s

Kubernetes Helm Charts for the ORY ecosystem.
https://k8s.ory.sh/helm
Apache License 2.0
336 stars 259 forks source link

[kratos]: separate identity json schema file from values.yaml #505

Closed dro-sh closed 2 years ago

dro-sh commented 2 years ago

Preflight checklist

Describe your problem

I would like to write identities schema on separate file, not on .Values.kratos.identitySchemas.<filename>.<json-schema>. Json schema locales on same directory which my values on. It allows me to use hints from my IDE.

Describe your ideal solution

On my directory I have next structure:

values.yaml
user.schema.json

On values.yaml I use my file so:

# other values
kratos:
  # other values
  identitySchemas:
    user.schema.json: {{ .Values.user_schema }} # I set key of file myself

To pass file to .Values.user_schema using --set-file helm CLI arg:

helm install kratos ory/kratos --set-file user_schema="/path/to/schema/user.schema.json"

Workarounds or alternatives

Needs to use helm tpl function

Version

kratos 0.25.2

Additional Context

No response