Skip to content

Commit

Permalink
Update ingress-portal.yaml (#3933)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
LETSGO authored and nobodyiam committed Sep 8, 2021
1 parent 1ddfa08 commit 501e4b9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Apollo 1.9.1

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

------------------
All issues and pull requests are [here](https://github.com/apolloconfig/apollo/milestone/9?closed=1)
4 changes: 2 additions & 2 deletions scripts/helm/apollo-portal/templates/ingress-portal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
{{- if .Values.ingress.enabled -}}
{{- $fullName := include "apollo.portal.fullName" . -}}
{{- $svcPort := .Values.service.port -}}
{{- if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
{{- if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion }}
apiVersion: networking.k8s.io/v1beta1
{{- else -}}
{{- else }}
apiVersion: extensions/v1beta1
{{- end }}
kind: Ingress
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
{{- if .Values.adminService.ingress.enabled -}}
{{- $fullName := include "apollo.adminService.fullName" . -}}
{{- $svcPort := .Values.adminService.service.port -}}
{{- if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
{{- if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion }}
apiVersion: networking.k8s.io/v1beta1
{{- else -}}
{{- else }}
apiVersion: extensions/v1beta1
{{- end }}
kind: Ingress
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
{{- if .Values.configService.ingress.enabled -}}
{{- $fullName := include "apollo.configService.fullName" . -}}
{{- $svcPort := .Values.configService.service.port -}}
{{- if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
{{- if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion }}
apiVersion: networking.k8s.io/v1beta1
{{- else -}}
{{- else }}
apiVersion: extensions/v1beta1
{{- end }}
kind: Ingress
Expand Down

0 comments on commit 501e4b9

Please sign in to comment.