Documentation ¶
Index ¶
- Constants
- func CreateOrUpdateResources(kubeClient *testkubeclient.KubeClient, resources []v1alpha1.ObjMetadata, ...) error
- func EmptyStatus() v1alpha1.ResourceGroupStatus
- func GenerateResourceStatus(resources []v1alpha1.ObjMetadata, s v1alpha1.Status, sourceHash string) []v1alpha1.ResourceStatus
- func New(nn types.NamespacedName, id string) *v1alpha1.ResourceGroup
- func UpdateResourceGroup(kubeClient *testkubeclient.KubeClient, nn types.NamespacedName, ...) error
- func ValidateNoControllerPodRestarts(kubeClient *testkubeclient.KubeClient) error
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 ¶
func New(nn types.NamespacedName, id string) *v1alpha1.ResourceGroup
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.
Click to show internal directories.
Click to hide internal directories.