Documentation
¶
Index ¶
- Constants
- func EventuallyExpectTerminating(ctx context.Context, c client.Client, objs ...client.Object)
- func ExpectApplied(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 ExpectEvicted(ctx context.Context, c client.Client, pods ...*v1.Pod)
- func ExpectExists[T client.Object](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 ExpectMakeNodeClaimsInitialized(ctx context.Context, c client.Client, nodeClaims ...*v1beta1.NodeClaim)
- func ExpectMakeNodesAndNodeClaimsInitializedAndStateUpdated(ctx context.Context, c client.Client, ...)
- func ExpectMakeNodesInitialized(ctx context.Context, c client.Client, nodes ...*v1.Node)
- func ExpectMakeNodesNotReady(ctx context.Context, c client.Client, nodes ...*v1.Node)
- func ExpectMakeNodesReady(ctx context.Context, c client.Client, nodes ...*v1.Node)
- func ExpectManualBinding(ctx context.Context, c client.Client, pod *v1.Pod, node *v1.Node)
- func ExpectNodeClaimDeployed(ctx context.Context, c client.Client, cluster *state.Cluster, ...) (*v1beta1.NodeClaim, *v1.Node)
- func ExpectNodeClaimDeployedNoNode(ctx context.Context, c client.Client, cluster *state.Cluster, ...) (*v1beta1.NodeClaim, error)
- func ExpectNodeClaims(ctx context.Context, c client.Client) []*v1beta1.NodeClaim
- func ExpectNodeClaimsCascadeDeletion(ctx context.Context, c client.Client, nodeClaims ...*v1beta1.NodeClaim)
- func ExpectNodeExists(ctx context.Context, c client.Client, name string) *v1.Node
- func ExpectNodes(ctx context.Context, c client.Client) []*v1.Node
- func ExpectNotFound(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 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 ExpectStateNodeExists(cluster *state.Cluster, node *v1.Node) *state.StateNode
- func ExpectStateNodeExistsForNodeClaim(cluster *state.Cluster, nodeClaim *v1beta1.NodeClaim) *state.StateNode
- func ExpectStatusConditionExists(obj apis.ConditionsAccessor, t apis.ConditionType) apis.Condition
- func FindMetricWithLabelValues(name string, labelValues map[string]string) (*prometheus.Metric, bool)
- type Binding
- type Bindings
Constants ¶
View Source
const ( ReconcilerPropagationTime = 10 * time.Second RequestInterval = 1 * time.Second )
Variables ¶
This section is empty.
Functions ¶
func EventuallyExpectTerminating ¶ added in v0.34.0
EventuallyExpectTerminating ensures that the deletion timestamp is eventually set
func ExpectApplied ¶
func ExpectDeleted ¶
func ExpectDeletionTimestampSet ¶
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 ExpectEvicted ¶ added in v0.34.0
ExpectEvicted triggers an eviction call for all the passed pods
func ExpectExists ¶
func ExpectFinalizersRemoved ¶
func ExpectMakeNodesAndNodeClaimsInitializedAndStateUpdated ¶
func ExpectMakeNodesAndNodeClaimsInitializedAndStateUpdated(ctx context.Context, c client.Client, nodeStateController, nodeClaimStateController controller.Controller, nodes []*v1.Node, nodeClaims []*v1beta1.NodeClaim)
func ExpectMakeNodesNotReady ¶ added in v0.34.0
func ExpectMakeNodesReady ¶
func ExpectManualBinding ¶
func ExpectNodeClaimDeployed ¶
func ExpectNodeClaims ¶
func ExpectNodeExists ¶
func ExpectNotFound ¶
func ExpectNotScheduled ¶
func ExpectOwnerReferenceExists ¶
func ExpectOwnerReferenceExists(obj, owner client.Object) metav1.OwnerReference
func ExpectPodExists ¶
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 ExpectStateNodeExists ¶
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
Types ¶
type Bindings ¶
func ExpectProvisioned ¶
func ExpectProvisioned(ctx context.Context, c client.Client, cluster *state.Cluster, cloudProvider cloudprovider.CloudProvider, provisioner *provisioning.Provisioner, pods ...*v1.Pod) Bindings
func ExpectProvisionedNoBinding ¶
func ExpectProvisionedNoBinding(ctx context.Context, c client.Client, cluster *state.Cluster, cloudProvider cloudprovider.CloudProvider, provisioner *provisioning.Provisioner, pods ...*v1.Pod) Bindings
Click to show internal directories.
Click to hide internal directories.