Uploaded image for project: 'OpenShift Request For Enhancement'
  1. OpenShift Request For Enhancement
  2. RFE-2044

Ingress apiVersion in API does not match apiVersion in console

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • openshift-4.8
    • None
    • API
    • None
    • False
    • False
    • Undefined

      Hi,

       My customer sent me this case:

      There's a mismatch between the apiVersion of an Ingress retrieved through kubectl versus retrieved through the console.
      An ingress resource retrieved via kubectl shows apiVersion networking.k8s.io/v1:

      apiVersion: networking.k8s.io/v1
      kind: Ingress
        name: keycloak
        namespace: my-keycloak
      spec:
        rules:
        - host: my-keycloak.apps.dev.example.com
          http:
            paths:
            - backend:
                service:
                  name: keycloak-http
                  port:
                    name: http
              path: /
              pathType: ImplementationSpecific
        tls:
        - hosts:
          - my-keycloak.apps.dev.example.com
          secretName: keycloak-tls

      Whereas the same ingress shown in the console has apiVersion:

      kind: Ingress
      apiVersion: networking.k8s.io/v1beta1
        name: keycloak
        namespace: my-keycloak
      spec:
        tls:
          - hosts:
              - my-keycloak.apps.dev.example.com
            secretName: keycloak-tls
        rules:
          - host: my-keycloak.apps.dev.example.com
            http:
              paths:
                - path: /
                  pathType: ImplementationSpecific
                  backend:
                    serviceName: keycloak-http
                    servicePort: http

      According to the api spec, ingresses in Openshift 4.7 should now use apiVersion v1 instead of v1beta:

      https://docs.openshift.com/container-platform/4.7/rest_api/network_apis/ingress-networking-k8s-io-v1.html

      Therefore, we'd expect both ways of retrieving the ingress to show apiVersion v1.

      Could this be a bug or is there some configuration setting we might be missing?
      We're also wondering if this might explain the large number of ingress events we're seeing or if that's caused by something else?

              amobrem Ali Mobrem
              rhn-support-andbartl Andy Bartlett
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: