testutils

package
v1.23.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 27, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendFinalizer

func AppendFinalizer(obj client.Object, finalizer string)

AppendFinalizer adds a finalizer to the object

func ClearMembershipInfo

func ClearMembershipInfo(nt *nomostest.NT, fleetMembership, fleetProject, gkeURI string)

ClearMembershipInfo deletes the membership by unregistering the cluster. It also deletes the reconciler-manager to ensure the membership watch is not set up.

func FleetHasMembership

func FleetHasMembership(nt *nomostest.NT, fleetMembership, fleetProject string) (bool, error)

FleetHasMembership checks whether the membership exists in the fleet project.

func ReconcilerPodHasFWICredsAnnotation

func ReconcilerPodHasFWICredsAnnotation(nt *nomostest.NT, reconcilerName, gsaEmail string, auth configsync.AuthType) error

ReconcilerPodHasFWICredsAnnotation checks whether the reconciler Pod has the FWI credentials annotation.

func ReconcilerPodMissingFWICredsAnnotation

func ReconcilerPodMissingFWICredsAnnotation(nt *nomostest.NT, reconcilerName string) error

ReconcilerPodMissingFWICredsAnnotation checks whether the reconciler Pod does not contain annotation with the injected FWI credentials.

func RegisterCluster

func RegisterCluster(nt *nomostest.NT, fleetMembership, fleetProject, gkeURI string) error

RegisterCluster registers a cluster in a fleet.

func RemoveFinalizer

func RemoveFinalizer(obj client.Object, removeFinalizer string) bool

RemoveFinalizer removes a finalizer from the object. Returns whether the finalizer was removed.

func UpdateDeploymentContainerVerbosityArg

func UpdateDeploymentContainerVerbosityArg(nt *nomostest.NT, name, namespace, containerName string, logLevel int) error

UpdateDeploymentContainerVerbosityArg updates the verbosity argument for a specific Deployment container and waits for the Deployment to reconcile.

Warning: If the Deployment is managed by Config Sync, this change will likely be reverted and could hang until watch timeout and then error. Update the Deployment in the source of truth instead.

func UpdateRootSyncReconcilerLogLevel

func UpdateRootSyncReconcilerLogLevel(nt *nomostest.NT, syncName, containerName string, logLevel int) error

UpdateRootSyncReconcilerLogLevel updates the LogLevel for a specific RootSync container and waits for the RootSync to reconcile.

Warning: If the RootSync is managed by another RootSync, this change will likely be reverted and could hang until watch timeout and then error. Update the RootSync in the source of truth instead.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL