<p>I'm migrating an architecture to kubernetes and I'd like to use the Haproxy ingress controller that I'm installling with helm, according the documentation (version 1.3).</p>
<p>Thing is, when I'm defining path rules through an ingress file, I can't define <em><strong>Regex</strong></em> or <em><strong>Beging</strong></em> path types as seen on documentation here : <a href="https://haproxy-ingress.github.io/docs/configuration/keys/#path-type" rel="nofollow noreferrer">https://haproxy-ingress.github.io/docs/configuration/keys/#path-type</a>.
My configuration file :</p>
<pre><code>apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
    name: bo-ingress
    annotations:
        haproxy.org/path-rewrite: &quot;/&quot;
        kubernetes.io/ingress.class: haproxy
spec:
    rules:
    - host: foo.com
      http:
        paths:
        - path: /
          pathType: Beging
          backend:
            service:
              name: foo-service
              port:
                number: 80
</code></pre>
<p>When I install my ingress helm chart with this configuration, I have that error message :</p>
<pre><code>Error: UPGRADE FAILED: cannot patch &quot;bo-ingress&quot; with kind Ingress: Ingress.extensions &quot;bo-ingress&quot; is invalid: spec.rules[2].http.paths[12].pathType: Unsupported value: &quot;Begin&quot;: supported values: &quot;Exact&quot;, &quot;ImplementationSpecific&quot;, &quot;Prefix&quot;
</code></pre>
<p>Am I missing something ? Is this feature only available for Enterprise plan ?</p>
<p>Thanks, Greg</p>

GregOs
<p>HAProxy Ingress follows “<a href="https://kubernetes.io/docs/concepts/services-networking/ingress/" rel="nofollow noreferrer">Ingress v1 spec</a>”, so any Ingress spec configuration should work as stated by the Kubernetes documentation.</p>
<p>As per the kubernetes documentation, the supported path types are <strong>ImplementationSpecific, Exact and Prefix</strong>. Paths that do not include an explicit pathType will fail validation. Here the path type <strong>Begin</strong> is not supported as per kubernetes documentation. So use either of those <strong>3 types</strong>.</p>
<p>For more information on kubernetes supported path types refer to the <a href="https://kubernetes.io/docs/concepts/services-networking/ingress/#path-types" rel="nofollow noreferrer">documentation</a>.</p>
