Enhance the ingress resource to support the old deprecated API and the new
As the bitnami common.capabilities.ingress.apiVersion function is able to return the appropriate apiVersion for ingress which could be:
extensions/v1beta1,
networking.k8s.io/v1beta1
networking.k8s.io/v1 (latest supported)
then additional logic will be needed to support to populate the correct Backend or PathType sections of the Ingress.spec
Notable changes concerning the new API are:
spec.backend is renamed to spec.defaultBackend
The backend serviceName field is renamed to service.name
Numeric backend servicePort fields are renamed to service.port.number
String backend servicePort fields are renamed to service.port.name
pathType is now required for each specified path. Options are Prefix, Exact, and ImplementationSpecific. To match the undefined v1beta1 behavior, use ImplementationSpecific.
Requirement
Enhance the ingress resource to support the old deprecated API and the new
As the bitnami
common.capabilities.ingress.apiVersion
function is able to return the appropriate apiVersion for ingress which could be:extensions/v1beta1
,networking.k8s.io/v1beta1
networking.k8s.io/v1
(latest supported)then additional logic will be needed to support to populate the correct Backend or PathType sections of the
Ingress.spec
Notable changes concerning the new API are:
spec.backend
is renamed tospec.defaultBackend
serviceName
field is renamed toservice.name
servicePort
fields are renamed toservice.port.number
servicePort
fields are renamed toservice.port.name
pathType
is now required for each specified path. Options are Prefix, Exact, and ImplementationSpecific. To match the undefined v1beta1 behavior, use ImplementationSpecific.