Documentation ¶
Index ¶
- Constants
- 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 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 ExpectMachineDeployed(ctx context.Context, c client.Client, cluster *state.Cluster, ...) (*v1alpha5.Machine, *v1.Node)
- func ExpectMachineDeployedNoNode(ctx context.Context, c client.Client, cluster *state.Cluster, ...) (*v1alpha5.Machine, error)
- func ExpectMachines(ctx context.Context, c client.Client) []*v1alpha5.Machine
- func ExpectMachinesCascadeDeletion(ctx context.Context, c client.Client, machines ...*v1alpha5.Machine)
- func ExpectMakeMachinesInitialized(ctx context.Context, c client.Client, machines ...*v1alpha5.Machine)
- func ExpectMakeNodeClaimsInitialized(ctx context.Context, c client.Client, nodeClaims ...*v1beta1.NodeClaim)
- func ExpectMakeNodesAndMachinesInitializedAndStateUpdated(ctx context.Context, c client.Client, ...)
- func ExpectMakeNodesAndNodeClaimsInitializedAndStateUpdated(ctx context.Context, c client.Client, ...)
- func ExpectMakeNodesInitialized(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 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 ExpectApplied ¶
func ExpectDeleted ¶
func ExpectDeletionTimestampSet ¶ added in v0.21.0
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 ExpectFinalizersRemoved ¶
func ExpectFinalizersRemovedFromList ¶ added in v0.25.0
func ExpectMachineDeployed ¶ added in v0.27.1
func ExpectMachineDeployedNoNode ¶ added in v0.28.0
func ExpectMachines ¶ added in v0.27.1
func ExpectMachinesCascadeDeletion ¶ added in v0.27.1
func ExpectMakeMachinesInitialized ¶ added in v0.29.0
func ExpectMakeNodeClaimsInitialized ¶ added in v0.31.0
func ExpectMakeNodesAndMachinesInitializedAndStateUpdated ¶ added in v0.31.0
func ExpectMakeNodesAndMachinesInitializedAndStateUpdated(ctx context.Context, c client.Client, nodeStateController, machineStateController controller.Controller, nodes []*v1.Node, machines []*v1alpha5.Machine)
func ExpectMakeNodesAndNodeClaimsInitializedAndStateUpdated ¶ added in v0.31.0
func ExpectMakeNodesAndNodeClaimsInitializedAndStateUpdated(ctx context.Context, c client.Client, nodeStateController, nodeClaimStateController controller.Controller, nodes []*v1.Node, nodeClaims []*v1beta1.NodeClaim)
func ExpectMakeNodesInitialized ¶ added in v0.29.0
func ExpectMakeNodesReady ¶ added in v0.27.1
func ExpectManualBinding ¶
func ExpectNodeClaimDeployed ¶ added in v0.31.0
func ExpectNodeClaimDeployedNoNode ¶ added in v0.31.0
func ExpectNodeClaims ¶ added in v0.31.0
func ExpectNodeClaimsCascadeDeletion ¶ added in v0.31.0
func ExpectNodeExists ¶
func ExpectNodes ¶ added in v0.27.1
func ExpectNotFound ¶
func ExpectNotScheduled ¶
func ExpectOwnerReferenceExists ¶ added in v0.24.0
func ExpectOwnerReferenceExists(obj, owner client.Object) metav1.OwnerReference
func ExpectPodExists ¶
func ExpectReconcileFailed ¶
func ExpectResources ¶ added in v0.22.1
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 ¶ added in v0.24.0
func ExpectStatusConditionExists(obj apis.ConditionsAccessor, t apis.ConditionType) apis.Condition
func FindMetricWithLabelValues ¶ added in v0.21.0
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 ¶ added in v0.27.1
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.