kube

package
v1.0.76 Latest Latest
Warning

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

Go to latest
Published: May 17, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ResourceMap = map[string]runtime.Object{
	"ingresses": &v1beta1.Ingress{},
	"routes":    &routev1.Route{},
}

ResourceMap are resources from where changes are going to be detected

Functions

func GetClient

func GetClient() kubernetes.Interface

GetClient returns a k8s clientset to the request from inside of cluster

func GetClientOutOfCluster

func GetClientOutOfCluster() kubernetes.Interface

GetClientOutOfCluster returns a k8s clientset to the request from outside of cluster

func GetResourceActionFuncs

func GetResourceActionFuncs(resource interface{}) callbacks.ResourceActionFuncs

GetResourceActionFuncs provides the resource actions for ingress and routes

func IsOpenShift

func IsOpenShift(c *kubernetes.Clientset) bool

IsOpenShift returns true if cluster is openshift based

func IsRoute

func IsRoute(resource interface{}) bool

IsRoute returns true if given resource is a route

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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