util

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateIfNotExistsDir added in v0.3.0

func CreateIfNotExistsDir(targetDir string) (string, error)

func GetCacheDir

func GetCacheDir(repo, chart string) (string, error)

GetCacheDir returns the caching directory for module

func GetConfigDir

func GetConfigDir(repo, chart string) (string, error)

GetConfigDir returns the config directory for k8ssandra and creates it if it does not exists

func GetExecOptions

func GetExecOptions(streams genericclioptions.IOStreams, configFlags *genericclioptions.ConfigFlags) (*exec.ExecOptions, error)

GetExecOptions returns a filled ExecOptions with correct parameters for Cassandra tools execution

func RandomKubeCompatibleText added in v0.3.0

func RandomKubeCompatibleText(length int) string

func SetKubernetesDefaults

func SetKubernetesDefaults(config *rest.Config) error

SetKubernetesDefaults hack is copied from kubectl/exec (unexported)

func VerifyFileExists

func VerifyFileExists(yamlPath string) (bool, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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