Skip to content

Commit

Permalink
Merge pull request #9280 from TomHellier/test-helm-on-multiple-versions
Browse files Browse the repository at this point in the history
helm: Use a more explicit value for ingress for K8s 1.18
  • Loading branch information
travisn committed Dec 2, 2021
2 parents 8c60f6f + 2ca93e5 commit 2efa571
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions deploy/charts/rook-ceph-cluster/templates/ingress.yaml
Expand Up @@ -14,14 +14,7 @@ spec:
paths:
- path: {{ .Values.ingress.dashboard.host.path | default "/" }}
backend:
{{- if (semverCompare "<1.18-0" (include "capabilities.kubeVersion" .)) }}
serviceName: rook-ceph-mgr-dashboard
{{- if .Values.cephClusterSpec.dashboard.ssl }}
servicePort: https-dashboard
{{- else }}
servicePort: http-dashboard
{{- end }}
{{- else }}
{{- if (eq "networking.k8s.io/v1" (include "capabilities.ingress.apiVersion" .)) }}
service:
name: rook-ceph-mgr-dashboard
port:
Expand All @@ -31,6 +24,13 @@ spec:
name: http-dashboard
{{- end }}
pathType: Prefix
{{- else }}
serviceName: rook-ceph-mgr-dashboard
{{- if .Values.cephClusterSpec.dashboard.ssl }}
servicePort: https-dashboard
{{- else }}
servicePort: http-dashboard
{{- end }}
{{- end }}
{{- if .Values.ingress.dashboard.tls }}
tls: {{- toYaml .Values.ingress.dashboard.tls | nindent 4 }}
Expand Down

0 comments on commit 2efa571

Please sign in to comment.