Skip to content

Commit

Permalink
contrib: Add annotations to clair deployment manifest template
Browse files Browse the repository at this point in the history
This can be used to restart clair in prod without doing a dummy image build

Signed-off-by: Syed <[email protected]>
  • Loading branch information
syed committed Sep 15, 2023
1 parent a31be2e commit b0865c4
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions contrib/openshift/manifests/manifests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ objects:
labels:
service: indexer
app: clair
annotations:
${{CLAIR_INDEXER_ANNOTATIONS_KEY}}: ${{CLAIR_INDEXER_ANNOTATIONS_VALUE}}
spec:
serviceAccountName: ${SERVICE_ACCOUNT}
volumes:
Expand Down Expand Up @@ -110,6 +112,8 @@ objects:
labels:
service: matcher
app: clair
annotations:
${{CLAIR_MATCHER_ANNOTATIONS_KEY}}: ${{CLAIR_MATCHER_ANNOTATIONS_VALUE}}
spec:
serviceAccountName: ${SERVICE_ACCOUNT}
volumes:
Expand Down Expand Up @@ -176,6 +180,8 @@ objects:
labels:
service: notifier
app: clair
annotations:
${{CLAIR_NOTIFIER_ANNOTATIONS_KEY}}: ${{CLAIR_NOTIFIER_ANNOTATIONS_VALUE}}
spec:
serviceAccountName: ${SERVICE_ACCOUNT}
volumes:
Expand Down Expand Up @@ -394,3 +400,15 @@ parameters:
value: "clair"
displayName: clair service account
description: name of the service account to use for API interaction
- name: CLAIR_INDEXER_ANNOTATIONS_KEY
value: "pod-restart-annotation"
- name: CLAIR_INDEXER_ANNOTATIONS_VALUE
value: "update-me-to-restart"
- name: CLAIR_MATCHER_ANNOTATIONS_KEY
value: "pod-restart-annotation"
- name: CLAIR_MATCHER_ANNOTATIONS_VALUE
value: "update-me-to-restart"
- name: CLAIR_NOTIFIER_ANNOTATIONS_KEY
value: "pod-restart-annotation"
- name: CLAIR_NOTIFIER_ANNOTATIONS_VALUE
value: "update-me-to-restart"

0 comments on commit b0865c4

Please sign in to comment.