Skip to content

UI-Ingress is Deprecated #1574

@markusheinemann

Description

@markusheinemann
  • Which image of the operator are you using? v1.6.3 helm chart from github repository
  • Where do you run it - cloud or metal? Kubernetes or OpenShift? OVH managed Kubernetes
  • Are you running Postgres Operator in production? no
  • Type of issue? Bug report

I setup the postgres-operator-ui using helm. In the values.yaml I have setup an nginx ingress with the following configuration:

ingress:
  enabled: true
  annotations:
    kubernetes.io/ingress.class: nginx
    kubernetes.io/tls-acme: "true"
  hosts:
    - host: ui.yourname.xyz
      paths: [""]
  tls:
    - secretName: postgres-operator-ui-tls
      hosts:
        - ui.yourname.xyz

During the installation I get this deprecation warnings:

W0802 18:44:38.032843   17478 warnings.go:70] networking.k8s.io/v1beta1 Ingress is deprecated in v1.19+, unavailable in v1.22+; use networking.k8s.io/v1 Ingress
W0802 18:44:38.938036   17478 warnings.go:70] networking.k8s.io/v1beta1 Ingress is deprecated in v1.19+, unavailable in v1.22+; use networking.k8s.io/v1 Ingress
W0802 18:44:39.062773   17478 warnings.go:70] networking.k8s.io/v1beta1 Ingress is deprecated in v1.19+, unavailable in v1.22+; use networking.k8s.io/v1 Ingress

I expect the chart installing without the deprecation warnings.

I think the fix is relative easy. Just updating the apiVersion in the ingress template and double-check if there are any incompatibilities with the new version. The old version will not longer supported with K8S release 1.22.

More Information: https://kubernetes.io/docs/reference/using-api/deprecation-guide/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions