k8s

package
v0.0.0-...-68fc048 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2022 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Client     *discoveryK8s.K8s
	K8sVersion string
)

Functions

func DeleteNamespace

func DeleteNamespace(namespace string)

DeleteNamespace deletes all the namespaces in the v1 namespacelist

func FindNamespace

func FindNamespace(labelSelector map[string]string) (namespace string, err error)

FindNamespace returns the namespace for matching labels

func Forward

func Forward(appSpec utils.Apps, forwardPort string)

func GetRestMapperAndDynamicClient

func GetRestMapperAndDynamicClient() (*restmapper.DeferredDiscoveryRESTMapper, dynamic.Interface)

GetRestMapperAndDynamicClient creates the Rest Mapper and Dynamic Client Interface for the given cluster defined in the kubeconfig or from within the cluster and while deleting it just deletes resource-by-resource

func InstallOrDelete

func InstallOrDelete(sepYamlFiles []string, userDefinedNamespace string, isInstall bool)

InstallOrDelete installs or deletes the unstructured data according to the isInstall boolean

Types

This section is empty.

Jump to

Keyboard shortcuts

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