From d94a4502ec7644cec97204624c76c64f08050a81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Santiago=20N=C3=BA=C3=B1ez-Cacho=20Solans?= Date: Thu, 15 Dec 2022 14:54:55 +0100 Subject: [PATCH] rename secrets --- charts/ip-blocker/Chart.yaml | 4 ++-- charts/ip-blocker/templates/deployment.yaml | 8 ++++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/charts/ip-blocker/Chart.yaml b/charts/ip-blocker/Chart.yaml index 16ffe7d..8d603eb 100644 --- a/charts/ip-blocker/Chart.yaml +++ b/charts/ip-blocker/Chart.yaml @@ -2,5 +2,5 @@ apiVersion: v2 name: ip-blocker description: This chart deploys a daemon in k8s for blocking IPs from unwanted bots type: application -version: 0.4.5 -appVersion: 0.4.5 +version: 0.5.0 +appVersion: 0.5.0 diff --git a/charts/ip-blocker/templates/deployment.yaml b/charts/ip-blocker/templates/deployment.yaml index 77aaf33..d69d334 100644 --- a/charts/ip-blocker/templates/deployment.yaml +++ b/charts/ip-blocker/templates/deployment.yaml @@ -47,7 +47,11 @@ spec: - name: ELASTIC_ADDRESS value: {{ .Values.elasticSearch.address }} - name: GOOGLE_APPLICATION_CREDENTIALS - value: /secrets/credentials.json + value: /secrets/private_key + {{- with .Values.resources }} + resources: + {{- toYaml . | nindent 10 }} + {{- end }} volumeMounts: - name: credentials mountPath: /secrets @@ -59,7 +63,7 @@ spec: volumes: - name: credentials secret: - secretName: google-credentials + secretName: ip-blocker-key - name: commonconfig-volume projected: defaultMode: 420