kube

package
v1.0.93 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// IsOpenshift is true if environment is Openshift, it is false if environment is Kubernetes
	IsOpenshift = isOpenshift()
)
View Source
var ResourceMap = map[string]runtime.Object{
	"configMaps": &v1.ConfigMap{},
	"secrets":    &v1.Secret{},
	"namespaces": &v1.Namespace{},
}

ResourceMap are resources from where changes are going to be detected

Functions

func GetArgoRolloutClient added in v0.0.83

func GetArgoRolloutClient() (*argorollout.Clientset, error)

func GetKubernetesClient added in v0.0.37

func GetKubernetesClient() (*kubernetes.Clientset, error)

GetKubernetesClient gets the client for k8s, if ~/.kube/config exists so get that config else incluster config

func GetOpenshiftAppsClient added in v0.0.37

func GetOpenshiftAppsClient() (*appsclient.Clientset, error)

GetOpenshiftAppsClient returns an Openshift Client that can query on Apps

Types

type Clients added in v0.0.37

type Clients struct {
	KubernetesClient    kubernetes.Interface
	OpenshiftAppsClient appsclient.Interface
	ArgoRolloutClient   argorollout.Interface
}

Clients struct exposes interfaces for kubernetes as well as openshift if available

func GetClients added in v0.0.37

func GetClients() Clients

GetClients returns a `Clients` object containing both openshift and kubernetes clients with an openshift identifier

Jump to

Keyboard shortcuts

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