Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

White I am trying to set the TLS , it is giving below error #110

Closed
shri178 opened this issue Dec 15, 2021 · 2 comments
Closed

White I am trying to set the TLS , it is giving below error #110

shri178 opened this issue Dec 15, 2021 · 2 comments
Labels
bug Something isn't working no-issue-activity

Comments

@shri178
Copy link

shri178 commented Dec 15, 2021

Error: UPGRADE FAILED: template: erpnext/templates/ingress.yaml:19:16: executing "erpnext/templates/ingress.yaml" at <.hosts>: can't evaluate field hosts in type interface {}

 helm upgrade frappe-bench-0001 --namespace erpnext frappe/erpnext  --set mariadbHost=<REDACTED> --set persistence.worker.storageClass=efs-sc  --set persistence.logs.storageClass=efs-sc-log  --set dbRootPassword=<REDACTED>   --set ingress.enabled=true --set ingress.hosts[0].host=<REDACTED>  --set createSite.enabled=true --set createSite.siteName=<REDACTED>  --set ingress.hosts[0].paths[0].path=/  --set ingress.hosts[0].paths[0].pathType=ImplementationSpecific --set createSite.dbRootUser=<REDACTED> --set createSite.adminPassword=<REDACTED> --set upstreamRealIPAddress=10.0.0.0/8 --set ingress.tls[0]=<REDACTED> 
@shri178 shri178 added the bug Something isn't working label Dec 15, 2021
@revant
Copy link
Collaborator

revant commented Dec 17, 2021

--set ingress.tls[0]=<REDACTED>

What is tls?

currently it is doing this:

{{- if .Values.ingress.tls }}
tls:
{{- range .Values.ingress.tls }}
- hosts:
{{- range .hosts }}
- {{ . | quote }}
{{- end }}
secretName: {{ .secretName }}
{{- end }}
{{- end }}

Which means:

"tls": [{
  "hosts": ["erp.example.com"],
  "secretName": "erp-example-com-tls"
}]

@github-actions
Copy link
Contributor

This issue has been automatically marked as stale. You have a week to explain why you believe this is an error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working no-issue-activity
Projects
None yet
Development

No branches or pull requests

2 participants