Documentation ¶
Index ¶
- Constants
- Variables
- func AddFlags(flags *flag.FlagSet)
- func CreateTestDeployment(name string, namespace string, revision string, matchLabels map[string]string) *appsv1.Deployment
- func CreateTestPod(name string, namespace string, replicaSetName string, labels map[string]string) *corev1.Pod
- func CreateTestReplicaSet(name string, namespace string, revision string) *appsv1.ReplicaSet
- func GetClientset() (*kubernetes.Clientset, error)
- func GetClusterConfig() (*rest.Config, error)
- func GetK8sMinorVersion(clientset kubernetes.Interface) (int, error)
- func GetK8sVersion(clientset kubernetes.Interface) (string, error)
Constants ¶
View Source
const ( DEFAULT_K8S_CLIENT_QPS = 100 DEFAULT_K8S_CLIENT_BURST = 100 )
Variables ¶
View Source
var KubernetesConfigFlags *genericclioptions.ConfigFlags
Functions ¶
func CreateTestDeployment ¶
func CreateTestPod ¶
func CreateTestReplicaSet ¶
func CreateTestReplicaSet(name string, namespace string, revision string) *appsv1.ReplicaSet
func GetClientset ¶
func GetClientset() (*kubernetes.Clientset, error)
func GetClusterConfig ¶
func GetK8sMinorVersion ¶
func GetK8sMinorVersion(clientset kubernetes.Interface) (int, error)
func GetK8sVersion ¶
func GetK8sVersion(clientset kubernetes.Interface) (string, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.