kube

package
v0.0.41 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2019 License: Apache-2.0 Imports: 8 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{},
}

ResourceMap are resources from where changes are going to be detected

Functions

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
}

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