2.0.6 Ingress Broken #68

Closed
opened 2020-11-26 05:39:49 +00:00 by context · 2 comments

template is removing too many new lines in the Ingress template.

{{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion -}}

is causing the following issue, cause there is no whitespace between backend: and service: (formatted all pretty)

error validating data: [ ValidationError(Ingress.spec.rules[0].http.paths[0]): unknown field "backend:service" in io.k8s.api.networking.v1.HTTPIngressPath, ValidationError(Ingress.spec.rules[0].http.paths[0]): missing required field "backend" in io.k8s.api.networking.v1.HTTPIngressPath ] 
template is removing too many new lines in the Ingress template. `{{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion -}}` is causing the following issue, cause there is no whitespace between `backend:` and `service:` (formatted all pretty) ``` error validating data: [ ValidationError(Ingress.spec.rules[0].http.paths[0]): unknown field "backend:service" in io.k8s.api.networking.v1.HTTPIngressPath, ValidationError(Ingress.spec.rules[0].http.paths[0]): missing required field "backend" in io.k8s.api.networking.v1.HTTPIngressPath ] ```
Author

Running through helm template gives me the following. Although I am having to use --debug cause I am also getting an error with the annotations. Still digging into

spec: rules: - host: "git.example.com" http: paths: - path: / backend:serviceName: gitea-http servicePort: 3000 
Running through `helm template` gives me the following. Although I am having to use `--debug` cause I am also getting an error with the annotations. Still digging into ``` spec: rules: - host: "git.example.com" http: paths: - path: / backend:serviceName: gitea-http servicePort: 3000 ```
Member

Fixed with #70

Fixed with #70
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: gitea/helm-gitea#68
No description provided.