@@ -12,6 +12,9 @@ objects:
1212 - apiVersion : apps/v1
1313 kind : StatefulSet
1414 metadata :
15+ annotations :
16+ ${{CLAIR_DISABLE_MIN_REPLICAS_CHECK}} : ${{CLAIR_DISABLE_MIN_REPLICAS_REASON}}
17+ ${{CLAIR_DISABLE_ANTI_AFFINITY_CHECK}} : ${{CLAIR_DISABLE_ANTI_AFFINITY_REASON}}
1518 name : clair-indexer
1619 labels :
1720 service : indexer
@@ -95,6 +98,9 @@ objects:
9598 labels :
9699 service : matcher
97100 app : clair
101+ annotations :
102+ ${{CLAIR_DISABLE_MIN_REPLICAS_CHECK}} : ${{CLAIR_DISABLE_MIN_REPLICAS_REASON}}
103+ ${{CLAIR_DISABLE_ANTI_AFFINITY_CHECK}} : ${{CLAIR_DISABLE_ANTI_AFFINITY_REASON}}
98104 spec :
99105 replicas : ${{MATCHER_DEPLOYMENT_REPLICAS}}
100106 selector :
@@ -158,6 +164,9 @@ objects:
158164 kind : Deployment
159165 metadata :
160166 name : clair-notifier
167+ annotations :
168+ ${{CLAIR_DISABLE_MIN_REPLICAS_CHECK}} : ${{CLAIR_DISABLE_MIN_REPLICAS_REASON}}
169+ ${{CLAIR_DISABLE_ANTI_AFFINITY_CHECK}} : ${{CLAIR_DISABLE_ANTI_AFFINITY_REASON}}
161170 labels :
162171 service : notifier
163172 app : clair
@@ -391,3 +400,16 @@ parameters:
391400 value : " clair"
392401 displayName : clair service account
393402 description : name of the service account to use for API interaction
403+ # DVO
404+ - name : CLAIR_DISABLE_MIN_REPLICAS_CHECK
405+ displayName : Disable Minimum Replicas Check
406+ value : " min-replicas-check-not-disabled"
407+ - name : CLAIR_DISABLE_MIN_REPLICAS_REASON
408+ displayName : Reason for Disabling Minimum Replicas Check
409+ value : " "
410+ - name : CLAIR_DISABLE_ANTI_AFFINITY_CHECK
411+ value : " anti-affinity-check-not-disabled"
412+ displayName : disable DVO check for anti-affinity
413+ - name : CLAIR_DISABLE_ANTI_AFFINITY_CHECK
414+ value : " "
415+ displayName : reason for disabling anti-affinity check
0 commit comments