Documentation
¶
Index ¶
- func CompareObjectMeta(t *testing.T, got, want metav1.ObjectMeta)
- func GetTestClientWithObjects(predefinedObjects []runtime.Object) client.Client
- func ListClusterWideObjects(ctx context.Context, rclient client.Client, objectType client.ObjectList, ...) error
- func MergePatchContainers(base, patches []v1.Container) ([]v1.Container, error)
- func SanitizeVolumeName(name string) string
- func UpdatePodAnnotations(ctx context.Context, rclient client.Client, selector map[string]string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareObjectMeta ¶
func CompareObjectMeta(t *testing.T, got, want metav1.ObjectMeta)
func ListClusterWideObjects ¶
func ListClusterWideObjects(ctx context.Context, rclient client.Client, objectType client.ObjectList, cb func(r runtime.Object)) error
ListClusterWideObjects helper func, default client cannot get objects at cluster scope, this func retrieves objects and applies given callback to it.
func MergePatchContainers ¶
MergePatchContainers adds patches to base using a strategic merge patch and iterating by container name, failing on the first error
func SanitizeVolumeName ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.