title: How do I omit the port for well-known protocols in a Helm template procedure?
body: <p>I need to define a url in my Helm template such that the colon and port are omitted if the (protocol, port) are either (<code>http</code>, 80) or (<code>https</code>, 443).</p>
  <p>Correct:</p>
  <ul>
  <li>http://myservice:8080</li>
  <li>https://myservice:8443</li>
  <li>http://myservice</li>
  <li>https://myservice</li>
  </ul>
  <p>Incorrect:</p>
  <ul>
  <li>http://myservice:80</li>
  <li>https://myservice:443</li>
  </ul>
  <p>How would I go about doing this in a procedure definition in my <code>_helpers.tpl</code>?</p>