Documentation ¶
Index ¶
- Variables
- func CreateNamespace(cli kubernetes.Interface, name string) error
- func EnsureNamespace(indexer v1.NamespaceLister, cli kubernetes.Interface, name string) error
- func EnsureNamespaces(indexer v1.NamespaceLister, cli kubernetes.Interface, names ...string) error
- func EnsureResourceFunc(existsF func() (bool, error), createF func() error) error
- func GetPVCList(cli kubernetes.Interface, namespace string) (*apiv1.PersistentVolumeClaimList, error)
- func IsK8sResourceExist(checkF func() (interface{}, error)) (bool, error)
- func IsNamespaceExist(indexer v1.NamespaceLister, name string) (bool, error)
- func Parallelize(execF func(string) error, args ...string) error
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 GetPVCList ¶
func GetPVCList(cli kubernetes.Interface, namespace string) (*apiv1.PersistentVolumeClaimList, error)
func IsK8sResourceExist ¶
func IsNamespaceExist ¶
func IsNamespaceExist(indexer v1.NamespaceLister, name string) (bool, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.