Fix helm webhook ingress error: spec.rules[0].http.paths[0].backend: Required value: port name or number is required (#437)

This commit is contained in:
Javi Polo
2021-04-01 23:34:45 +02:00
committed by GitHub
parent 9ed245c85e
commit 3c125e2191
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
{{- if .Values.githubWebhookServer.ingress.enabled -}}
{{- $fullName := include "actions-runner-controller-github-webhook-server.fullname" . -}}
{{- $svcPort := .Values.githubWebhookServer.service.port -}}
{{- $svcPort := (index .Values.githubWebhookServer.service.ports 0).port -}}
{{- if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
apiVersion: networking.k8s.io/v1beta1
{{- else -}}