File tree Expand file tree Collapse file tree 3 files changed +15
-3
lines changed
deploy/charts/mysql-operator Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
1616### Changed
1717 * Allow setting pod security context when deploying with Helm
1818 * Use [ distroless] ( https://github.com/GoogleContainerTools/distroless ) as base image for orchestrator container
19+ * Use networking.k8s.io/v1 instead of extensions/v1beta1 for ingress
1920### Removed
2021### Fixed
2122
Original file line number Diff line number Diff line change 11{{- if .Values.orchestrator.ingress.enabled -}}
22{{- $fullName := include "mysql-operator.fullname" . -}}
3- apiVersion : extensions/v1beta1
3+ apiVersion : networking.k8s.io/v1
44kind : Ingress
55metadata :
66 name : {{ $fullName }}
@@ -11,6 +11,9 @@ metadata:
1111 {{- toYaml . | nindent 4 }}
1212 {{- end }}
1313spec :
14+ {{- if .Values.ingress.className }}
15+ ingressClassName : {{ .Values.ingress.className }}
16+ {{- end }}
1417 {{- if .Values.orchestrator.ingress.tls }}
1518 tls :
1619 {{- range .Values.orchestrator.ingress.tls }}
2831 paths :
2932 {{- range .paths }}
3033 - path : {{ . }}
34+ pathType : Prefix
3135 backend :
32- serviceName : {{ $fullName }}
33- servicePort : http
36+ service :
37+ name : {{ $fullName }}
38+ port :
39+ name : http
3440 {{- end }}
3541 {{- end }}
3642{{- end }}
Original file line number Diff line number Diff line change @@ -126,6 +126,11 @@ orchestrator:
126126 # hosts:
127127 # - chart-example.local
128128
129+ # # If defined set the `ingressClassName`. If unset the default ingress class
130+ # # (https://kubernetes.io/docs/concepts/services-networking/ingress/#default-ingress-class)
131+ # # will be used. Mutually exlusive with annotation `kubernetes.io/ingress.class`
132+ # className: nginx
133+
129134 persistence :
130135 enabled : true
131136 # # If defined, storageClassName: <storageClass>
You can’t perform that action at this time.
0 commit comments