|
68 | 68 | annotations: |
69 | 69 | 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 }} |
70 | 70 | 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 |
94 | 71 | containers: |
95 | 72 | - name: cloud-controller |
96 | 73 | image: {{ .Values.cloudController.image.repository }}:{{ default .Chart.AppVersion .Values.cloudController.image.tag }} |
@@ -124,11 +101,6 @@ spec: |
124 | 101 | mountPath: /var/run |
125 | 102 | - name: tmpdir |
126 | 103 | 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 }} |
132 | 104 | - name: route-registrar |
133 | 105 | image: {{ .Values.routeRegistrar.image.repository }}:{{ .Values.routeRegistrar.image.tag }} |
134 | 106 | imagePullPolicy: {{ .Values.routeRegistrar.image.imagePullPolicy }} |
@@ -183,11 +155,6 @@ spec: |
183 | 155 | mountPath: /var/run |
184 | 156 | - name: tmpdir |
185 | 157 | 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 }} |
191 | 158 | - name: nginx |
192 | 159 | image: {{ .Values.nginx.image.repository }}:{{ default .Chart.AppVersion .Values.nginx.image.tag }} |
193 | 160 | imagePullPolicy: {{ .Values.nginx.image.imagePullPolicy }} |
@@ -287,6 +254,4 @@ spec: |
287 | 254 | emptyDir: {} |
288 | 255 | - name: tmpdir |
289 | 256 | emptyDir: {} |
290 | | - - name: storage-cli-fix |
291 | | - emptyDir: {} |
292 | 257 | {{- end }} |
0 commit comments