diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 6eb0fac..a57d84b 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -126,6 +126,8 @@ jobs: - name: Create kind cluster uses: helm/kind-action@v1.0.0 if: steps.list-changed.outputs.changed == 'true' + with: + node_image: kindest/node:v1.19.1 - name: Run chart-testing (install) run: ct install --config ct.yaml diff --git a/charts/captain-hook/templates/ingress.yaml b/charts/captain-hook/templates/ingress.yaml index 0b348bb..7736935 100644 --- a/charts/captain-hook/templates/ingress.yaml +++ b/charts/captain-hook/templates/ingress.yaml @@ -36,16 +36,18 @@ spec: paths: {{- range .paths }} - path: {{ .path }} + {{- if semverCompare ">=1.19-0" $kubeTargetVersion }} backend: - {{- if semverCompare ">=1.19-0" $kubeTargetVersion }} service: name: {{ $fullName }} port: number: {{ $svcPort }} - {{- else }} + pathType: ImplementationSpecific + {{- else }} + backend: serviceName: {{ $fullName }} servicePort: {{ $svcPort }} - {{- end }} + {{- end }} {{- end }} {{- end }} {{- end }}