-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add registry-presets for private registry (#243)
Signed-off-by: Tamal Saha <[email protected]>
- Loading branch information
Showing
2 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
44 changes: 44 additions & 0 deletions
44
charts/ace-installer/crds/charts.x-helm.dev_clusterchartpresets.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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: {} |
11 changes: 11 additions & 0 deletions
11
charts/ace-installer/templates/presets/registry-presets.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 }} |