Skip to content

Commit 61afe52

Browse files
committed
WIP
1 parent 6ae8fa5 commit 61afe52

1 file changed

Lines changed: 0 additions & 35 deletions

File tree

releases/capi/helm/templates/cloud_controller_ng.yaml

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -68,29 +68,6 @@ spec:
6868
annotations:
6969
checksum/config: {{ cat (include (print $.Template.BasePath "/cloud-controller-config.yaml") .) (include (print $.Template.BasePath "/cloud-controller-route-registrar-config.yaml") .) (include (print $.Template.BasePath "/nginx-config.yaml") .) | sha256sum }}
7070
spec:
71-
# Fix for arm64 / Apple Silicon: download native storage-cli binary.
72-
# The image contains amd64 storage-cli which causes 'taggedPointerPack'
73-
# panic when run under Rosetta. This init container fetches the arm64
74-
# binary and mounts it into cloud-controller & local-worker containers.
75-
initContainers:
76-
- name: fix-storage-cli-arch
77-
image: alpine:latest
78-
command:
79-
- /bin/sh
80-
- -c
81-
- |
82-
ARCH=$(uname -m)
83-
if [ "$ARCH" = "aarch64" ] || [ "$ARCH" = "arm64" ]; then
84-
wget -q https://github.com/cloudfoundry/storage-cli/releases/download/v0.0.5/storage-cli-0.0.5-linux-arm64 -O /fix/storage-cli
85-
chmod +x /fix/storage-cli
86-
echo "Downloaded arm64 storage-cli"
87-
else
88-
echo "Not arm64 – skipping storage-cli fix"
89-
touch /fix/storage-cli
90-
fi
91-
volumeMounts:
92-
- name: storage-cli-fix
93-
mountPath: /fix
9471
containers:
9572
- name: cloud-controller
9673
image: {{ .Values.cloudController.image.repository }}:{{ default .Chart.AppVersion .Values.cloudController.image.tag }}
@@ -124,11 +101,6 @@ spec:
124101
mountPath: /var/run
125102
- name: tmpdir
126103
mountPath: /tmp
127-
{{- if .Values.cloudController.blobstore.storage_cli }}
128-
- name: storage-cli-fix
129-
mountPath: /usr/local/bin/storage-cli
130-
subPath: storage-cli
131-
{{- end }}
132104
- name: route-registrar
133105
image: {{ .Values.routeRegistrar.image.repository }}:{{ .Values.routeRegistrar.image.tag }}
134106
imagePullPolicy: {{ .Values.routeRegistrar.image.imagePullPolicy }}
@@ -183,11 +155,6 @@ spec:
183155
mountPath: /var/run
184156
- name: tmpdir
185157
mountPath: /tmp
186-
{{- if .Values.cloudController.blobstore.storage_cli }}
187-
- name: storage-cli-fix
188-
mountPath: /usr/local/bin/storage-cli
189-
subPath: storage-cli
190-
{{- end }}
191158
- name: nginx
192159
image: {{ .Values.nginx.image.repository }}:{{ default .Chart.AppVersion .Values.nginx.image.tag }}
193160
imagePullPolicy: {{ .Values.nginx.image.imagePullPolicy }}
@@ -287,6 +254,4 @@ spec:
287254
emptyDir: {}
288255
- name: tmpdir
289256
emptyDir: {}
290-
- name: storage-cli-fix
291-
emptyDir: {}
292257
{{- end }}

0 commit comments

Comments
 (0)