Merge pull request 'fix(apt-version-exporter): add init container to fetch architecture' (#601) from tn-add-apt-version-exporter into main
Some checks are pending
ci/woodpecker/push/yamllint Pipeline is pending

Reviewed-on: #601
This commit is contained in:
Tom Neuber 2025-01-28 11:08:32 +01:00
commit 26d41a9281

View file

@ -58,6 +58,18 @@ spec:
- mountPath: /etc/ca-certificates.conf
name: etc-ca-certificates-conf
readOnly: true
initContainers:
- name: get-architecture
image: debian:12.9
imagePullPolicy: IfNotPresent
command: [
"sh", "-c",
"dpkg --print-architecture > /var/lib/dpkg/arch"
]
volumeMounts:
- mountPath: /var/lib/dpkg
name: var-lib-dpkg
readOnly: false
serviceAccountName: apt-version-exporter-service-account
tolerations:
- effect: NoSchedule
@ -69,25 +81,19 @@ spec:
volumes:
- hostPath:
path: /var/lib/dpkg
type: ""
name: var-lib-dpkg
- hostPath:
path: /var/lib/apt
type: ""
name: var-lib-apt
- hostPath:
path: /etc/apt
type: ""
name: etc-apt
- hostPath:
path: /etc/ssl/certs
type: ""
name: etc-ssl-certs
- hostPath:
path: /usr/share/ca-certificates
type: ""
name: usr-share-ca-certificates
- hostPath:
path: /etc/ca-certificates.conf
type: ""
name: etc-ca-certificates-conf