Skip to content

Commit 34b0386

Browse files
syedcrozzy
authored andcommitted
contrib: Add annotations to clair deployment manifest template
This can be used to restart clair in prod without doing a dummy image build Signed-off-by: Syed <[email protected]>
1 parent eb54b88 commit 34b0386

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

contrib/openshift/manifests/manifests.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ objects:
3838
labels:
3939
service: indexer
4040
app: clair
41+
annotations:
42+
${{CLAIR_INDEXER_ANNOTATIONS_KEY}}: ${{CLAIR_INDEXER_ANNOTATIONS_VALUE}}
4143
spec:
4244
serviceAccountName: ${SERVICE_ACCOUNT}
4345
volumes:
@@ -110,6 +112,8 @@ objects:
110112
labels:
111113
service: matcher
112114
app: clair
115+
annotations:
116+
${{CLAIR_MATCHER_ANNOTATIONS_KEY}}: ${{CLAIR_MATCHER_ANNOTATIONS_VALUE}}
113117
spec:
114118
serviceAccountName: ${SERVICE_ACCOUNT}
115119
volumes:
@@ -176,6 +180,8 @@ objects:
176180
labels:
177181
service: notifier
178182
app: clair
183+
annotations:
184+
${{CLAIR_NOTIFIER_ANNOTATIONS_KEY}}: ${{CLAIR_NOTIFIER_ANNOTATIONS_VALUE}}
179185
spec:
180186
serviceAccountName: ${SERVICE_ACCOUNT}
181187
volumes:
@@ -394,3 +400,15 @@ parameters:
394400
value: "clair"
395401
displayName: clair service account
396402
description: name of the service account to use for API interaction
403+
- name: CLAIR_INDEXER_ANNOTATIONS_KEY
404+
value: "pod-restart-annotation"
405+
- name: CLAIR_INDEXER_ANNOTATIONS_VALUE
406+
value: "update-me-to-restart"
407+
- name: CLAIR_MATCHER_ANNOTATIONS_KEY
408+
value: "pod-restart-annotation"
409+
- name: CLAIR_MATCHER_ANNOTATIONS_VALUE
410+
value: "update-me-to-restart"
411+
- name: CLAIR_NOTIFIER_ANNOTATIONS_KEY
412+
value: "pod-restart-annotation"
413+
- name: CLAIR_NOTIFIER_ANNOTATIONS_VALUE
414+
value: "update-me-to-restart"

0 commit comments

Comments
 (0)