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
Click to show internal directories.
Click to hide internal directories.