Documentation ¶
Index ¶
- func DefineWithHostNetwork(nodeName string) *corev1.Pod
- func DefineWithNetworks(networks []string) *corev1.Pod
- func ExecCommand(cs *testclient.ClientSet, pod *corev1.Pod, command ...string) (string, string, error)
- func GetDefinition() *corev1.Pod
- func GetLog(cs *testclient.ClientSet, p *corev1.Pod, s time.Duration) (string, error)
- func RedefineAsPrivileged(pod *corev1.Pod) *corev1.Pod
- func RedefineWithCapabilities(pod *corev1.Pod, capabilitiesList []corev1.Capability) *corev1.Pod
- func RedefineWithCommand(pod *corev1.Pod, command []string, args []string) *corev1.Pod
- func RedefineWithHostNetwork(pod *corev1.Pod) *corev1.Pod
- func RedefineWithMount(pod *corev1.Pod, volume corev1.Volume, mount corev1.VolumeMount) *corev1.Pod
- func RedefineWithNodeSelector(pod *corev1.Pod, node string) *corev1.Pod
- func RedefineWithRestartPolicy(pod *corev1.Pod, restartPolicy corev1.RestartPolicy) *corev1.Pod
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefineWithHostNetwork ¶
func DefineWithNetworks ¶
func ExecCommand ¶
func ExecCommand(cs *testclient.ClientSet, pod *corev1.Pod, command ...string) (string, string, error)
ExecCommand runs command in the pod and returns buffer output
func GetDefinition ¶ added in v1.1.0
func RedefineAsPrivileged ¶
RedefineAsPrivileged updates the pod to be privileged
func RedefineWithCapabilities ¶ added in v1.3.0
func RedefineWithCommand ¶
RedefineWithCommand updates the pod definition with a different command
func RedefineWithHostNetwork ¶
RedefineWithHostNetwork updates the pod definition Spec.HostNetwork to true
func RedefineWithMount ¶ added in v1.1.0
RedefineWithMount updates the pod definition with a volume and volume mount
func RedefineWithNodeSelector ¶
RedefineWithNodeSelector updates the pod definition with a node selector
func RedefineWithRestartPolicy ¶
RedefineWithRestartPolicy updates the pod definition with a restart policy
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.