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
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue