Skip to content

Commit

Permalink
chore: 适配 k8s 1.26
Browse files Browse the repository at this point in the history
  • Loading branch information
Hansin1997 committed Mar 24, 2023
1 parent 5aa0345 commit 61039bd
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion charts/auth-service/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.1
version: 0.1.2

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
8 changes: 5 additions & 3 deletions charts/auth-service/templates/auth/ingress.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{ if .Values.ingress.enabled }}
apiVersion: networking.k8s.io/v1beta1
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: auth-service-{{ .Release.Name }}
Expand All @@ -18,6 +18,8 @@ spec:
- path: /
pathType: ImplementationSpecific
backend:
serviceName: auth-service-{{ .Release.Name }}
servicePort: 80
service:
name: auth-service-{{ .Release.Name }}
port:
number: 80
{{ end }}
2 changes: 1 addition & 1 deletion charts/auth-ui/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.0
version: 0.1.1

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
8 changes: 5 additions & 3 deletions charts/auth-ui/templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{ if .Values.ingress.enabled }}
apiVersion: networking.k8s.io/v1beta1
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: auth-ui-{{ .Release.Name }}
Expand All @@ -18,6 +18,8 @@ spec:
- path: /
pathType: ImplementationSpecific
backend:
serviceName: auth-ui-{{ .Release.Name }}
servicePort: 80
service:
name: auth-ui-{{ .Release.Name }}
port:
number: 80
{{ end }}

0 comments on commit 61039bd

Please sign in to comment.