Documentation
¶
Index ¶
- func CleanupAndWait(ctx context.Context, c client.Client, objs ...client.Object) error
- func CleanupWithFinalizerRemovalAndWait(ctx context.Context, c client.Client, resources ...client.Object) error
- func CleanupWithLabelAndWait(ctx context.Context, c client.Client, labelSelector labels.Selector, ...) error
- func CreateMTLSCerts(dmsIP string) (caCrtBytes, clientCrtBytes, clientKeyBytes, srvCrtBytes, srvKeyBytes []byte)
- func CreateResourceIfNotExist(ctx context.Context, c client.Client, obj client.Object) error
- func ForceObjectReconcileWithAnnotation(ctx context.Context, c client.Client, obj client.Object) error
- func GenerateDPUObj[T client.Object](name, ns string, obj T, customLabels ...map[string]string) T
- func GetFakeKamajiClusterSecretFromEnvtest(cluster provisioningv1.DPUCluster, cfg *rest.Config) (*corev1.Secret, error)
- func GetTestDPUCluster(ns, name string) provisioningv1.DPUCluster
- func GetTestLabels() map[string]string
- func PatchStatus(ctx context.Context, c client.Client, obj client.Object, mutate func())
- func ResolveBFBImageURL(bfbURL string) (string, error)
- func ResolveHBNImageURL(hbnURL string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanupAndWait ¶
CleanupAndWait deletes an object and waits for it to be removed before exiting.
func CleanupWithFinalizerRemovalAndWait ¶
func CleanupWithFinalizerRemovalAndWait(ctx context.Context, c client.Client, resources ...client.Object) error
CleanupWithFinalizerRemovalAndWait removes finalizers from resources then deletes them. After deletion, it waits for them to be removed Note: this should be used when such a "force" deletion is ok and leads to no side-effects. e.g. no controllers need to take action as a result of a resource removal.
func CleanupWithLabelAndWait ¶
func CleanupWithLabelAndWait(ctx context.Context, c client.Client, labelSelector labels.Selector, resources ...client.ObjectList) error
CleanupWithLabelAndWait collects all resources matching the label selector and delegates to CleanupAndWait for parallel deletion
func CreateMTLSCerts ¶
func CreateMTLSCerts(dmsIP string) (caCrtBytes, clientCrtBytes, clientKeyBytes, srvCrtBytes, srvKeyBytes []byte)
CreateMTLSCerts creates mTLS certificates for testing purposes. Returns CA certificate, client certificate, client key, server certificate, and server key as PEM-encoded bytes.
func CreateResourceIfNotExist ¶
CreateResourceIfNotExist creates a resource if it doesn't exist
func ForceObjectReconcileWithAnnotation ¶
func ForceObjectReconcileWithAnnotation(ctx context.Context, c client.Client, obj client.Object) error
ForceObjectReconcileWithAnnotation adds patches the passed object with an annotation to force it to be reconciled.
func GenerateDPUObj ¶
GenerateDPUObj sets the name, namespace, and labels on a given client.Object. Default is It scope cleanup labels; if customLabels provided, they replace the default.
func GetFakeKamajiClusterSecretFromEnvtest ¶
func GetFakeKamajiClusterSecretFromEnvtest(cluster provisioningv1.DPUCluster, cfg *rest.Config) (*corev1.Secret, error)
GetFakeKamajiClusterSecretFromEnvtest creates a kamaji secret using the envtest information to simulate that we have a kamaji cluster. In reality, this is the same envtest Kubernetes API.
func GetTestDPUCluster ¶
func GetTestDPUCluster(ns, name string) provisioningv1.DPUCluster
func GetTestLabels ¶
func PatchStatus ¶
PatchStatus re-fetches obj, calls mutate() to modify status fields, then patches the status subresource using a merge patch. Retries on conflict to avoid "object has been modified" errors from concurrent controller reconciliations.
func ResolveBFBImageURL ¶
ResolveBFBImageURL resolves a BFB image URL to a concrete .bfb URL. Wildcard paths under /auto/sw_mc_soc_release/doca_dpu/ are expanded with Glob. A URL that already ends in .bfb is returned unchanged. last_stable-style pointers (path segment starts with last_stable, or an explicit .txt) fetch a sibling/self .txt whose body is the real target. Any other URL is returned unchanged.
func ResolveHBNImageURL ¶
ResolveHBNImageURL processes the HBN image URL and returns it if valid.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package dpuagent holds e2e validations for the DPU Agent operations that run inside the DPU (internal/provisioning/dpuagent/operations/...).
|
Package dpuagent holds e2e validations for the DPU Agent operations that run inside the DPU (internal/provisioning/dpuagent/operations/...). |
|
Package dpuflavor provides helpers for adapting DPUFlavor fixtures in tests.
|
Package dpuflavor provides helpers for adapting DPUFlavor fixtures in tests. |
|
Package remotehost runs SSH and docker/podman commands on remote test machines.
|
Package remotehost runs SSH and docker/podman commands on remote test machines. |
|
Package rshimconsole provides E2E helpers for deploying the rshim console collector and exporting its logs.
|
Package rshimconsole provides E2E helpers for deploying the rshim console collector and exporting its logs. |
|
Package snap holds assertions for SNAP storage objects and consumer I/O.
|
Package snap holds assertions for SNAP storage objects and consumer I/O. |
|
Package testedservices dumps Ready cluster CRs for the tested-services BOM.
|
Package testedservices dumps Ready cluster CRs for the tested-services BOM. |
|
topology
Package topology describes per-hardware Weave rail layout used by e2e tests.
|
Package topology describes per-hardware Weave rail layout used by e2e tests. |
|
topology/bf3
Package bf3 holds Weave e2e topology for BlueField-3 lab hardware.
|
Package bf3 holds Weave e2e topology for BlueField-3 lab hardware. |
|
topology/bf4
Package bf4 holds Weave e2e topology and lab wiring for BlueField-4.
|
Package bf4 holds Weave e2e topology and lab wiring for BlueField-4. |