diff --git a/charts/ace-installer/crds/charts.x-helm.dev_clusterchartpresets.yaml b/charts/ace-installer/crds/charts.x-helm.dev_clusterchartpresets.yaml new file mode 100644 index 000000000..4e7a35892 --- /dev/null +++ b/charts/ace-installer/crds/charts.x-helm.dev_clusterchartpresets.yaml @@ -0,0 +1,44 @@ +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + creationTimestamp: null + name: clusterchartpresets.charts.x-helm.dev +spec: + group: charts.x-helm.dev + names: + kind: ClusterChartPreset + listKind: ClusterChartPresetList + plural: clusterchartpresets + singular: clusterchartpreset + scope: Cluster + versions: + - name: v1alpha1 + schema: + openAPIV3Schema: + description: ClusterChartPreset is the Schema for the clusterchartpresets + API + properties: + apiVersion: + description: 'APIVersion defines the versioned schema of this representation + of an object. Servers should convert recognized schemas to the latest + internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + type: string + kind: + description: 'Kind is a string value representing the REST resource this + object represents. Servers may infer this from the endpoint the client + submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + type: string + metadata: + type: object + spec: + description: ClusterChartPresetSpec defines the desired state of ClusterChartPreset + properties: + values: + type: object + x-kubernetes-preserve-unknown-fields: true + type: object + type: object + served: true + storage: true + subresources: + status: {} diff --git a/charts/ace-installer/templates/presets/registry-presets.yaml b/charts/ace-installer/templates/presets/registry-presets.yaml new file mode 100644 index 000000000..685defe47 --- /dev/null +++ b/charts/ace-installer/templates/presets/registry-presets.yaml @@ -0,0 +1,11 @@ +{{ $vals := dict "image" $.Values.image "registry" $.Values.registry "helm" dict }} +{{ $_ := set $vals.helm "repositories" (dig "repositories" dict $.Values.helm) }} +{{ $_ := mergeOverwrite $vals.helm.repositories (dig "releases" "opscenter-features" "values" "helm" "repositories" dict $.Values.helm) }} + +apiVersion: charts.x-helm.dev/v1alpha1 +kind: ClusterChartPreset +metadata: + name: registry-presets +spec: + values: + {{- toYaml $vals | nindent 4 }}