Skip to content

Commit

Permalink
contrib: update config secret
Browse files Browse the repository at this point in the history
As we are going down the path of templating the config file
in app-interface the file name is already specified there so
we can lose some clutter by allowing kube to create the file.

Signed-off-by: crozzy <joseph.crosland@gmail.com>
  • Loading branch information
crozzy committed Oct 11, 2021
1 parent 6f9ca6b commit 7bfc9f9
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions contrib/openshift/manifests/manifests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@ objects:
- name: clair-config
secret:
secretName: config
items:
- key: ${{CLAIR_SECRET}}
path: clair.conf
containers:
- name: clair-indexer
resources:
Expand All @@ -57,7 +54,7 @@ objects:
command: [clair]
env:
- name: CLAIR_CONF
value: '/etc/clair/clair.conf'
value: '/etc/clair/config.yaml'
- name: CLAIR_MODE
value: indexer
image: ${CLAIR_IMAGE}:${IMAGE_TAG}
Expand Down Expand Up @@ -111,9 +108,6 @@ objects:
- name: clair-config
secret:
secretName: config
items:
- key: ${{CLAIR_SECRET}}
path: clair.conf
containers:
- name: clair-matcher
resources:
Expand All @@ -126,7 +120,7 @@ objects:
command: [clair]
env:
- name: CLAIR_CONF
value: '/etc/clair/clair.conf'
value: '/etc/clair/config.yaml'
- name: CLAIR_MODE
value: matcher
image: ${CLAIR_IMAGE}:${IMAGE_TAG}
Expand Down Expand Up @@ -177,9 +171,6 @@ objects:
- name: clair-config
secret:
secretName: config
items:
- key: ${{CLAIR_SECRET}}
path: clair.conf
containers:
- name: clair-notifier
resources:
Expand All @@ -192,7 +183,7 @@ objects:
command: [clair]
env:
- name: CLAIR_CONF
value: '/etc/clair/clair.conf'
value: '/etc/clair/config.yaml'
- name: CLAIR_MODE
value: notifier
image: ${CLAIR_IMAGE}:${IMAGE_TAG}
Expand Down Expand Up @@ -352,9 +343,6 @@ parameters:
#
# shared params
#
- name: CLAIR_SECRET
value: "clair"
displayName: the vault secret containing clair's config
- name: CLAIR_IMAGE
value: "quay.io/app-sre/clair"
displayName: the image of clair v4 to deploy
Expand Down

0 comments on commit 7bfc9f9

Please sign in to comment.