Skip to content

Commit

Permalink
[T-14648] make annotation an input for ingress resource (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
rdvencioneck authored Oct 6, 2022
1 parent cf47101 commit 0cfb218
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/blockchain-node/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
3 changes: 3 additions & 0 deletions charts/blockchain-node/example-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions charts/blockchain-node/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 0cfb218

Please sign in to comment.