utils

package
v0.2.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const RandStrLength = 10

Variables

This section is empty.

Functions

func CreateNfsPvc added in v0.2.1

func CreateNfsPvc(k8sClient client.Client, nfsPvc *nfspvcv1alpha1.NfsPvc) *nfspvcv1alpha1.NfsPvc

CreateNfsPvc creates a new NfsPvc instance with a unique name and returns it.

func CreateResource added in v0.2.0

func CreateResource(k8sClient client.Client, obj client.Object) bool

func DeleteNfsPvc

func DeleteNfsPvc(k8sClient client.Client, nfsPvc *nfspvcv1alpha1.NfsPvc)

DeleteNfsPvc deletes an existing NfsPvc instance.

func DoesResourceExist

func DoesResourceExist(k8sClient client.Client, obj client.Object) bool

DoesResourceExist checks if a given Kubernetes object exists in the cluster.

func GetNfsPvc

func GetNfsPvc(k8sClient client.Client, name string, namespace string) *nfspvcv1alpha1.NfsPvc

GetNfsPvc fetch existing and return an instance of NfsPvc.

func GetResourceUid

func GetResourceUid(k8sClient client.Client, obj client.Object) string

GetResourceUid returns a given Kubernetes object UID.

func UpdateResource added in v0.2.1

func UpdateResource(k8sClient client.Client, obj client.Object) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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