Skip to content

Commit 501e4b9

Browse files
LETSGOnobodyiam
LETSGO
authored andcommitted
Update ingress-portal.yaml (#3933)
* Update ingress-portal.yaml -}} means whitespace to the right should be consumed,cause error: 'apiVersion not set'. (#apiVersion annotated) * Update ingress-adminservice.yaml syntax error * Update ingress-configservice.yaml syntax error * Update CHANGES.md
1 parent 1ddfa08 commit 501e4b9

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

CHANGES.md

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Apollo 1.9.1
66

77
------------------
88
* [Remove spring dependencies from internal code](https://github.com/apolloconfig/apollo/pull/3937)
9+
* [Fix issue: ingress syntax](https://github.com/apolloconfig/apollo/pull/3933)
910

1011
------------------
1112
All issues and pull requests are [here](https://github.com/apolloconfig/apollo/milestone/9?closed=1)

scripts/helm/apollo-portal/templates/ingress-portal.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
{{- if .Values.ingress.enabled -}}
1717
{{- $fullName := include "apollo.portal.fullName" . -}}
1818
{{- $svcPort := .Values.service.port -}}
19-
{{- if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
19+
{{- if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion }}
2020
apiVersion: networking.k8s.io/v1beta1
21-
{{- else -}}
21+
{{- else }}
2222
apiVersion: extensions/v1beta1
2323
{{- end }}
2424
kind: Ingress

scripts/helm/apollo-service/templates/ingress-adminservice.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
{{- if .Values.adminService.ingress.enabled -}}
1717
{{- $fullName := include "apollo.adminService.fullName" . -}}
1818
{{- $svcPort := .Values.adminService.service.port -}}
19-
{{- if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
19+
{{- if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion }}
2020
apiVersion: networking.k8s.io/v1beta1
21-
{{- else -}}
21+
{{- else }}
2222
apiVersion: extensions/v1beta1
2323
{{- end }}
2424
kind: Ingress

scripts/helm/apollo-service/templates/ingress-configservice.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
{{- if .Values.configService.ingress.enabled -}}
1717
{{- $fullName := include "apollo.configService.fullName" . -}}
1818
{{- $svcPort := .Values.configService.service.port -}}
19-
{{- if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
19+
{{- if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion }}
2020
apiVersion: networking.k8s.io/v1beta1
21-
{{- else -}}
21+
{{- else }}
2222
apiVersion: extensions/v1beta1
2323
{{- end }}
2424
kind: Ingress

0 commit comments

Comments
 (0)