Files
cozystack/packages/core/platform/templates/application-defaults.yaml
T
Myasnikov Daniil e43dac3a69 feat(platform): add applicationDefaults value
An administrator has no single place to set what every new application
of a kind should start with, such as a storage class or a registry
mirror, so each user repeats it in every spec. The value is keyed by
the application plural and rendered into a ConfigMap in cozy-system,
which the API reads when an application is created.

Assisted-by: LLM
Signed-off-by: Myasnikov Daniil <myasnikovdaniil2001@gmail.com>
2026-11-26 14:20:05 +00:00

12 lines
281 B
YAML

{{- $defaults := .Values.applicationDefaults }}
{{- if kindIs "invalid" $defaults }}
{{- $defaults = dict }}
{{- end }}
apiVersion: v1
kind: ConfigMap
metadata:
name: cozystack-application-defaults
namespace: cozy-system
data:
defaults.json: {{ $defaults | toJson | quote }}