fix(apt-version-exporter): add init container to fetch architecture
All checks were successful
ci/woodpecker/push/yamllint Pipeline was successful
All checks were successful
ci/woodpecker/push/yamllint Pipeline was successful
This commit is contained in:
parent
810f4b9ae4
commit
184687dd5f
1 changed files with 12 additions and 6 deletions
|
@ -58,6 +58,18 @@ spec:
|
||||||
- mountPath: /etc/ca-certificates.conf
|
- mountPath: /etc/ca-certificates.conf
|
||||||
name: etc-ca-certificates-conf
|
name: etc-ca-certificates-conf
|
||||||
readOnly: true
|
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
|
serviceAccountName: apt-version-exporter-service-account
|
||||||
tolerations:
|
tolerations:
|
||||||
- effect: NoSchedule
|
- effect: NoSchedule
|
||||||
|
@ -69,25 +81,19 @@ spec:
|
||||||
volumes:
|
volumes:
|
||||||
- hostPath:
|
- hostPath:
|
||||||
path: /var/lib/dpkg
|
path: /var/lib/dpkg
|
||||||
type: ""
|
|
||||||
name: var-lib-dpkg
|
name: var-lib-dpkg
|
||||||
- hostPath:
|
- hostPath:
|
||||||
path: /var/lib/apt
|
path: /var/lib/apt
|
||||||
type: ""
|
|
||||||
name: var-lib-apt
|
name: var-lib-apt
|
||||||
- hostPath:
|
- hostPath:
|
||||||
path: /etc/apt
|
path: /etc/apt
|
||||||
type: ""
|
|
||||||
name: etc-apt
|
name: etc-apt
|
||||||
- hostPath:
|
- hostPath:
|
||||||
path: /etc/ssl/certs
|
path: /etc/ssl/certs
|
||||||
type: ""
|
|
||||||
name: etc-ssl-certs
|
name: etc-ssl-certs
|
||||||
- hostPath:
|
- hostPath:
|
||||||
path: /usr/share/ca-certificates
|
path: /usr/share/ca-certificates
|
||||||
type: ""
|
|
||||||
name: usr-share-ca-certificates
|
name: usr-share-ca-certificates
|
||||||
- hostPath:
|
- hostPath:
|
||||||
path: /etc/ca-certificates.conf
|
path: /etc/ca-certificates.conf
|
||||||
type: ""
|
|
||||||
name: etc-ca-certificates-conf
|
name: etc-ca-certificates-conf
|
||||||
|
|
Loading…
Reference in a new issue