Skip to content
This repository has been archived by the owner on Jan 26, 2024. It is now read-only.

Commit

Permalink
IT-352 - Beta APIs will no longer work in GKE 1.22
Browse files Browse the repository at this point in the history
  • Loading branch information
rptxeni committed Feb 15, 2023
1 parent f5088b1 commit f64618a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
11 changes: 7 additions & 4 deletions helm/tezos-api-gateway/templates/api/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
{{- $fullName := include "tezos-api-gateway.fullname" . -}}
{{- $svcPort := .Values.api.service.port -}}
{{- if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
apiVersion: networking.k8s.io/v1beta1
apiVersion: networking.k8s.io/v1
{{- else -}}
apiVersion: extensions/v1beta1
apiVersion: extensions/v1
{{- end }}
kind: Ingress
metadata:
Expand Down Expand Up @@ -35,9 +35,12 @@ spec:
paths:
{{- range .paths }}
- path: {{ .path }}
pathType: Prefix
backend:
serviceName: {{ $fullName }}-api
servicePort: {{ $svcPort }}
service:
name: {{ $fullName }}-api
port:
number: {{ $svcPort }}
{{- end }}
{{- end }}
{{- end }}
Expand Down
11 changes: 7 additions & 4 deletions helm/tezos-api-gateway/templates/generated-api/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
{{- $fullName := include "tezos-api-gateway.fullname" . -}}
{{- $svcPort := .Values.generatedApi.service.port -}}
{{- if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
apiVersion: networking.k8s.io/v1beta1
apiVersion: networking.k8s.io/v1
{{- else -}}
apiVersion: extensions/v1beta1
apiVersion: extensions/v1
{{- end }}
kind: Ingress
metadata:
Expand Down Expand Up @@ -34,9 +34,12 @@ spec:
paths:
{{- range .paths }}
- path: {{ .path }}
pathType: Prefix
backend:
serviceName: {{ $fullName }}-generated-api
servicePort: {{ $svcPort }}
service:
name: {{ $fullName }}-generated-api
port:
number: {{ $svcPort }}
{{- end }}
{{- end }}
{{- end }}

0 comments on commit f64618a

Please sign in to comment.