Skip to content

Commit 7eec38e

Browse files
committed
build: add docker-registry chart and build changes
1 parent a00d0ce commit 7eec38e

File tree

8 files changed

+87
-0
lines changed

8 files changed

+87
-0
lines changed

charts/cluster-api-runtime-extensions-nutanix/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ A Helm chart for cluster-api-runtime-extensions-nutanix
8585
| hooks.nfd.crsStrategy.defaultInstallationConfigMap.name | string | `"node-feature-discovery"` | |
8686
| hooks.nfd.helmAddonStrategy.defaultValueTemplateConfigMap.create | bool | `true` | |
8787
| hooks.nfd.helmAddonStrategy.defaultValueTemplateConfigMap.name | string | `"default-nfd-helm-values-template"` | |
88+
| hooks.registryMirror.distribution.defaultValueTemplateConfigMap.create | bool | `true` | |
89+
| hooks.registryMirror.distribution.defaultValueTemplateConfigMap.name | string | `"default-distribution-registry-mirror-helm-values-template"` | |
8890
| hooks.serviceLoadBalancer.metalLB.defaultValueTemplateConfigMap.create | bool | `true` | |
8991
| hooks.serviceLoadBalancer.metalLB.defaultValueTemplateConfigMap.name | string | `"default-metallb-helm-values-template"` | |
9092
| hooks.virtualIP.kubeVip.defaultTemplateConfigMap.create | bool | `true` | |
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
replicaCount: 2
2+
persistence:
3+
enabled: true
4+
service:
5+
type: ClusterIP
6+
clusterIP: {{ .ServiceIP }}
7+
port: 80
8+
statefulSet:
9+
enabled: true
10+
syncer:
11+
interval: 2m

charts/cluster-api-runtime-extensions-nutanix/templates/helm-config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ data:
2727
ChartName: cosi
2828
ChartVersion: 0.0.1-alpha.5
2929
RepositoryURL: '{{ if .Values.helmRepository.enabled }}oci://helm-repository.{{ .Release.Namespace }}.svc/charts{{ else }}https://mesosphere.github.io/charts/stable/{{ end }}'
30+
distribution-registry-mirror: |
31+
ChartName: docker-registry
32+
ChartVersion: 2.3.1
33+
RepositoryURL: '{{ if .Values.helmRepository.enabled }}oci://helm-repository.{{ .Release.Namespace }}.svc/charts{{ else }}https://mesosphere.github.io/charts/staging/{{ end }}'
3034
local-path-provisioner-csi: |
3135
ChartName: local-path-provisioner
3236
ChartVersion: 0.0.31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Copyright 2025 Nutanix. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
{{- if .Values.hooks.registryMirror.distribution.defaultValueTemplateConfigMap.name }}
5+
apiVersion: v1
6+
kind: ConfigMap
7+
metadata:
8+
name: '{{ .Values.hooks.registryMirror.distribution.defaultValueTemplateConfigMap.name }}'
9+
data:
10+
values.yaml: |-
11+
{{- .Files.Get "addons/registry-mirror/distribution/values-template.yaml" | nindent 4 }}
12+
{{- end -}}

charts/cluster-api-runtime-extensions-nutanix/values.schema.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,27 @@
504504
},
505505
"type": "object"
506506
},
507+
"registryMirror": {
508+
"properties": {
509+
"distribution": {
510+
"properties": {
511+
"defaultValueTemplateConfigMap": {
512+
"properties": {
513+
"create": {
514+
"type": "boolean"
515+
},
516+
"name": {
517+
"type": "string"
518+
}
519+
},
520+
"type": "object"
521+
}
522+
},
523+
"type": "object"
524+
}
525+
},
526+
"type": "object"
527+
},
507528
"serviceLoadBalancer": {
508529
"properties": {
509530
"metalLB": {

charts/cluster-api-runtime-extensions-nutanix/values.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,11 @@ hooks:
111111
defaultValueTemplateConfigMap:
112112
create: true
113113
name: default-cosi-controller-helm-values-template
114+
registryMirror:
115+
distribution:
116+
defaultValueTemplateConfigMap:
117+
create: true
118+
name: default-distribution-registry-mirror-helm-values-template
114119

115120
helmAddonsConfigMap: default-helm-addons-config
116121

hack/addons/helm-chart-bundler/repos.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ repositories:
3131
charts:
3232
cosi:
3333
- 0.0.1-alpha.5
34+
docker-registry:
35+
repoURL: https://mesosphere.github.io/charts/staging/
36+
charts:
37+
docker-registry:
38+
- 2.3.1
3439
local-path-provisioner:
3540
repoURL: https://charts.containeroo.ch
3641
charts:
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Copyright 2025 Nutanix. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
# NOTE This file is used by the tool in `hack/tools/helm-cm` to add
5+
# docker-registry chart metadata to the "helm-addons" ConfigMap. The tool takes
6+
# a kustomization as input. We do not use this file with kustomize.
7+
8+
apiVersion: kustomize.config.k8s.io/v1beta1
9+
kind: Kustomization
10+
11+
metadata:
12+
name: registry-distribution
13+
14+
sortOptions:
15+
order: fifo
16+
17+
helmCharts:
18+
- name: docker-registry
19+
repo: https://mesosphere.github.io/charts/staging/
20+
releaseName: registry-mirror
21+
version: 2.3.1
22+
valuesFile: helm-values.yaml
23+
includeCRDs: true
24+
skipTests: true
25+
namespace: registry-mirror-system
26+
27+
namespace: registry-mirror-system

0 commit comments

Comments
 (0)