Skip to content

Commit a4bb0f5

Browse files
committed
fix: use new variable name
1 parent ada8a63 commit a4bb0f5

File tree

5 files changed

+12
-9
lines changed

5 files changed

+12
-9
lines changed

.github/workflows/checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ jobs:
253253
devbox run -- \
254254
ct install \
255255
--config charts/ct-config.yaml \
256-
--helm-extra-set-args "--set-string image.repository=ko.local/cluster-api-runtime-extensions-nutanix --set-string image.tag=$(devbox run -- gojq -r .version dist/metadata.json)-$(devbox run -- go env GOARCH) --set-string helmRepositoryImage.tag=$(devbox run -- gojq -r .version dist/metadata.json)-$(devbox run -- go env GOARCH)"
256+
--helm-extra-set-args "--set-string image.repository=ko.local/cluster-api-runtime-extensions-nutanix --set-string image.tag=$(devbox run -- gojq -r .version dist/metadata.json)-$(devbox run -- go env GOARCH) --set-string helmChartsImage.tag=$(devbox run -- gojq -r .version dist/metadata.json)-$(devbox run -- go env GOARCH)"
257257
env:
258258
KUBECONFIG: ${{ env.KIND_KUBECONFIG }}
259259

.goreleaser.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ dockers:
108108
- hack/addons/mindthegap-helm-registry/repos.yaml
109109
build_flag_templates:
110110
- "--platform=linux/amd64"
111-
- '--build-arg=version=v{{ trimprefix .Version "v" }}'
111+
- '--build-arg=VERSION=v{{ trimprefix .Version "v" }}'
112112
- "--pull"
113113
- "--label=org.opencontainers.image.created={{.CommitDate}}"
114114
- "--label=org.opencontainers.image.title=caren-helm-reg"
@@ -125,7 +125,7 @@ dockers:
125125
build_flag_templates:
126126
- "--platform=linux/arm64"
127127
- "--pull"
128-
- '--build-arg=version=v{{ trimprefix .Version "v" }}'
128+
- '--build-arg=VERSION=v{{ trimprefix .Version "v" }}'
129129
- "--label=org.opencontainers.image.created={{.CommitDate}}"
130130
- "--label=org.opencontainers.image.title=caren-helm-reg"
131131
- "--label=org.opencontainers.image.revision={{.FullCommit}}"

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ metadata:
3232
finalizers:
3333
- kubernetes.io/pvc-protection
3434
name: charts-pvc
35-
namespace: default
35+
namespace: {{ .Release.Namespace }}
3636
spec:
3737
accessModes:
3838
- ReadWriteOnce
@@ -61,10 +61,13 @@ spec:
6161
app: helm-repository # pods have this label, and Service and Deployment depend on it
6262
spec:
6363
initContainers:
64-
- name: init-container
64+
- name: copy-charts
6565
image: "{{ .Values.helmChartsImage.repository }}:{{ default $.Chart.AppVersion .Values.helmChartsImage.tag }}"
6666
command: ["/bin/sh", "-c", "cp /charts/*.tar /helm-charts"]
6767
imagePullPolicy: "{{ .Values.image.pullPolicy }}"
68+
volumeMounts:
69+
- name: charts-volume
70+
mountPath: "/helm-charts"
6871
containers:
6972
- name: helm-repository
7073
ports:
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
ARG VERSION
2-
ARG MINDTHEGAP_VERSION
2+
ARG MINDTHEGAP_VERSION=v1.14.4
33
FROM --platform=${BUILDPLATFORM} ghcr.io/mesosphere/mindthegap:${MINDTHEGAP_VERSION} as bundle_builder
44
# this gets called by goreleaser so the copy source has to be the path relative to the repo root.
55
RUN --mount=source=./hack/addons/mindthegap-helm-registry/repos.yaml,target=/repos.yaml \
6-
["/ko-app/mindthegap", "create", "bundle", "--helm-charts-file=/repos.yaml", "--output-file=/tmp/helm-charts-${VERSION}.tar"]
6+
["/ko-app/mindthegap", "create", "bundle", "--helm-charts-file=/repos.yaml", "--output-file=/tmp/helm-charts.tar"]
77

88
FROM --platform=${TARGETPLATFORM} alpine
9-
COPY --from=bundle_builder /tmp/helm-charts-${VERSION}.tar /charts/helm-charts-${VERSION}.tar
9+
COPY --from=bundle_builder /tmp/helm-charts.tar /charts/helm-charts-${VERSION}.tar

make/dev.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ dev.run-on-kind:
1515
helm upgrade --install cluster-api-runtime-extensions-nutanix ./charts/cluster-api-runtime-extensions-nutanix \
1616
--set-string image.repository=ko.local/cluster-api-runtime-extensions-nutanix \
1717
--set-string image.tag=$(SNAPSHOT_VERSION) \
18-
--set-string helmRepositoryImage.tag=$(SNAPSHOT_VERSION) \
18+
--set-string helmChartsImage.tag=$(SNAPSHOT_VERSION) \
1919
--wait --wait-for-jobs
2020
kubectl rollout restart deployment cluster-api-runtime-extensions-nutanix
2121
kubectl rollout restart deployment helm-repository

0 commit comments

Comments
 (0)