Documentation ¶
Index ¶
- Variables
- func AssertContainsAllObjects[T runtime.Object](t *testing.T, expected []runtime.Object, in []T) bool
- func AssertContainsObjects[T runtime.Object](t *testing.T, expected runtime.Object, in []T) bool
- func AssertCreate(t *testing.T, ac k8sTesting.Action, resource string, namespace string, ...) bool
- func AssertDelete(t *testing.T, ac k8sTesting.Action, resource string, namespace string, ...) bool
- func AssertEqualObjects(t *testing.T, expected runtime.Object, actual runtime.Object) bool
- func AssertGenericAction(t *testing.T, ac k8sTesting.Action, verb string, resource string, ...) bool
- func AssertGet(t *testing.T, ac k8sTesting.Action, resource string, namespace string, ...) bool
- func AssertList(t *testing.T, ac k8sTesting.Action, resource string, namespace string, ...) bool
- func AssertPatch(t *testing.T, ac k8sTesting.Action, resource string, namespace string, ...) bool
- func AssertServerSideApply(t *testing.T, ac k8sTesting.Action, resource string, namespace string, ...) bool
- func AssertWatch(t *testing.T, ac k8sTesting.Action, resource string, namespace string, ...) bool
- func ConvertToUnstructured(obj runtime.Object) *unstructured.Unstructured
- func CreateFakeClient(ctx context.Context, objs ...runtime.Object) (context.Context, *dynamicFake.FakeDynamicClient)
Constants ¶
This section is empty.
Variables ¶
View Source
var FakeCreationTimestamp metaV1.Time = metaV1.Time{}
View Source
var FakeCreationTimestampUtcRFC3339String = "2022-10-19T14:10:00Z"
FakeCreationTimestamp should use time.Local as time.Location here due to the metaV1.Date json deserialization impl see : k8s.io\apimachinery@v0.28.2\pkg\apis\meta\v1\time.go (UnmarshalJSON) 't.Time = pt.Local()' var FakeCreationTimestamp = metaV1.Date(2022, time.October, 19, 16, 10, 00, 00, time.Local)
Functions ¶
func AssertContainsAllObjects ¶ added in v2.9.0
func AssertContainsObjects ¶ added in v2.9.0
func AssertCreate ¶
func AssertDelete ¶
func AssertEqualObjects ¶
func AssertGenericAction ¶ added in v2.9.0
func AssertGenericAction(t *testing.T, ac k8sTesting.Action, verb string, resource string, namespace string, predicate func(t *testing.T, ac k8sTesting.GenericAction)) bool
func AssertList ¶
func AssertPatch ¶
func AssertServerSideApply ¶ added in v2.21.0
func AssertWatch ¶ added in v2.9.0
func ConvertToUnstructured ¶
func ConvertToUnstructured(obj runtime.Object) *unstructured.Unstructured
func CreateFakeClient ¶ added in v2.8.0
func CreateFakeClient(ctx context.Context, objs ...runtime.Object) (context.Context, *dynamicFake.FakeDynamicClient)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.