From 34b03865bf19211059b1fa4f247c9d81239c4600 Mon Sep 17 00:00:00 2001 From: Syed Date: Fri, 15 Sep 2023 11:41:35 -0400 Subject: [PATCH] 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 --- contrib/openshift/manifests/manifests.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/contrib/openshift/manifests/manifests.yaml b/contrib/openshift/manifests/manifests.yaml index 2d7c0d9a3f..93753b5c7e 100644 --- a/contrib/openshift/manifests/manifests.yaml +++ b/contrib/openshift/manifests/manifests.yaml @@ -38,6 +38,8 @@ objects: labels: service: indexer app: clair + annotations: + ${{CLAIR_INDEXER_ANNOTATIONS_KEY}}: ${{CLAIR_INDEXER_ANNOTATIONS_VALUE}} spec: serviceAccountName: ${SERVICE_ACCOUNT} volumes: @@ -110,6 +112,8 @@ objects: labels: service: matcher app: clair + annotations: + ${{CLAIR_MATCHER_ANNOTATIONS_KEY}}: ${{CLAIR_MATCHER_ANNOTATIONS_VALUE}} spec: serviceAccountName: ${SERVICE_ACCOUNT} volumes: @@ -176,6 +180,8 @@ objects: labels: service: notifier app: clair + annotations: + ${{CLAIR_NOTIFIER_ANNOTATIONS_KEY}}: ${{CLAIR_NOTIFIER_ANNOTATIONS_VALUE}} spec: serviceAccountName: ${SERVICE_ACCOUNT} volumes: @@ -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"