util

package
v0.0.0-...-1a511a4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ParallelizeWorks = 4
)

Functions

func CreateNamespace

func CreateNamespace(cli kubernetes.Interface, name string) error

func EnsureNamespace

func EnsureNamespace(indexer v1.NamespaceLister, cli kubernetes.Interface, name string) error

func EnsureNamespaces

func EnsureNamespaces(indexer v1.NamespaceLister, cli kubernetes.Interface, names ...string) error

func EnsureResourceFunc

func EnsureResourceFunc(
	existsF func() (bool, error),
	createF func() error,
) error

func GetPVCList

func GetPVCList(cli kubernetes.Interface, namespace string) (*apiv1.PersistentVolumeClaimList, error)

func IsK8sResourceExist

func IsK8sResourceExist(checkF func() (interface{}, error)) (bool, error)

func IsNamespaceExist

func IsNamespaceExist(indexer v1.NamespaceLister, name string) (bool, error)

func Parallelize

func Parallelize(execF func(string) error, args ...string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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