Documentation ¶
Index ¶
Constants ¶
const Namespace = "test"
Namespace for the pods
Variables ¶
var BadPod = NewBrokenPod("broken")
BadPod is a pod which does not serialize correctly
var DetachedPod = NewDetachedPod("detached")
DetachedPod is a pod which is not attached to a namespace
var ErrorPod = NewPod("error")
ErrorPod is a pod which should create an error on handling
var InvalidPod = NewPod("invalid")
InvalidPod is a pod which is considered invalid on handling
var PanicPod = NewPod("panic")
PanicPod is a pod which should create a panic on handling
var PodKind = metav1.GroupVersionKind{Group: corev1.SchemeGroupVersion.Group, Version: corev1.SchemeGroupVersion.Version, Kind: "Pod"}
PodKind is the metav1.GroupVersionKind for corev1.Pod
var PodTypeMeta = metav1.TypeMeta{ Kind: "Pod", APIVersion: corev1.SchemeGroupVersion.Group + "/" + corev1.SchemeGroupVersion.Version, }
PodTypeMeta is the metav1.TypeMeta for corev1.Pod
var ValidPod = NewPod("valid")
ValidPod is a pod which is considered valid on handling
Functions ¶
This section is empty.
Types ¶
type Pod ¶
Pod extends corev1.Pod for testing
func NewBrokenPod ¶
NewBrokenPod creates a new broken Pod with the provided name
func NewDetachedPod ¶ added in v1.4.0
func (*Pod) DeepCopyObject ¶
func (*Pod) MustMarshal ¶
func (*Pod) RawExtension ¶
func (t *Pod) RawExtension() runtime.RawExtension
RawExtension marshals the pod and creates a runtime.RawExtension for which Raw is set to the marshaled JSON