Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ISSUE-804 - Add support for custom labels in Ingress #805

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add ingress label support for other vendors
  • Loading branch information
rob8714 committed Sep 4, 2024
commit a1485cafbf370a745ff8607321bc0d73b33d519f
4 changes: 4 additions & 0 deletions charts/pega/templates/_pega-aks-ingress.tpl
Original file line number Diff line number Diff line change
@@ -5,6 +5,10 @@ kind: Ingress
metadata:
name: {{ .name }}
namespace: {{ .root.Release.Namespace }}
{{- if .node.ingress.labels }}
labels:
{{ toYaml .node.ingress.labels | indent 4 }}
{{- end }}
annotations:
# Ingress class used is 'azure/application-gateway'
kubernetes.io/ingress.class: azure/application-gateway
4 changes: 4 additions & 0 deletions charts/pega/templates/_pega-eks-ingress.tpl
Original file line number Diff line number Diff line change
@@ -5,6 +5,10 @@ kind: Ingress
metadata:
name: {{ .name }}
namespace: {{ .root.Release.Namespace }}
{{- if .node.ingress.labels }}
labels:
{{ toYaml .node.ingress.labels | indent 4 }}
{{- end }}
annotations:
# Ingress class used is 'alb'
kubernetes.io/ingress.class: alb
4 changes: 4 additions & 0 deletions charts/pega/templates/_pega-gke-ingress.tpl
Original file line number Diff line number Diff line change
@@ -6,6 +6,10 @@ metadata:
name: {{ .name }}
namespace: {{ .root.Release.Namespace }}
{{ if (.node.ingress) }}
{{- if (.node.ingress.labels) }}
labels:
{{ toYaml .node.ingress.labels | indent 4 }}
{{- end }}
{{ if (.node.ingress.tls) }}
{{ if (eq .node.ingress.tls.enabled true) }}
annotations:
4 changes: 4 additions & 0 deletions charts/pega/templates/_pega-k8s-ingress.tpl
Original file line number Diff line number Diff line change
@@ -7,6 +7,10 @@ metadata:
namespace: {{ .root.Release.Namespace }}
annotations:
{{- $ingress := .node.ingress }}
{{- if $ingress.labels }}
labels:
{{ toYaml $ingress.labels | indent 4 }}
{{- end }}
{{- if $ingress.annotations }}
# Custom annotations
{{ toYaml $ingress.annotations | indent 4 }}