Merge pull request #15722 from rook/mergify/bp/release-1.16/pr-15719

feat: add labels to ingress resource (backport #15719)
This commit is contained in:
subham rai authored and GitHub committed 2025-04-16 16:29:37 +05:30
commit e7120f891e
2 files changed
+5

No files matched your search

@@ -5,6 +5,9 @@ kind: Ingress
metadata:
name: {{ template "clusterName" . }}-dashboard
namespace: {{ .Release.Namespace }} # namespace:cluster
{{- if .Values.ingress.dashboard.labels }}
labels: {{- toYaml .Values.ingress.dashboard.labels | nindent 4 }}
{{- end}}
{{- if .Values.ingress.dashboard.annotations }}
annotations: {{- toYaml .Values.ingress.dashboard.annotations | nindent 4 }}
{{- end }}
@@ -417,6 +417,8 @@ ingress:
# -- Enable an ingress for the ceph-dashboard
dashboard:
{}
# labels:
# external-dns/private: "true"
# annotations:
# external-dns.alpha.kubernetes.io/hostname: dashboard.example.com
# nginx.ingress.kubernetes.io/rewrite-target: /ceph-dashboard/$2