why dash is used in condition Go templates

Dash removes the spaces from the output on the side it appears in the template: https://golang.org/pkg/text/template/#hdr-Text_and_spaces {{- if …}} The above will remove all spaces that appear before the if statement, so if the result of if prints something, it’ll be right after the last piece of text without any spaces.

What is the difference between fullnameOverride and nameOverride in Helm?

nameOverride replaces the name of the chart in the Chart.yaml file, when this is used to construct Kubernetes object names. fullnameOverride completely replaces the generated name. These come from the template provided by Helm for new charts. A typical object in the templates is named name: {{ include “<CHARTNAME>.fullname” . }} If you install a … Read more

Let’s Encrypt kubernetes Ingress Controller issuing Fake Certificate

Maybe would be helpful for someone experiencing similar issues. As for me, a forgot to specify hostname in Ingress yaml file for both rules and tls sections. After duplicating the hostname, it started responding with a proper certificate. Example: apiVersion: networking.k8s.io/v1beta1 kind: Ingress metadata: name: test-web-ingress annotations: kubernetes.io/ingress.class: nginx spec: tls: – hosts: – my.host.com … Read more