From 519695c4013c097d082a810deb5eb1f272397980 Mon Sep 17 00:00:00 2001 From: Antonio Ojea Date: Tue, 28 Feb 2023 18:06:30 +0000 Subject: [PATCH] make MixedProtocolNotSupported public Change-Id: Ib9f5ea8e36c831cd0e9649aa998c96f61d56122d --- staging/src/k8s.io/api/core/v1/types.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/staging/src/k8s.io/api/core/v1/types.go b/staging/src/k8s.io/api/core/v1/types.go index f603b3bc39b..3a95c5f3a9f 100644 --- a/staging/src/k8s.io/api/core/v1/types.go +++ b/staging/src/k8s.io/api/core/v1/types.go @@ -6872,6 +6872,14 @@ const ( PortForwardRequestIDHeader = "requestID" ) +// These are the built-in errors for PortStatus. +const ( + // MixedProtocolNotSupported error in PortStatus means that the cloud provider + // can't ensure the port on the load balancer because mixed values of protocols + // on the same LoadBalancer type of Service are not supported by the cloud provider. + MixedProtocolNotSupported = "MixedProtocolNotSupported" +) + // PortStatus represents the error condition of a service port type PortStatus struct {