Skip to content

Commit

Permalink
Update deprecated apiVersion
Browse files Browse the repository at this point in the history
For AWS k8s v1.25.9 cluster we have [deprecated][1] API versions for Ingress and CronJob. Update to the actual version

[1]:https://v1-25.docs.kubernetes.io/docs/reference/using-api/deprecation-guide/
  • Loading branch information
AlexanderPavlovHC committed Aug 30, 2023
1 parent f7e7ce1 commit c8f9321
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .helm/templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
{{- if .Values.ingress.enabled -}}
{{- $fullName := include "jiraclick.fullname" . -}}
{{- if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
apiVersion: networking.k8s.io/v1beta1
{{- else -}}
apiVersion: extensions/v1beta1
{{- end }}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ $fullName }}
Expand All @@ -31,10 +27,13 @@ spec:
http:
paths:
{{- range .paths }}
- path: {{ .path }}
backend:
serviceName: {{ $fullName }}
servicePort: {{ .port }}
- path: {{ .path }}
pathType: Prefix
backend:
service:
name: {{ $fullName }}
port:
name: {{ .port }}
{{- end }}
{{- end }}
{{- end }}

0 comments on commit c8f9321

Please sign in to comment.