Skip to content

Commit 32164d0

Browse files
authored
Merge branch 'master' into master
2 parents 067b014 + 15202ec commit 32164d0

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

Changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

deploy/charts/mysql-operator/templates/orc-ingress.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{- if .Values.orchestrator.ingress.enabled -}}
22
{{- $fullName := include "mysql-operator.fullname" . -}}
3-
apiVersion: extensions/v1beta1
3+
apiVersion: networking.k8s.io/v1
44
kind: Ingress
55
metadata:
66
name: {{ $fullName }}
@@ -11,6 +11,9 @@ metadata:
1111
{{- toYaml . | nindent 4 }}
1212
{{- end }}
1313
spec:
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 }}
@@ -28,9 +31,12 @@ spec:
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 }}

deploy/charts/mysql-operator/values.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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>

0 commit comments

Comments
 (0)