matrixji opened a new issue, #2265: URL: https://github.com/apache/incubator-devlake/issues/2265
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/incubator-devlake/issues?q=is%3Aissue) and found no similar issues. ### What happened Incorrect rendering helm template with helm==3.9 and kubernetes==1.19.15 It reports: ```plain Error: unable to build kubernetes objects from release manifest: error validating "": error validating data: apiVersion not set ``` And add a doc splitter `---` in ingresses.yaml could fix this. ```diff diff --git a/deployment/helm/templates/ingresses.yaml b/deployment/helm/templates/ingresses.yaml index f2362f61..124969c8 100644 --- a/deployment/helm/templates/ingresses.yaml +++ b/deployment/helm/templates/ingresses.yaml @@ -14,6 +14,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # +--- {{- if .Values.ingress.enabled -}} {{- $fullName := include "devlake.fullname" . -}} {{- if and .Values.ingress.className (not (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion)) }} ``` ### What you expected to happen Hope install success ### How to reproduce I guess it could be reproduced with Kubernetes between (1.14, 1.19]. ### Anything else _No response_ ### Version main ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
