testresourcegroup

package
v1.17.3 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// NotOwnedMessage is the status message for a resource which does not have
	// an inventory id.
	NotOwnedMessage = "" /* 150-byte string literal not displayed */
)

Variables

This section is empty.

Functions

func CreateOrUpdateResources

func CreateOrUpdateResources(kubeClient *testkubeclient.KubeClient, resources []v1alpha1.ObjMetadata, id string) error

CreateOrUpdateResources applies the list of resources to the cluster with the provided ResourceGroup inventory ID.

func EmptyStatus

func EmptyStatus() v1alpha1.ResourceGroupStatus

EmptyStatus returns the initial/default ResourceStatus of a ResourceGroup object. This is the status set by the controller upon a successful reconcile.

func GenerateResourceStatus

func GenerateResourceStatus(resources []v1alpha1.ObjMetadata, s v1alpha1.Status, sourceHash string) []v1alpha1.ResourceStatus

GenerateResourceStatus is a helper function to generate an array of ResourceStatus from ObjMetadata

func New

New creates a new ResourceGroup object

func UpdateResourceGroup

func UpdateResourceGroup(kubeClient *testkubeclient.KubeClient, nn types.NamespacedName, mutateFn func(group *v1alpha1.ResourceGroup)) error

UpdateResourceGroup modifies a ResourceGroup object on the cluster using the provided mutateFn.

func ValidateNoControllerPodRestarts

func ValidateNoControllerPodRestarts(kubeClient *testkubeclient.KubeClient) error

ValidateNoControllerPodRestarts checks that no pods have restarted in the ResourceGroup controller namespace.

Types

This section is empty.

Jump to

Keyboard shortcuts

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