testutils

package
v1.19.2 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const TestCrossProjectFleetProjectID = "cs-dev-hub"

TestCrossProjectFleetProjectID is the fleet host project.

Variables

This section is empty.

Functions

func AppendFinalizer added in v1.16.0

func AppendFinalizer(obj client.Object, finalizer string)

AppendFinalizer adds a finalizer to the object

func ClearMembershipInfo added in v1.17.2

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 added in v1.17.2

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

FleetHasMembership checks whether the membership exists in the fleet project.

func ReconcilerPodHasFWICredsAnnotation added in v1.17.2

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 added in v1.17.2

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 added in v1.17.2

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

RegisterCluster registers a cluster in a fleet.

func RemoveFinalizer added in v1.16.0

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

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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