Documentation ¶
Index ¶
- Variables
- func Exists(path string) bool
- func KubeConfigPath(kubeconfigPath string) string
- func NewAPIRegistrationClient(c *rest.Config) (*aggregator.Clientset, error)
- func NewCRDsClient(c *rest.Config) (*clientset.Clientset, error)
- func NewClientSet(c *rest.Config) (*kubernetes.Clientset, error)
- func RestConfig(context, kubeconfigPath string) (*rest.Config, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrEmptyConfig is the error message to be displayed if the configuration info is missing or incomplete ErrEmptyConfig = clientcmd.NewEmptyConfigError( `Missing or incomplete configuration info. Please point to an existing, complete config file: 1. Via the command-line flag --kubeconfig 2. Via the KUBECONFIG environment variable 3. In your home directory as ~/.kube/config `) )
Functions ¶
func KubeConfigPath ¶
KubeConfigPath is to return kubeconfig file path in the following order: 1. Via the command-line flag --kubeconfig 2. Via the KUBECONFIG environment variable 3. In your home directory as ~/.kube/config
func NewAPIRegistrationClient ¶
func NewAPIRegistrationClient(c *rest.Config) (*aggregator.Clientset, error)
NewAPIRegistrationClient is to create an apiregistration ClientSet
func NewCRDsClient ¶
NewCRDsClient is to create a clientset ClientSet
func NewClientSet ¶
func NewClientSet(c *rest.Config) (*kubernetes.Clientset, error)
NewClientSet is to create a kubernetes ClientSet
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.