fix(apt-version-exporter): add init container to fetch architecture
Some checks are pending
ci/woodpecker/push/yamllint Pipeline is pending
Some checks are pending
ci/woodpecker/push/yamllint Pipeline is pending
This commit is contained in:
parent
810f4b9ae4
commit
b96206cd43
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: alpine:latest
|
||||
imagePullPolicy: Always
|
||||
command: [
|
||||
"sh", "-c",
|
||||
"apk update && apk add dpkg && dpkg --print-architecture | cut -d'-' -f3 > /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