Skip to content

Commit

Permalink
clair: Fix subpath mount points in deployment (PROJQUAY-6726)
Browse files Browse the repository at this point in the history
- Add subpath to config.yaml to prevent overwriting subdirectory
  • Loading branch information
jonathankingfc authored and openshift-merge-bot[bot] committed Mar 4, 2024
1 parent 44acad2 commit 9c764aa
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions kustomize/components/clair/clair.deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,11 @@ spec:
- name: cluster-trusted-ca
mountPath: /etc/pki/ca-trust/extracted/pem
readOnly: true
- mountPath: /clair/
name: config
- mountPath: /clair/config.yaml.d/01_user_config.yaml
name: config
- name: config
mountPath: /clair/config.yaml
subPath: config.yaml
- name: config
mountPath: /clair/config.yaml.d/01_user_config.yaml
subPath: 01_user_config.yaml
- mountPath: /var/run/certs
name: certificates
Expand Down

0 comments on commit 9c764aa

Please sign in to comment.