Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Operator auto-created flat-network service name suffix FlatNetworkServiceNameSuffix = "-flat-network" K8sCNINetworksKey = "k8s.v1.cni.cncf.io/networks" K8sCNINetworksStatusKey = "k8s.v1.cni.cncf.io/network-status" NetAttatchDefName = "rancher-flat-network" )
Variables ¶
View Source
var ( Version = "v0.1.0" GitCommit = "" )
Functions ¶
func IsFlatNetworkService ¶
Check if this service is a flat-network service.
Specification: A Flat-Network Service is a ClusterIP typed headless service, name ends with '-flat-network' suffix. And should have 'k8s.v1.cni.cncf.io/networks: rancher-flat-network' annotation.
func IsPodEnabledFlatNetwork ¶
IsPodEnabledFlatNetwork returns true if the pod enables flatnetwork
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.