From 0cfb2182dfc13a7a9814464138bf827cd33cd56d Mon Sep 17 00:00:00 2001 From: Rafael Vencioneck Date: Thu, 6 Oct 2022 12:08:24 -0300 Subject: [PATCH] [T-14648] make annotation an input for ingress resource (#59) --- charts/blockchain-node/Chart.yaml | 2 +- charts/blockchain-node/example-values.yaml | 3 +++ charts/blockchain-node/templates/ingress.yaml | 4 ++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/charts/blockchain-node/Chart.yaml b/charts/blockchain-node/Chart.yaml index e15fecf..5143598 100644 --- a/charts/blockchain-node/Chart.yaml +++ b/charts/blockchain-node/Chart.yaml @@ -4,7 +4,7 @@ description: A Helm chart to deploy a blockchain node type: application -version: 0.0.12 +version: 0.0.13 appVersion: "1.16.0" diff --git a/charts/blockchain-node/example-values.yaml b/charts/blockchain-node/example-values.yaml index 6814292..c059af0 100644 --- a/charts/blockchain-node/example-values.yaml +++ b/charts/blockchain-node/example-values.yaml @@ -100,6 +100,9 @@ statefulset: protocol: TCP ingressNginx: host: seed10.mainnet.pokt.network + annotations: + nginx.ingress.kubernetes.io/auth-secret: my-basic-auth + nginx.ingress.kubernetes.io/auth-type: basic - name: tendermintpeers type: ClusterIP port: 26656 diff --git a/charts/blockchain-node/templates/ingress.yaml b/charts/blockchain-node/templates/ingress.yaml index 48ee03d..a85559e 100644 --- a/charts/blockchain-node/templates/ingress.yaml +++ b/charts/blockchain-node/templates/ingress.yaml @@ -10,6 +10,10 @@ metadata: name: {{ include "blockchain-node.fullname" $ }}-{{ $prt.name }} labels: {{- include "blockchain-node.labels" $ | nindent 4 }} + {{- if $prt.ingressNginx.annotations }} + annotations: + {{- toYaml $prt.ingressNginx.annotations | nindent 4 }} + {{- end }} spec: ingressClassName: nginx rules: