From f726bccbe56f601a42c1a7f9f4c9b34a352a4946 Mon Sep 17 00:00:00 2001 From: Vitor Hideyoshi Date: Sun, 10 Sep 2023 04:11:02 -0300 Subject: [PATCH] Implements Virus Checker Secrets --- deployment/storage/storage-processor.yaml | 14 +++++++++++++- deployment/storage/storage.yaml | 12 ++++++++++++ template/storage/storage-secret.template.yaml | 4 +++- 3 files changed, 28 insertions(+), 2 deletions(-) diff --git a/deployment/storage/storage-processor.yaml b/deployment/storage/storage-processor.yaml index 4d8ce71..32d0679 100644 --- a/deployment/storage/storage-processor.yaml +++ b/deployment/storage/storage-processor.yaml @@ -69,4 +69,16 @@ spec: valueFrom: secretKeyRef: name: storage-secret - key: aws_bucket_name \ No newline at end of file + key: aws_bucket_name + + - name: VIRUS_CHECKER_TYPE + valueFrom: + secretKeyRef: + name: storage-secret + key: virus_checker_type + + - name: VIRUS_CHECKER_API_KEY + valueFrom: + secretKeyRef: + name: storage-secret + key: virus_checher_api_key \ No newline at end of file diff --git a/deployment/storage/storage.yaml b/deployment/storage/storage.yaml index 10ff8ed..73d14dc 100644 --- a/deployment/storage/storage.yaml +++ b/deployment/storage/storage.yaml @@ -86,6 +86,18 @@ spec: name: storage-secret key: aws_bucket_name + - name: VIRUS_CHECKER_TYPE + valueFrom: + secretKeyRef: + name: storage-secret + key: virus_checker_type + + - name: VIRUS_CHECKER_API_KEY + valueFrom: + secretKeyRef: + name: storage-secret + key: virus_checher_api_key + --- apiVersion: v1 kind: Service diff --git a/template/storage/storage-secret.template.yaml b/template/storage/storage-secret.template.yaml index 4da3faf..959a281 100644 --- a/template/storage/storage-secret.template.yaml +++ b/template/storage/storage-secret.template.yaml @@ -9,4 +9,6 @@ data: aws_access_key_id: $AWS_ACCESS_KEY_ID aws_access_access_key: $AWS_SECRET_ACCESS_KEY aws_region_name: $AWS_REGION_NAME - aws_bucket_name: $AWS_BUCKET_NAME \ No newline at end of file + aws_bucket_name: $AWS_BUCKET_NAME + virus_checker_type: $VIRUS_CHECKER_TYPE + virus_checher_api_key: $VIRUS_CHECKER_API_KEY \ No newline at end of file