Documentation ¶
Index ¶
- Constants
- func ExpectApplied(ctx context.Context, c client.Client, objects ...client.Object)
- func ExpectAppliedWithOffset(offset int, ctx context.Context, c client.Client, objects ...client.Object)
- func ExpectCleanedUp(ctx context.Context, c client.Client)
- func ExpectDeleted(ctx context.Context, c client.Client, objects ...client.Object)
- func ExpectDeletionTimestampSet(ctx context.Context, c client.Client, objects ...client.Object)
- func ExpectDeletionTimestampSetWithOffset(offset int, ctx context.Context, c client.Client, objects ...client.Object)
- func ExpectExists[T client.Object](ctx context.Context, c client.Client, obj T) T
- func ExpectExistsWithOffset[T client.Object](offset int, ctx context.Context, c client.Client, obj T) T
- func ExpectFinalizersRemoved(ctx context.Context, c client.Client, objs ...client.Object)
- func ExpectFinalizersRemovedFromList(ctx context.Context, c client.Client, objectLists ...client.ObjectList)
- func ExpectManualBinding(ctx context.Context, c client.Client, pod *v1.Pod, node *v1.Node)
- func ExpectManualBindingWithOffset(offset int, ctx context.Context, c client.Client, pod *v1.Pod, node *v1.Node)
- func ExpectNodeExists(ctx context.Context, c client.Client, name string) *v1.Node
- func ExpectNodeExistsWithOffset(offset int, ctx context.Context, c client.Client, name string) *v1.Node
- func ExpectNotFound(ctx context.Context, c client.Client, objects ...client.Object)
- func ExpectNotFoundWithOffset(offset int, ctx context.Context, c client.Client, objects ...client.Object)
- func ExpectNotScheduled(ctx context.Context, c client.Client, pod *v1.Pod) *v1.Pod
- func ExpectOwnerReferenceExists(obj, owner client.Object) metav1.OwnerReference
- func ExpectPodExists(ctx context.Context, c client.Client, name string, namespace string) *v1.Pod
- func ExpectPodExistsWithOffset(offset int, ctx context.Context, c client.Client, name string, ...) *v1.Pod
- func ExpectProvisioned(ctx context.Context, c client.Client, cluster *state.Cluster, ...) map[*v1.Pod]*v1.Node
- func ExpectProvisionedNoBinding(ctx context.Context, c client.Client, provisioner *provisioning.Provisioner, ...) map[*v1.Pod]*v1.Node
- func ExpectProvisionedNoBindingWithOffset(offset int, ctx context.Context, c client.Client, ...) map[*v1.Pod]*v1.Node
- func ExpectReconcileFailed(ctx context.Context, reconciler reconcile.Reconciler, key client.ObjectKey)
- func ExpectReconcileSucceeded(ctx context.Context, reconciler reconcile.Reconciler, key client.ObjectKey) reconcile.Result
- func ExpectResources(expected, real v1.ResourceList)
- func ExpectScheduled(ctx context.Context, c client.Client, pod *v1.Pod) *v1.Node
- func ExpectSkew(ctx context.Context, c client.Client, namespace string, ...) Assertion
- func ExpectStatusConditionExists(obj apis.ConditionsAccessor, t apis.ConditionType) apis.Condition
- func FindMetricWithLabelValues(name string, labelValues map[string]string) (*prometheus.Metric, bool)
- func GomegaFromContext(ctx context.Context) Gomega
- func GomegaWithContext(ctx context.Context, g Gomega) context.Context
Constants ¶
View Source
const ( ReconcilerPropagationTime = 10 * time.Second RequestInterval = 1 * time.Second )
Variables ¶
This section is empty.
Functions ¶
func ExpectApplied ¶
func ExpectAppliedWithOffset ¶
func ExpectDeleted ¶
func ExpectDeletionTimestampSetWithOffset ¶
func ExpectDeletionTimestampSetWithOffset(offset int, ctx context.Context, c client.Client, objects ...client.Object)
ExpectDeletionTimestampSetWithOffset ensures that the deletion timestamp is set on the objects by adding a finalizer and then deleting the object immediately after. This holds the object until the finalizer is patched out in the DeferCleanup
func ExpectExists ¶
func ExpectExistsWithOffset ¶
func ExpectFinalizersRemoved ¶
func ExpectManualBinding ¶
func ExpectNodeExists ¶
func ExpectNotFound ¶
func ExpectNotScheduled ¶
func ExpectOwnerReferenceExists ¶
func ExpectOwnerReferenceExists(obj, owner client.Object) metav1.OwnerReference
func ExpectPodExists ¶
func ExpectProvisioned ¶
func ExpectReconcileFailed ¶
func ExpectResources ¶
func ExpectResources(expected, real v1.ResourceList)
ExpectResources expects all the resources in expected to exist in real with the same values
func ExpectScheduled ¶
func ExpectSkew ¶
func ExpectStatusConditionExists ¶
func ExpectStatusConditionExists(obj apis.ConditionsAccessor, t apis.ConditionType) apis.Condition
func FindMetricWithLabelValues ¶
func FindMetricWithLabelValues(name string, labelValues map[string]string) (*prometheus.Metric, bool)
FindMetricWithLabelValues attempts to find a metric with a name with a set of label values If no metric is found, the *prometheus.Metric will be nil
func GomegaFromContext ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.