Skip to content

Commit

Permalink
feat: migrate Ingress API to networking.k8s.io/v1
Browse files Browse the repository at this point in the history
  • Loading branch information
tensor5 committed Jul 27, 2022
1 parent 21e8d8e commit 9246e9c
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 18 deletions.
8 changes: 5 additions & 3 deletions crawler/templates/nginx-ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{{- $servicePort := .Values.crawler.services.nginx.httpPort.servicePort -}}
{{- $ingressPath := .Values.crawler.ingress.path -}}

apiVersion: extensions/v1beta1
apiVersion: networking.k8s.io/v1

kind: Ingress
metadata:
Expand Down Expand Up @@ -37,7 +37,9 @@ spec:
paths:
- path: {{ $ingressPath }}
backend:
serviceName: {{ $fullName }}
servicePort: {{ $servicePort }}
service:
name: {{ $fullName }}
port:
number: {{ $servicePort }}
{{- end }}
{{- end }}
8 changes: 5 additions & 3 deletions onboarding/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{{- $servicePort := .Values.onboarding.services.httpPort.port -}}
{{- $ingressPath := .Values.onboarding.ingress.path -}}

apiVersion: extensions/v1beta1
apiVersion: networking.k8s.io/v1

kind: Ingress
metadata:
Expand Down Expand Up @@ -37,7 +37,9 @@ spec:
paths:
- path: {{ $ingressPath }}
backend:
serviceName: {{ $fullName }}-http
servicePort: {{ $servicePort }}
service:
name: {{ $fullName }}-http
port:
number: {{ $servicePort }}
{{- end }}
{{- end }}
8 changes: 5 additions & 3 deletions publiccode-validator/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{{- $servicePort := .Values.publiccode_validator.services.httpPort.port -}}
{{- $ingressPath := .Values.publiccode_validator.ingress.path -}}

apiVersion: extensions/v1beta1
apiVersion: networking.k8s.io/v1

kind: Ingress
metadata:
Expand Down Expand Up @@ -37,7 +37,9 @@ spec:
paths:
- path: {{ $ingressPath }}
backend:
serviceName: {{ $fullName }}-http
servicePort: {{ $servicePort }}
service:
name: {{ $fullName }}-http
port:
number: {{ $servicePort }}
{{- end }}
{{- end }}
8 changes: 5 additions & 3 deletions redirects-censimentoict-italia-it/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{{- $servicePort := .Values.redirects_censimentoict_italia_it.services.nginx.httpPort.servicePort -}}
{{- $ingressPath := .Values.redirects_censimentoict_italia_it.ingress.path -}}

apiVersion: extensions/v1beta1
apiVersion: networking.k8s.io/v1

kind: Ingress
metadata:
Expand Down Expand Up @@ -37,7 +37,9 @@ spec:
paths:
- path: {{ $ingressPath }}
backend:
serviceName: {{ $fullName }}
servicePort: {{ $servicePort }}
service:
name: {{ $fullName }}
port:
number: {{ $servicePort }}
{{- end }}
{{- end }}
8 changes: 5 additions & 3 deletions redirects-design-italia-it/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{{- $servicePort := .Values.redirects_design_italia_it.services.nginx.httpPort.servicePort -}}
{{- $ingressPath := .Values.redirects_design_italia_it.ingress.path -}}

apiVersion: extensions/v1beta1
apiVersion: networking.k8s.io/v1

kind: Ingress
metadata:
Expand Down Expand Up @@ -37,7 +37,9 @@ spec:
paths:
- path: {{ $ingressPath }}
backend:
serviceName: {{ $fullName }}
servicePort: {{ $servicePort }}
service:
name: {{ $fullName }}
port:
number: {{ $servicePort }}
{{- end }}
{{- end }}
8 changes: 5 additions & 3 deletions slack-registration/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{{- $servicePort := .Values.slack_registration.services.nginx.httpPort.servicePort -}}
{{- $ingressPath := .Values.slack_registration.ingress.path -}}

apiVersion: extensions/v1beta1
apiVersion: networking.k8s.io/v1

kind: Ingress
metadata:
Expand Down Expand Up @@ -37,7 +37,9 @@ spec:
paths:
- path: {{ $ingressPath }}
backend:
serviceName: {{ $fullName }}
servicePort: {{ $servicePort }}
service:
name: {{ $fullName }}
port:
number: {{ $servicePort }}
{{- end }}
{{- end }}

0 comments on commit 9246e9c

Please sign in to comment.