Skip to content

Commit

Permalink
contrib: Add dedicated serviceAccount
Browse files Browse the repository at this point in the history
Adding a dedicated serviceAccount to the matcher,
indexer and notifier services.

Signed-off-by: crozzy <joseph.crosland@gmail.com>
  • Loading branch information
crozzy committed Jun 21, 2022
1 parent 1d89c03 commit 37ca1ab
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions contrib/openshift/manifests/manifests.yaml
Expand Up @@ -39,6 +39,7 @@ objects:
service: indexer
app: clair
spec:
serviceAccountName: ${SERVICE_ACCOUNT}
volumes:
- name: clair-config
secret:
Expand Down Expand Up @@ -111,6 +112,7 @@ objects:
service: matcher
app: clair
spec:
serviceAccountName: ${SERVICE_ACCOUNT}
volumes:
- name: clair-config
secret:
Expand Down Expand Up @@ -176,6 +178,7 @@ objects:
service: notifier
app: clair
spec:
serviceAccountName: ${SERVICE_ACCOUNT}
volumes:
- name: clair-config
secret:
Expand Down Expand Up @@ -293,6 +296,16 @@ objects:
selector:
service: notifier
app: clair
#
# service account
#
- apiVersion: v1
kind: ServiceAccount
metadata:
name: ${SERVICE_ACCOUNT}
imagePullSecrets:
- name: quay.io

parameters:
#
# indexer params
Expand Down Expand Up @@ -378,3 +391,7 @@ parameters:
- name: STORAGE_CLASS_NAME
value: "gp2"
displayName: the storage class to use when creating VPCs
- name: SERVICE_ACCOUNT
value: "clair"
displayName: clair service account
description: name of the service account to use for API interaction

0 comments on commit 37ca1ab

Please sign in to comment.