mirror of
https://github.com/cozystack/cozystack.git
synced 2026-12-06 07:03:45 +09:00
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>
12 lines
281 B
YAML
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 }}
|