Documentation ¶
Index ¶
- Constants
- Variables
- func BuildFullPodName(namespace, name string) string
- func BuildLoadBalancerName(namespace, name string) string
- func BuildNetworkName(namespace, name string) string
- func BuildPortName(namespace, podName string) string
- func FlushLogs()
- func InitFlags()
- func InitLogs()
- func IsSystemNamespace(ns string) bool
- func LoadBalancerStatusDeepCopy(lb *v1.LoadBalancerStatus) *v1.LoadBalancerStatus
- func LoadBalancerStatusEqual(l, r *v1.LoadBalancerStatus) bool
- func NetnsSymlink(source, dest string) error
- func NewClusterConfig(kubeConfig string) (*rest.Config, error)
- func NewLogger(prefix string) *log.Logger
- func RunCommand(cmd string, args ...string) ([]string, error)
- func WaitForCRDReady(clientset apiextensionsclient.Interface, crdName string) error
- func WarnWordSepNormalizeFunc(f *pflag.FlagSet, name string) pflag.NormalizedName
- func WordSepNormalizeFunc(f *pflag.FlagSet, name string) pflag.NormalizedName
- type GlogWriter
Constants ¶
View Source
const ( SystemTenant = apiv1.NamespaceDefault SystemPassword = "password" SystemNetwork = apiv1.NamespaceDefault )
Variables ¶
Functions ¶
func LoadBalancerStatusDeepCopy ¶
func LoadBalancerStatusDeepCopy(lb *v1.LoadBalancerStatus) *v1.LoadBalancerStatus
func LoadBalancerStatusEqual ¶
func LoadBalancerStatusEqual(l, r *v1.LoadBalancerStatus) bool
func NetnsSymlink ¶
NetnsSymlink make a symlink for a netns path.
func NewClusterConfig ¶
NewClusterConfig builds a kubernetes cluster config.
func NewLogger ¶
NewLogger creates a new log.Logger which sends logs to glog.Info.
func WaitForCRDReady ¶
func WaitForCRDReady(clientset apiextensionsclient.Interface, crdName string) error
Types ¶
Click to show internal directories.
Click to hide internal directories.