mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 06:27:05 +00:00
add comments
This commit is contained in:
parent
775480f7d9
commit
828e22bdc6
@ -20,7 +20,10 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// NetworkTier represents the Network Service Tier used by a resource
|
||||||
type NetworkTier string
|
type NetworkTier string
|
||||||
|
|
||||||
|
// LbScheme represents the possible types of load balancers
|
||||||
type LbScheme string
|
type LbScheme string
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@ -33,7 +36,7 @@ const (
|
|||||||
)
|
)
|
||||||
|
|
||||||
// ToGCEValue converts NetworkTier to a string that we can populate the
|
// ToGCEValue converts NetworkTier to a string that we can populate the
|
||||||
// NetworkTier field of GCE objects.
|
// NetworkTier field of GCE objects, including ForwardingRules and Addresses.
|
||||||
func (n NetworkTier) ToGCEValue() string {
|
func (n NetworkTier) ToGCEValue() string {
|
||||||
return strings.ToUpper(string(n))
|
return strings.ToUpper(string(n))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user