Documentation ¶
Index ¶
Constants ¶
View Source
const ( // WatchNamespaceEnvVar is the constant for env variable WATCH_NAMESPACE // which is the namespace that the pod is currently running in. WatchNamespaceEnvVar = "WATCH_NAMESPACE" // OperatorNameEnvVar is the constant for env variable OPERATOR_NAME // which is the name of the current operator OperatorNameEnvVar = "OPERATOR_NAME" )
Variables ¶
This section is empty.
Functions ¶
func GetConfig ¶
GetConfig creates a *rest.Config for talking to a Kubernetes apiserver. Otherwise will assume running in cluster and use the cluster provided kubeconfig.
Config precedence ¶
* KUBECONFIG environment variable pointing at a file
* In-cluster config if running in cluster
* $HOME/.kube/config if exists
func GetOperatorName ¶
GetOperatorName return the operator name
func GetWatchNamespace ¶
GetWatchNamespace returns the namespace the operator should be watching for changes
Types ¶
type Clients ¶
type Clients struct { Kube *kubeset.Clientset Route *routeset.RouteV1Client Config *configset.ConfigV1Client RegOp *regopset.Clientset Core *coreset.CoreV1Client Apps *appsset.AppsV1Client RBAC *rbacset.RbacV1Client }
type Listers ¶
type Listers struct { Deployments kappslisters.DeploymentNamespaceLister DaemonSets kappslisters.DaemonSetNamespaceLister Services kcorelisters.ServiceNamespaceLister Secrets kcorelisters.SecretNamespaceLister ConfigMaps kcorelisters.ConfigMapNamespaceLister ServiceAccounts kcorelisters.ServiceAccountNamespaceLister Routes routelisters.RouteNamespaceLister ClusterRoles krbaclisters.ClusterRoleLister ClusterRoleBindings krbaclisters.ClusterRoleBindingLister OpenShiftConfig kcorelisters.ConfigMapNamespaceLister ImageConfigs configlisters.ImageLister ClusterOperators configlisters.ClusterOperatorLister RegistryConfigs regoplisters.ConfigLister ProxyConfigs configlisters.ProxyLister Infrastructures configlisters.InfrastructureLister }
Click to show internal directories.
Click to hide internal directories.