Skip to content

Commit

Permalink
fix: uses the same image
Browse files Browse the repository at this point in the history
  • Loading branch information
faiq committed Oct 22, 2024
1 parent 174b507 commit f907673
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,16 +74,8 @@ spec:
- name: serve
protocol: TCP
containerPort: 5000
image: "{{ .Values.mindthegap.repository }}:{{ .Values.mindthegap.tag }}"
imagePullPolicy: "{{ .Values.mindthegap.pullPolicy }}"
args:
- serve
- bundle
- --bundle=/helm-charts/helm-charts-*.tar
- --listen-port=5000
- --listen-address=0.0.0.0
- --tls-private-key-file=/certs/tls.key
- --tls-cert-file=/certs/tls.crt
image: "{{ .Values.helmChartsImage.repository }}:{{ default $.Chart.AppVersion .Values.helmChartsImage.tag }}"
imagePullPolicy: "{{ .Values.image.pullPolicy }}"
volumeMounts:
- name: certs-vol
mountPath: "/certs"
Expand Down
5 changes: 0 additions & 5 deletions charts/cluster-api-runtime-extensions-nutanix/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,6 @@ helmChartsImage:
tag: ""
pullPolicy: IfNotPresent

mindthegap:
repository: ghcr.io/mesosphere/mindthegap
tag: "v1.14.4"
pullPolicy: IfNotPresent

# -- Optional secrets used for pulling the container image
imagePullSecrets: []
# - name: Secret with Registry credentials
Expand Down
9 changes: 9 additions & 0 deletions hack/addons/mindthegap-helm-registry/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,12 @@ RUN --mount=source=./hack/addons/mindthegap-helm-registry/repos.yaml,target=/rep
FROM --platform=${TARGETPLATFORM} alpine
ARG VERSION
COPY --from=bundle_builder /tmp/helm-charts.tar /charts/helm-charts-${VERSION}.tar
COPY --from=bundle_builder /ko-app/mindthegap /usr/bin/mindthegap
VOLUME /certs
ENTRYPOINT /usr/bin/mindthegap
CMD [ "serve", "bundle", \
"--bundle=/tmp/helm-charts.tar", \
"--listen-port=5000", \
"--listen-address=0.0.0.0", \
"--tls-private-key-file=/certs/tls.key", \
"--tls-cert-file=/certs/tls.crt" ]

0 comments on commit f907673

Please sign in to comment.