Skip to content

Commit

Permalink
New parameter to control GRPC and HTTP ingresses
Browse files Browse the repository at this point in the history
  • Loading branch information
luis02lopez committed Dec 18, 2023
1 parent 2861ff8 commit 16b1395
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/consumer/templates/ingress-grpc.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
{{ if (and .Values.ingress.enabled (or .Values.ingress.simple.enabled .Values.ingress.custom.enabled)) -}}
{{ if (and .Values.ingress.enabled (or .Values.ingress.simple.enabled .Values.ingress.custom.enabled) .Values.ingress.grpc.enabled) -}}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
Expand Down
2 changes: 1 addition & 1 deletion charts/consumer/templates/ingress-http.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
{{ if (and .Values.ingress.enabled (or .Values.ingress.simple.enabled .Values.ingress.custom.enabled)) -}}
{{ if (and .Values.ingress.enabled (or .Values.ingress.simple.enabled .Values.ingress.custom.enabled) .Values.ingress.http.enabled) -}}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
Expand Down
2 changes: 2 additions & 0 deletions charts/consumer/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,10 @@ ingress:
rules: []
className: "nginx"
http:
enabled: false
annotations: {}
grpc:
enabled: false
annotations:
nginx.ingress.kubernetes.io/backend-protocol: "GRPC"
annotations:
Expand Down

0 comments on commit 16b1395

Please sign in to comment.