Skip to content
This repository was archived by the owner on May 24, 2023. It is now read-only.

Commit 09191aa

Browse files
authored
Merge pull request #48 from commercetools/update_api_versions
update api-versions for public services.
2 parents 8c8783f + 2aa7de4 commit 09191aa

File tree

4 files changed

+14
-8
lines changed

4 files changed

+14
-8
lines changed

charts/public-service/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
apiVersion: v1
22
name: public-service
33
description: Helm chart for deploying an instance of a publicly available service on a K8s cluster (via HTTP from outside the cluster).
4-
version: 1.0.11
4+
version: 1.1.0

charts/public-service/templates/ingress.yaml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{{- if .Values.ingress.enabled -}}
22
{{- $fullName := include "public-service.fullname" . -}}
33
{{- $ingressPath := .Values.ingress.path -}}
4-
apiVersion: networking.k8s.io/v1beta1
4+
apiVersion: networking.k8s.io/v1
55
kind: Ingress
66
metadata:
77
name: {{ $fullName }}
@@ -31,18 +31,24 @@ spec:
3131
http:
3232
paths:
3333
- path: {{ $ingressPath }}
34+
pathType: ImplementationSpecific
3435
backend:
35-
serviceName: {{ $fullName }}
36-
servicePort: service-port
36+
service:
37+
name: {{ $fullName }}
38+
port:
39+
name: service-port
3740
{{- end }}
3841
# If no hosts are defined, a default path for the backend mapping has to be defined
3942
{{- if not .Values.ingress.hosts }}
4043
- http:
4144
paths:
4245
- path: {{ $ingressPath }}
46+
pathType: ImplementationSpecific
4347
backend:
44-
serviceName: {{ $fullName }}
45-
servicePort: service-port
48+
service:
49+
name: {{ $fullName }}
50+
port:
51+
name: service-port
4652

4753
{{- end }}
4854
{{- end }}

charts/public-service/templates/managedCertificate.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{- if .Values.managecertificate.enabled -}}
2-
apiVersion: networking.gke.io/v1beta2
2+
apiVersion: networking.gke.io/v1
33
kind: ManagedCertificate
44
metadata:
55
name: {{ .Values.managecertificate.name }}

charts/public-service/templates/poddisruptionbudgets.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{- if .Values.pdb.enabled -}}
22
{{- $fullName := include "public-service.fullname" . -}}
3-
apiVersion: policy/v1beta1
3+
apiVersion: policy/v1
44
kind: PodDisruptionBudget
55
metadata:
66
name: {{ $fullName }}

0 commit comments

Comments
 (0)