Documentation ¶
Index ¶
- func ChangeKubeContextToDefaultUser(framework *Framework, namespace, expected string) error
- func ChangeKubeContextToKubeAdmin() error
- func CheckBlockEvent(framework *Framework, reason, namespace, expected string) error
- func CheckCRD(framework *Framework, expected string) error
- func CheckClusterRole(framework *Framework, expected string) error
- func CheckClusterRoleBinding(framework *Framework, expected string) error
- func CheckConfigMap(framework *Framework, namespace, expected string) error
- func CheckDeployment(framework *Framework, namespace, expected string) error
- func CheckIShieldResources(framework *Framework, kind, namespace, expected string) error
- func CheckPodStatus(framework *Framework, namespace, expected string) error
- func CheckRole(framework *Framework, namespace, expected string) error
- func CheckRoleBinding(framework *Framework, namespace, expected string) error
- func CheckSecret(framework *Framework, namespace, expected string) error
- func CheckService(framework *Framework, namespace, expected string) error
- func CheckServiceAccount(framework *Framework, namespace, expected string) error
- func DescribePod(framework *Framework, namespace, expected string)
- func GetEvent(framework *Framework, namespace, expected string) error
- func GetPodCondition(status *corev1.PodStatus, conditionType corev1.PodConditionType) (int, *corev1.PodCondition)
- func GetPodName(framework *Framework, namespace, expected string) string
- func GetPodReadyCondition(status corev1.PodStatus) *corev1.PodCondition
- func GetSecretName(framework *Framework, namespace, expected string) (string, error)
- func IsPodReady(pod *corev1.Pod) bool
- func IsPodReadyConditionTrue(status corev1.PodStatus) bool
- func IsTargetPodReadyConditionTrue(pods *corev1.PodList, expected string) (found, ready bool)
- func Kubectl(args ...string) error
- func KubectlOut(args ...string) (error, string)
- func Load(data []byte) (*clientcmdapi.Config, error)
- func LoadConfig(config, context string) (*rest.Config, error)
- func LoadConfigMap(framework *Framework, namespace, expected string) (error, *corev1.ConfigMap)
- func LoadFromFile(filename string) (*clientcmdapi.Config, error)
- func RestclientConfig(config, context string) (*clientcmdapi.Config, error)
- func ShowEventsForPod(framework *Framework, namespace, expected string)
- func ShowPodStatus(framework *Framework, namespace, expected string)
- type Framework
- type ResourceRef
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangeKubeContextToKubeAdmin ¶
func ChangeKubeContextToKubeAdmin() error
func CheckBlockEvent ¶
func CheckClusterRole ¶
func CheckClusterRoleBinding ¶
func CheckConfigMap ¶
func CheckDeployment ¶
func CheckIShieldResources ¶
func CheckPodStatus ¶
func CheckRoleBinding ¶
func CheckSecret ¶
func CheckService ¶
func CheckServiceAccount ¶
func DescribePod ¶
func GetPodCondition ¶
func GetPodCondition(status *corev1.PodStatus, conditionType corev1.PodConditionType) (int, *corev1.PodCondition)
GetPodCondition extracts the provided condition from the given status and returns that. Returns nil and -1 if the condition is not present, and the index of the located condition.
func GetPodName ¶
func GetPodReadyCondition ¶
func GetPodReadyCondition(status corev1.PodStatus) *corev1.PodCondition
GetPodReadyCondition extracts the pod ready condition from the given status and returns that. Returns nil if the condition is not present.
func GetSecretName ¶
func IsPodReady ¶
IsPodReady returns true if a pod is ready; false otherwise.
func IsPodReadyConditionTrue ¶
IsPodReadyConditionTrue returns true if a pod is ready; false otherwise.
func KubectlOut ¶
func LoadConfigMap ¶
func LoadFromFile ¶
func LoadFromFile(filename string) (*clientcmdapi.Config, error)
func RestclientConfig ¶
func RestclientConfig(config, context string) (*clientcmdapi.Config, error)
func ShowEventsForPod ¶
func ShowPodStatus ¶
Types ¶
type Framework ¶
type Framework struct { BaseName string KubeConfig string KubeContext string Kubectl string // KubeClientConfig which was used to create the connection. KubeClientConfig *rest.Config // Kubernetes API clientsets KubeClientSet kubernetes.Interface APIExtensionsClientSet apiextcs.Interface MIPClient mipclient.ApisV1Interface // Namespace in which all test resources should reside Namespace *v1.Namespace }
Click to show internal directories.
Click to hide internal directories.