zerowhybr opened a new issue, #366:
URL: https://github.com/apache/incubator-devlake-helm-chart/issues/366

   Hi!
   
   I am using the Helm Chart on version [email protected] with the 
values.yaml as seen below:
   
   ```yaml
   grafana:
       grafana.ini:
         server:
           root_url: "https://devlake.example.com/grafana";
     lake:
       encryptionSecret:
         secretName: devlake
         autoCreateSecret: false
     ingress:
       enabled: true
       enableHttps: true
       useDefaultNginx: false
       className: devlake-nginx
       hostname: devlake.example.com
       annotations:
         cert-manager.io/cluster-issuer: google-ca
       tlsSecretName: "devlake-tls-cert"
   ```
   
   When rendering the chart and I get following error message:
   
   `error merging manifests: parsing devlake/templates/ingresses.yaml: invalid 
document separator: ---apiVersion: networking.k8s.io/v1`
   
   
   After looking at the Helm Chart templates, in the `ingresses.yaml` file, 
this section seems to be the culprit:
   
   ```yaml
   ---
   {{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}}
   apiVersion: networking.k8s.io/v1
   {{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
   apiVersion: networking.k8s.io/v1beta1
   {{- else -}}
   apiVersion: extensions/v1beta1
   {{- end }}
   ```
   
   The usage of `{{-` and `-}}` seems to cause the whitespace (which includes 
newlines) to be remove and the resulting apiVersion gets generated right on the 
side of the `---`.


-- 
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]

Reply via email to