Documentation ¶
Index ¶
- func CompatibleVersion(binary, target string) bool
- func ContainsEqualFoldItemString(s []string, e string) (string, bool)
- func ContainsItemString(s []string, e string) bool
- func ExecKubectlCommand(ctx context.Context, mode ExecMode, kubeConfigPath string, kubeContext string, ...) (string, error)
- func ExecTemplate(obj interface{}, tmpl, filename string) error
- func ExtractCRDs(inManifestPath, outManifestPath string) error
- func KubeClient(kubeConfigPath string, kubeContext string) (client.Client, error)
- func KubeConfig(kubeConfigPath string, kubeContext string) (*rest.Config, error)
- func MakeDependsOn(deps []string) []dependency.CrossNamespaceDependencyReference
- func ParseObjectKindName(input string) (kind, name string)
- func ParseObjectKindNameNamespace(input string) (kind, name, namespace string)
- func PrintTable(writer io.Writer, header []string, rows [][]string)
- func SplitKubeConfigPath(path string) []string
- func ValidateComponents(components []string) error
- type ExecMode
- type Utils
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompatibleVersion ¶ added in v0.8.1
CompatibleVersion returns if the provided binary version is compatible with the given target version. At present, this is true if the target version is equal to the MINOR range of the binary, or if the binary version is a prerelease.
func ContainsEqualFoldItemString ¶ added in v0.5.5
func ContainsItemString ¶
func ExecKubectlCommand ¶
func ExecTemplate ¶
func ExtractCRDs ¶ added in v0.13.0
func KubeConfig ¶ added in v0.5.7
func MakeDependsOn ¶
func MakeDependsOn(deps []string) []dependency.CrossNamespaceDependencyReference
func ParseObjectKindName ¶
ParseObjectKindName extracts the kind and name of a resource based on the '<kind>/<name>' format
func ParseObjectKindNameNamespace ¶ added in v0.12.0
ParseObjectKindNameNamespace extracts the kind, name and namespace of a resource based on the '<kind>/<name>.<namespace>' format
func SplitKubeConfigPath ¶
SplitKubeConfigPath splits the given KUBECONFIG path based on the runtime OS target.
func ValidateComponents ¶ added in v0.5.8
Types ¶
Click to show internal directories.
Click to hide internal directories.