Skip to content

Commit 5c9ac9e

Browse files
committed
Add warning for invalid NodeBalancer type annotation but still default to DefaultNBType
1 parent bf2b161 commit 5c9ac9e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cloud/linode/loadbalancers.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -769,6 +769,9 @@ func (l *loadbalancers) GetLinodeNBType(service *v1.Service) linodego.NodeBalanc
769769
return linodego.NBTypePremium
770770
case linodego.NBTypePremium40GB:
771771
return linodego.NBTypePremium40GB
772+
default:
773+
klog.Warningf("Invalid NodeBalancer type '%s' specified in annotation for service %s/%s. Valid types are: %s, %s, %s. Defaulting to %s.",
774+
typeStr, service.Namespace, service.Name, linodego.NBTypeCommon, linodego.NBTypePremium, linodego.NBTypePremium40GB, options.Options.DefaultNBType)
772775
}
773776
}
774777

0 commit comments

Comments
 (0)