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 ...*corev1.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 ...*v1.NodeClaim)
- func ExpectMakeNodesAndNodeClaimsInitializedAndStateUpdated(ctx context.Context, c client.Client, ...)
- func ExpectMakeNodesInitialized(ctx context.Context, c client.Client, nodes ...*corev1.Node)
- func ExpectMakeNodesNotReady(ctx context.Context, c client.Client, nodes ...*corev1.Node)
- func ExpectMakeNodesReady(ctx context.Context, c client.Client, nodes ...*corev1.Node)
- func ExpectManualBinding(ctx context.Context, c client.Client, pod *corev1.Pod, node *corev1.Node)
- func ExpectMetricCounterValue(collector prometheus.Collector, expectedValue float64, ...)
- func ExpectMetricGaugeValue(collector prometheus.Collector, expectedValue float64, ...)
- func ExpectMetricHistogramSampleCountValue(metricName string, expectedValue uint64, labels map[string]string)
- func ExpectMetricName(collector prometheus.Collector) string
- func ExpectNodeClaimDeployed(ctx context.Context, c client.Client, ...) (*v1.NodeClaim, *corev1.Node, error)
- func ExpectNodeClaimDeployedAndStateUpdated(ctx context.Context, c client.Client, cluster *state.Cluster, ...) (*v1.NodeClaim, *corev1.Node)
- func ExpectNodeClaimDeployedNoNode(ctx context.Context, c client.Client, ...) (*v1.NodeClaim, error)
- func ExpectNodeClaims(ctx context.Context, c client.Client) []*v1.NodeClaim
- func ExpectNodeClaimsCascadeDeletion(ctx context.Context, c client.Client, nodeClaims ...*v1.NodeClaim)
- func ExpectNodeExists(ctx context.Context, c client.Client, name string) *corev1.Node
- func ExpectNodes(ctx context.Context, c client.Client) []*corev1.Node
- func ExpectNotFound(ctx context.Context, c client.Client, objects ...client.Object)
- func ExpectNotScheduled(ctx context.Context, c client.Client, pod *corev1.Pod) *corev1.Pod
- func ExpectObjectReconcileFailed[T client.Object](ctx context.Context, c client.Client, reconciler reconcile.ObjectReconciler[T], ...) error
- func ExpectObjectReconciled[T client.Object](ctx context.Context, c client.Client, reconciler reconcile.ObjectReconciler[T], ...) reconcile.Result
- func ExpectOwnerReferenceExists(obj, owner client.Object) metav1.OwnerReference
- func ExpectPodExists(ctx context.Context, c client.Client, name string, namespace string) *corev1.Pod
- func ExpectReconcileSucceeded(ctx context.Context, reconciler reconcile.Reconciler, key client.ObjectKey) reconcile.Result
- func ExpectResources(expected, real corev1.ResourceList)
- func ExpectScheduled(ctx context.Context, c client.Client, pod *corev1.Pod) *corev1.Node
- func ExpectSingletonReconcileFailed(ctx context.Context, reconciler singleton.Reconciler) error
- func ExpectSingletonReconciled(ctx context.Context, reconciler singleton.Reconciler) reconcile.Result
- func ExpectSkew(ctx context.Context, c client.Client, namespace string, ...) Assertion
- func ExpectStateNodeExists(cluster *state.Cluster, node *corev1.Node) *state.StateNode
- func ExpectStateNodeExistsForNodeClaim(cluster *state.Cluster, nodeClaim *v1.NodeClaim) *state.StateNode
- func ExpectStatusConditionExists(obj status.Object, t string) status.Condition
- func FindMetricWithLabelValues(name string, labelValues map[string]string) (*prometheusmodel.Metric, bool)
- type Binding
- type Bindings
Constants ¶
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 ExpectMakeNodesNotReady ¶ added in v0.34.0
func ExpectMakeNodesReady ¶
func ExpectManualBinding ¶
func ExpectMetricCounterValue ¶ added in v0.35.0
func ExpectMetricCounterValue(collector prometheus.Collector, expectedValue float64, labels map[string]string)
func ExpectMetricGaugeValue ¶ added in v0.35.0
func ExpectMetricGaugeValue(collector prometheus.Collector, expectedValue float64, labels map[string]string)
func ExpectMetricHistogramSampleCountValue ¶ added in v1.0.0
func ExpectMetricName ¶ added in v0.37.0
func ExpectMetricName(collector prometheus.Collector) string
ExpectMetricName attempts to resolve a metric name from a collector. This function will work so long as the fully qualified name is a single metric name. This holds true for the built in types, but may not for custom collectors.
func ExpectNodeClaimDeployed ¶
func ExpectNodeClaimDeployedAndStateUpdated ¶ added in v0.36.0
func ExpectNodeExists ¶
func ExpectNotFound ¶
func ExpectNotScheduled ¶
func ExpectObjectReconcileFailed ¶ added in v0.37.0
func ExpectObjectReconciled ¶ added in v0.37.0
func ExpectOwnerReferenceExists ¶
func ExpectOwnerReferenceExists(obj, owner client.Object) metav1.OwnerReference
func ExpectPodExists ¶
func ExpectResources ¶
func ExpectResources(expected, real corev1.ResourceList)
ExpectResources expects all the resources in expected to exist in real with the same values
func ExpectScheduled ¶
func ExpectSingletonReconcileFailed ¶ added in v1.0.0
func ExpectSingletonReconcileFailed(ctx context.Context, reconciler singleton.Reconciler) error
func ExpectSingletonReconciled ¶ added in v1.0.0
func ExpectSkew ¶
func ExpectStateNodeExists ¶
func FindMetricWithLabelValues ¶
func FindMetricWithLabelValues(name string, labelValues map[string]string) (*prometheusmodel.Metric, bool)
FindMetricWithLabelValues attempts to find a metric with a name with a set of label values If no metric is found, the *prometheusmodel.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 ...*corev1.Pod) Bindings
func ExpectProvisionedNoBinding ¶
func ExpectProvisionedNoBinding(ctx context.Context, c client.Client, cluster *state.Cluster, cloudProvider cloudprovider.CloudProvider, provisioner *provisioning.Provisioner, pods ...*corev1.Pod) Bindings