Documentation ¶
Overview ¶
Package utils contains a collection of utilities for the controller test suites
Index ¶
- Variables
- func DeleteAll(cfg *rest.Config, timeout time.Duration, objLists ...client.ObjectList)
- func GetOwnerRefDaemonSet(sts *appsv1.DaemonSet) metav1.OwnerReference
- func GetOwnerRefDeployment(deployment *appsv1.Deployment) metav1.OwnerReference
- func GetOwnerRefStatefulSet(sts *appsv1.StatefulSet) metav1.OwnerReference
- func WithAnnotations(matcher gtypes.GomegaMatcher) gtypes.GomegaMatcher
- func WithDeletionTimestamp(matcher gtypes.GomegaMatcher) gtypes.GomegaMatcher
- func WithFinalizers(matcher gtypes.GomegaMatcher) gtypes.GomegaMatcher
- func WithItems(matcher gtypes.GomegaMatcher) gtypes.GomegaMatcher
- func WithOwnerReferences(matcher gtypes.GomegaMatcher) gtypes.GomegaMatcher
- func WithPodTemplateAnnotations(matcher gtypes.GomegaMatcher) gtypes.GomegaMatcher
- type Matcher
- func (m *Matcher) Consistently(obj client.Object, intervals ...interface{}) gomega.GomegaAsyncAssertion
- func (m *Matcher) Create(obj client.Object, extras ...interface{}) gomega.GomegaAssertion
- func (m *Matcher) Delete(obj client.Object, extras ...interface{}) gomega.GomegaAssertion
- func (m *Matcher) Get(obj client.Object, intervals ...interface{}) gomega.GomegaAsyncAssertion
- func (m *Matcher) Update(obj client.Object, fn UpdateFunc, intervals ...interface{}) gomega.GomegaAsyncAssertion
- type UpdateFunc
Constants ¶
This section is empty.
Variables ¶
var ExampleConfigMap1 = &corev1.ConfigMap{ ObjectMeta: metav1.ObjectMeta{ Name: "example1", Namespace: "default", Labels: labels, }, Data: map[string]string{ "key1": "example1:key1", "key2": "example1:key2", "key3": "example1:key3", }, BinaryData: map[string][]byte{ "binary_key1": []byte("example1:binary_key1"), "binary_key2": []byte("example1:binary_key2"), "binary_key3": []byte("example1:binary_key3"), }, }
ExampleConfigMap1 is an example ConfigMap object for use within test suites
var ExampleConfigMap2 = &corev1.ConfigMap{ ObjectMeta: metav1.ObjectMeta{ Name: "example2", Namespace: "default", Labels: labels, }, Data: map[string]string{ "key1": "example2:key1", "key2": "example2:key2", "key3": "example2:key3", }, }
ExampleConfigMap2 is an example ConfigMap object for use within test suites
var ExampleConfigMap3 = &corev1.ConfigMap{ ObjectMeta: metav1.ObjectMeta{ Name: "example3", Namespace: "default", Labels: labels, }, Data: map[string]string{ "key1": "example3:key1", "key2": "example3:key2", "key3": "example3:key3", }, }
ExampleConfigMap3 is an example ConfigMap object for use within test suites
var ExampleConfigMap4 = &corev1.ConfigMap{ ObjectMeta: metav1.ObjectMeta{ Name: "example4", Namespace: "default", Labels: labels, }, Data: map[string]string{ "key1": "example4:key1", "key2": "example4:key2", "key3": "example4:key3", }, }
ExampleConfigMap4 is an example ConfigMap object for use within test suites
var ExampleConfigMap5 = &corev1.ConfigMap{ ObjectMeta: metav1.ObjectMeta{ Name: "example5", Namespace: "default", Labels: labels, }, Data: map[string]string{ "key1": "example5:key1", "key2": "example5:key2", "key3": "example5:key3", }, }
ExampleConfigMap5 is an example ConfigMap object for use within test suites
var ExampleConfigMap6 = &corev1.ConfigMap{ ObjectMeta: metav1.ObjectMeta{ Name: "example6", Namespace: "default", Labels: labels, }, Data: map[string]string{ "key1": "example6:key1", "key2": "example6:key2", "key3": "example6:key3", }, }
ExampleConfigMap6 is an example ConfigMap object for use within test suites
var ExampleDaemonSet = &appsv1.DaemonSet{ ObjectMeta: metav1.ObjectMeta{ Name: "example", Namespace: "default", Labels: labels, }, Spec: appsv1.DaemonSetSpec{ Selector: &metav1.LabelSelector{ MatchLabels: labels, }, Template: corev1.PodTemplateSpec{ ObjectMeta: metav1.ObjectMeta{ Labels: labels, }, Spec: corev1.PodSpec{ Volumes: []corev1.Volume{ { Name: "secret1", VolumeSource: corev1.VolumeSource{ Secret: &corev1.SecretVolumeSource{ SecretName: "example1", }, }, }, { Name: "configmap1", VolumeSource: corev1.VolumeSource{ ConfigMap: &corev1.ConfigMapVolumeSource{ LocalObjectReference: corev1.LocalObjectReference{ Name: "example1", }, }, }, }, }, Containers: []corev1.Container{ { Name: "container1", Image: "container1", Env: []corev1.EnvVar{ { Name: "example1_key1", ValueFrom: &corev1.EnvVarSource{ ConfigMapKeyRef: &corev1.ConfigMapKeySelector{ LocalObjectReference: corev1.LocalObjectReference{ Name: "example1", }, Key: "key1", }, }, }, { Name: "example1_key1_new_name", ValueFrom: &corev1.EnvVarSource{ ConfigMapKeyRef: &corev1.ConfigMapKeySelector{ LocalObjectReference: corev1.LocalObjectReference{ Name: "example1", }, Key: "key1", }, }, }, { Name: "example3_key1", ValueFrom: &corev1.EnvVarSource{ ConfigMapKeyRef: &corev1.ConfigMapKeySelector{ LocalObjectReference: corev1.LocalObjectReference{ Name: "example3", }, Key: "key1", }, }, }, { Name: "example3_key4", ValueFrom: &corev1.EnvVarSource{ ConfigMapKeyRef: &corev1.ConfigMapKeySelector{ LocalObjectReference: corev1.LocalObjectReference{ Name: "example3", }, Key: "key4", Optional: &trueValue, }, }, }, { Name: "example4_key1", ValueFrom: &corev1.EnvVarSource{ ConfigMapKeyRef: &corev1.ConfigMapKeySelector{ LocalObjectReference: corev1.LocalObjectReference{ Name: "example4", }, Key: "key1", Optional: &trueValue, }, }, }, { Name: "example1_secret_key1", ValueFrom: &corev1.EnvVarSource{ SecretKeyRef: &corev1.SecretKeySelector{ LocalObjectReference: corev1.LocalObjectReference{ Name: "example1", }, Key: "key1", }, }, }, { Name: "example3_secret_key1", ValueFrom: &corev1.EnvVarSource{ SecretKeyRef: &corev1.SecretKeySelector{ LocalObjectReference: corev1.LocalObjectReference{ Name: "example3", }, Key: "key1", }, }, }, { Name: "example3_secret_key4", ValueFrom: &corev1.EnvVarSource{ SecretKeyRef: &corev1.SecretKeySelector{ LocalObjectReference: corev1.LocalObjectReference{ Name: "example3", }, Key: "key4", Optional: &trueValue, }, }, }, { Name: "example4_secret_key1", ValueFrom: &corev1.EnvVarSource{ SecretKeyRef: &corev1.SecretKeySelector{ LocalObjectReference: corev1.LocalObjectReference{ Name: "example4", }, Key: "key1", Optional: &trueValue, }, }, }, }, EnvFrom: []corev1.EnvFromSource{ { ConfigMapRef: &corev1.ConfigMapEnvSource{ LocalObjectReference: corev1.LocalObjectReference{ Name: "example1", }, }, }, { SecretRef: &corev1.SecretEnvSource{ LocalObjectReference: corev1.LocalObjectReference{ Name: "example1", }, }, }, }, }, { Name: "container2", Image: "container2", Env: []corev1.EnvVar{ { Name: "example3_key2", ValueFrom: &corev1.EnvVarSource{ ConfigMapKeyRef: &corev1.ConfigMapKeySelector{ LocalObjectReference: corev1.LocalObjectReference{ Name: "example3", }, Key: "key2", }, }, }, { Name: "example3_secret_key2", ValueFrom: &corev1.EnvVarSource{ SecretKeyRef: &corev1.SecretKeySelector{ LocalObjectReference: corev1.LocalObjectReference{ Name: "example3", }, Key: "key2", }, }, }, }, EnvFrom: []corev1.EnvFromSource{ { ConfigMapRef: &corev1.ConfigMapEnvSource{ LocalObjectReference: corev1.LocalObjectReference{ Name: "example2", }, }, }, { SecretRef: &corev1.SecretEnvSource{ LocalObjectReference: corev1.LocalObjectReference{ Name: "example2", }, }, }, }, }, }, }, }, }, }
ExampleDaemonSet is an example DaemonSet object for use within test suites
var ExampleDeployment = &appsv1.Deployment{ ObjectMeta: metav1.ObjectMeta{ Name: "example", Namespace: "default", Labels: labels, Annotations: annotations, }, Spec: appsv1.DeploymentSpec{ Selector: &metav1.LabelSelector{ MatchLabels: labels, }, Template: corev1.PodTemplateSpec{ ObjectMeta: metav1.ObjectMeta{ Labels: labels, }, Spec: corev1.PodSpec{ SchedulerName: "default-scheduler", Volumes: []corev1.Volume{ { Name: "secret1", VolumeSource: corev1.VolumeSource{ Secret: &corev1.SecretVolumeSource{ SecretName: "example1", }, }, }, { Name: "secret-optional", VolumeSource: corev1.VolumeSource{ Secret: &corev1.SecretVolumeSource{ SecretName: "volume-optional", Optional: &trueValue, }, }, }, { Name: "configmap1", VolumeSource: corev1.VolumeSource{ ConfigMap: &corev1.ConfigMapVolumeSource{ LocalObjectReference: corev1.LocalObjectReference{ Name: "example1", }, }, }, }, { Name: "configmap-optional", VolumeSource: corev1.VolumeSource{ ConfigMap: &corev1.ConfigMapVolumeSource{ LocalObjectReference: corev1.LocalObjectReference{ Name: "volume-optional", }, Optional: &trueValue, }, }, }, { Name: "projection1", VolumeSource: corev1.VolumeSource{ Projected: &corev1.ProjectedVolumeSource{ Sources: []corev1.VolumeProjection{{ Secret: &corev1.SecretProjection{ LocalObjectReference: corev1.LocalObjectReference{ Name: "example5", }, Optional: &trueValue, }, }}, }, }, }, { Name: "projection2", VolumeSource: corev1.VolumeSource{ Projected: &corev1.ProjectedVolumeSource{ Sources: []corev1.VolumeProjection{{ ConfigMap: &corev1.ConfigMapProjection{ LocalObjectReference: corev1.LocalObjectReference{ Name: "example5", }, Optional: &trueValue, }, }}, }, }, }, { Name: "projection3", VolumeSource: corev1.VolumeSource{ Projected: &corev1.ProjectedVolumeSource{ Sources: []corev1.VolumeProjection{{ Secret: &corev1.SecretProjection{ LocalObjectReference: corev1.LocalObjectReference{ Name: "example6", }, Items: []corev1.KeyToPath{ { Key: "example6_key1", Path: "example6_key1.txt", }, { Key: "example6_key3", Path: "example6_key3.txt", }, }, }, }}, }, }, }, { Name: "projection4", VolumeSource: corev1.VolumeSource{ Projected: &corev1.ProjectedVolumeSource{ Sources: []corev1.VolumeProjection{{ ConfigMap: &corev1.ConfigMapProjection{ LocalObjectReference: corev1.LocalObjectReference{ Name: "example6", }, Items: []corev1.KeyToPath{ { Key: "example6_key1", Path: "example6_key1.txt", }, { Key: "example6_key3", Path: "example6_key3.txt", }, }, }, }}, }, }, }, }, Containers: []corev1.Container{ { Name: "container1", Image: "container1", Env: []corev1.EnvVar{ { Name: "example1_key1", ValueFrom: &corev1.EnvVarSource{ ConfigMapKeyRef: &corev1.ConfigMapKeySelector{ LocalObjectReference: corev1.LocalObjectReference{ Name: "example1", }, Key: "key1", }, }, }, { Name: "example1_key1_new_name", ValueFrom: &corev1.EnvVarSource{ ConfigMapKeyRef: &corev1.ConfigMapKeySelector{ LocalObjectReference: corev1.LocalObjectReference{ Name: "example1", }, Key: "key1", }, }, }, { Name: "example3_key1", ValueFrom: &corev1.EnvVarSource{ ConfigMapKeyRef: &corev1.ConfigMapKeySelector{ LocalObjectReference: corev1.LocalObjectReference{ Name: "example3", }, Key: "key1", }, }, }, { Name: "example3_key4", ValueFrom: &corev1.EnvVarSource{ ConfigMapKeyRef: &corev1.ConfigMapKeySelector{ LocalObjectReference: corev1.LocalObjectReference{ Name: "example3", }, Key: "key4", Optional: &trueValue, }, }, }, { Name: "example4_key1", ValueFrom: &corev1.EnvVarSource{ ConfigMapKeyRef: &corev1.ConfigMapKeySelector{ LocalObjectReference: corev1.LocalObjectReference{ Name: "example4", }, Key: "key1", Optional: &trueValue, }, }, }, { Name: "example1_secret_key1", ValueFrom: &corev1.EnvVarSource{ SecretKeyRef: &corev1.SecretKeySelector{ LocalObjectReference: corev1.LocalObjectReference{ Name: "example1", }, Key: "key1", }, }, }, { Name: "example3_secret_key1", ValueFrom: &corev1.EnvVarSource{ SecretKeyRef: &corev1.SecretKeySelector{ LocalObjectReference: corev1.LocalObjectReference{ Name: "example3", }, Key: "key1", }, }, }, { Name: "example3_secret_key4", ValueFrom: &corev1.EnvVarSource{ SecretKeyRef: &corev1.SecretKeySelector{ LocalObjectReference: corev1.LocalObjectReference{ Name: "example3", }, Key: "key4", Optional: &trueValue, }, }, }, { Name: "example4_secret_key1", ValueFrom: &corev1.EnvVarSource{ SecretKeyRef: &corev1.SecretKeySelector{ LocalObjectReference: corev1.LocalObjectReference{ Name: "example4", }, Key: "key1", Optional: &trueValue, }, }, }, }, EnvFrom: []corev1.EnvFromSource{ { ConfigMapRef: &corev1.ConfigMapEnvSource{ LocalObjectReference: corev1.LocalObjectReference{ Name: "example1", }, }, }, { ConfigMapRef: &corev1.ConfigMapEnvSource{ LocalObjectReference: corev1.LocalObjectReference{ Name: "envfrom-optional", }, Optional: &trueValue, }, }, { SecretRef: &corev1.SecretEnvSource{ LocalObjectReference: corev1.LocalObjectReference{ Name: "example1", }, }, }, { SecretRef: &corev1.SecretEnvSource{ LocalObjectReference: corev1.LocalObjectReference{ Name: "envfrom-optional", }, Optional: &trueValue, }, }, }, }, { Name: "container2", Image: "container2", Env: []corev1.EnvVar{ { Name: "env_optional_key2", ValueFrom: &corev1.EnvVarSource{ ConfigMapKeyRef: &corev1.ConfigMapKeySelector{ LocalObjectReference: corev1.LocalObjectReference{ Name: "env-optional", }, Key: "key2", Optional: &trueValue, }, }, }, { Name: "example3_key2", ValueFrom: &corev1.EnvVarSource{ ConfigMapKeyRef: &corev1.ConfigMapKeySelector{ LocalObjectReference: corev1.LocalObjectReference{ Name: "example3", }, Key: "key2", }, }, }, { Name: "example3_secret_key2", ValueFrom: &corev1.EnvVarSource{ SecretKeyRef: &corev1.SecretKeySelector{ LocalObjectReference: corev1.LocalObjectReference{ Name: "example3", }, Key: "key2", }, }, }, { Name: "env_optional_secret_key2", ValueFrom: &corev1.EnvVarSource{ SecretKeyRef: &corev1.SecretKeySelector{ LocalObjectReference: corev1.LocalObjectReference{ Name: "env-optional", }, Key: "key2", Optional: &trueValue, }, }, }, }, EnvFrom: []corev1.EnvFromSource{ { ConfigMapRef: &corev1.ConfigMapEnvSource{ LocalObjectReference: corev1.LocalObjectReference{ Name: "example2", }, }, }, { SecretRef: &corev1.SecretEnvSource{ LocalObjectReference: corev1.LocalObjectReference{ Name: "example2", }, }, }, }, }, }, }, }, }, }
ExampleDeployment is an example Deployment object for use within test suites
var ExampleSecret1 = &corev1.Secret{ ObjectMeta: metav1.ObjectMeta{ Name: "example1", Namespace: "default", Labels: labels, }, StringData: map[string]string{ "key1": "example1:key1", "key2": "example1:key2", "key3": "example1:key3", }, }
ExampleSecret1 is an example Secret object for use within test suites
var ExampleSecret2 = &corev1.Secret{ ObjectMeta: metav1.ObjectMeta{ Name: "example2", Namespace: "default", Labels: labels, }, StringData: map[string]string{ "key1": "example2:key1", "key2": "example2:key2", "key3": "example2:key3", }, }
ExampleSecret2 is an example Secret object for use within test suites
var ExampleSecret3 = &corev1.Secret{ ObjectMeta: metav1.ObjectMeta{ Name: "example3", Namespace: "default", Labels: labels, }, StringData: map[string]string{ "key1": "example3:key1", "key2": "example3:key2", "key3": "example3:key3", }, }
ExampleSecret3 is an example Secret object for use within test suites
var ExampleSecret4 = &corev1.Secret{ ObjectMeta: metav1.ObjectMeta{ Name: "example4", Namespace: "default", Labels: labels, }, StringData: map[string]string{ "key1": "example4:key1", "key2": "example4:key2", "key3": "example4:key3", }, }
ExampleSecret4 is an example Secret object for use within test suites
var ExampleSecret5 = &corev1.Secret{ ObjectMeta: metav1.ObjectMeta{ Name: "example5", Namespace: "default", Labels: labels, }, StringData: map[string]string{ "key1": "example5:key1", "key2": "example5:key2", "key3": "example5:key3", }, }
ExampleSecret5 is an example Secret object for use within test suites
var ExampleSecret6 = &corev1.Secret{ ObjectMeta: metav1.ObjectMeta{ Name: "example6", Namespace: "default", Labels: labels, }, StringData: map[string]string{ "key1": "example6:key1", "key2": "example6:key2", "key3": "example6:key3", }, }
ExampleSecret6 is an example Secret object for use within test suites
var ExampleStatefulSet = &appsv1.StatefulSet{ ObjectMeta: metav1.ObjectMeta{ Name: "example", Namespace: "default", Labels: labels, }, Spec: appsv1.StatefulSetSpec{ Selector: &metav1.LabelSelector{ MatchLabels: labels, }, Template: corev1.PodTemplateSpec{ ObjectMeta: metav1.ObjectMeta{ Labels: labels, }, Spec: corev1.PodSpec{ Volumes: []corev1.Volume{ { Name: "secret1", VolumeSource: corev1.VolumeSource{ Secret: &corev1.SecretVolumeSource{ SecretName: "example1", }, }, }, { Name: "configmap1", VolumeSource: corev1.VolumeSource{ ConfigMap: &corev1.ConfigMapVolumeSource{ LocalObjectReference: corev1.LocalObjectReference{ Name: "example1", }, }, }, }, }, Containers: []corev1.Container{ { Name: "container1", Image: "container1", Env: []corev1.EnvVar{ { Name: "example1_key1", ValueFrom: &corev1.EnvVarSource{ ConfigMapKeyRef: &corev1.ConfigMapKeySelector{ LocalObjectReference: corev1.LocalObjectReference{ Name: "example1", }, Key: "key1", }, }, }, { Name: "example1_key1_new_name", ValueFrom: &corev1.EnvVarSource{ ConfigMapKeyRef: &corev1.ConfigMapKeySelector{ LocalObjectReference: corev1.LocalObjectReference{ Name: "example1", }, Key: "key1", }, }, }, { Name: "example3_key1", ValueFrom: &corev1.EnvVarSource{ ConfigMapKeyRef: &corev1.ConfigMapKeySelector{ LocalObjectReference: corev1.LocalObjectReference{ Name: "example3", }, Key: "key1", }, }, }, { Name: "example3_key4", ValueFrom: &corev1.EnvVarSource{ ConfigMapKeyRef: &corev1.ConfigMapKeySelector{ LocalObjectReference: corev1.LocalObjectReference{ Name: "example3", }, Key: "key4", Optional: &trueValue, }, }, }, { Name: "example4_key1", ValueFrom: &corev1.EnvVarSource{ ConfigMapKeyRef: &corev1.ConfigMapKeySelector{ LocalObjectReference: corev1.LocalObjectReference{ Name: "example4", }, Key: "key1", Optional: &trueValue, }, }, }, { Name: "example1_secret_key1", ValueFrom: &corev1.EnvVarSource{ SecretKeyRef: &corev1.SecretKeySelector{ LocalObjectReference: corev1.LocalObjectReference{ Name: "example1", }, Key: "key1", }, }, }, { Name: "example3_secret_key1", ValueFrom: &corev1.EnvVarSource{ SecretKeyRef: &corev1.SecretKeySelector{ LocalObjectReference: corev1.LocalObjectReference{ Name: "example3", }, Key: "key1", }, }, }, { Name: "example3_secret_key4", ValueFrom: &corev1.EnvVarSource{ SecretKeyRef: &corev1.SecretKeySelector{ LocalObjectReference: corev1.LocalObjectReference{ Name: "example3", }, Key: "key4", Optional: &trueValue, }, }, }, { Name: "example4_secret_key1", ValueFrom: &corev1.EnvVarSource{ SecretKeyRef: &corev1.SecretKeySelector{ LocalObjectReference: corev1.LocalObjectReference{ Name: "example4", }, Key: "key1", Optional: &trueValue, }, }, }, }, EnvFrom: []corev1.EnvFromSource{ { ConfigMapRef: &corev1.ConfigMapEnvSource{ LocalObjectReference: corev1.LocalObjectReference{ Name: "example1", }, }, }, { SecretRef: &corev1.SecretEnvSource{ LocalObjectReference: corev1.LocalObjectReference{ Name: "example1", }, }, }, }, }, { Name: "container2", Image: "container2", Env: []corev1.EnvVar{ { Name: "example3_key2", ValueFrom: &corev1.EnvVarSource{ ConfigMapKeyRef: &corev1.ConfigMapKeySelector{ LocalObjectReference: corev1.LocalObjectReference{ Name: "example3", }, Key: "key2", }, }, }, { Name: "example3_secret_key2", ValueFrom: &corev1.EnvVarSource{ SecretKeyRef: &corev1.SecretKeySelector{ LocalObjectReference: corev1.LocalObjectReference{ Name: "example3", }, Key: "key2", }, }, }, }, EnvFrom: []corev1.EnvFromSource{ { ConfigMapRef: &corev1.ConfigMapEnvSource{ LocalObjectReference: corev1.LocalObjectReference{ Name: "example2", }, }, }, { SecretRef: &corev1.SecretEnvSource{ LocalObjectReference: corev1.LocalObjectReference{ Name: "example2", }, }, }, }, }, }, }, }, }, }
ExampleStatefulSet is an example StatefulSet object for use within test suites
Functions ¶
func GetOwnerRefDaemonSet ¶ added in v0.3.0
func GetOwnerRefDaemonSet(sts *appsv1.DaemonSet) metav1.OwnerReference
GetOwnerRefDaemonSet constructs an owner reference for the DaemonSet given
func GetOwnerRefDeployment ¶ added in v0.3.0
func GetOwnerRefDeployment(deployment *appsv1.Deployment) metav1.OwnerReference
GetOwnerRefDeployment constructs an owner reference for the Deployment given
func GetOwnerRefStatefulSet ¶ added in v0.3.0
func GetOwnerRefStatefulSet(sts *appsv1.StatefulSet) metav1.OwnerReference
GetOwnerRefStatefulSet constructs an owner reference for the StatefulSet given
func WithAnnotations ¶
func WithAnnotations(matcher gtypes.GomegaMatcher) gtypes.GomegaMatcher
WithAnnotations returns the object's Annotations
func WithDeletionTimestamp ¶ added in v0.2.0
func WithDeletionTimestamp(matcher gtypes.GomegaMatcher) gtypes.GomegaMatcher
WithDeletionTimestamp returns the objects Deletion Timestamp
func WithFinalizers ¶
func WithFinalizers(matcher gtypes.GomegaMatcher) gtypes.GomegaMatcher
WithFinalizers returns the object's Finalizers
func WithItems ¶
func WithItems(matcher gtypes.GomegaMatcher) gtypes.GomegaMatcher
WithItems returns the lists Finalizers
func WithOwnerReferences ¶
func WithOwnerReferences(matcher gtypes.GomegaMatcher) gtypes.GomegaMatcher
WithOwnerReferences returns the object's OwnerReferences
func WithPodTemplateAnnotations ¶
func WithPodTemplateAnnotations(matcher gtypes.GomegaMatcher) gtypes.GomegaMatcher
WithPodTemplateAnnotations returns the PodTemplate's annotations
Types ¶
type Matcher ¶
Matcher has Gomega Matchers that use the controller-runtime client
func (*Matcher) Consistently ¶
func (m *Matcher) Consistently(obj client.Object, intervals ...interface{}) gomega.GomegaAsyncAssertion
Consistently continually gets the object from the API for comparison
func (*Matcher) Create ¶
func (m *Matcher) Create(obj client.Object, extras ...interface{}) gomega.GomegaAssertion
Create creates the object on the API server
func (*Matcher) Delete ¶
func (m *Matcher) Delete(obj client.Object, extras ...interface{}) gomega.GomegaAssertion
Delete deletes the object from the API server
func (*Matcher) Get ¶
func (m *Matcher) Get(obj client.Object, intervals ...interface{}) gomega.GomegaAsyncAssertion
Get gets the object from the API server
func (*Matcher) Update ¶
func (m *Matcher) Update(obj client.Object, fn UpdateFunc, intervals ...interface{}) gomega.GomegaAsyncAssertion
Update updates the object on the API server by fetching the object and applying a mutating UpdateFunc before sending the update