Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Clientset = client.Clientset
Clientset creates a *kubernetes.Clientset for the given kubeconfig.
var ClientsetOrDie = client.ClientsetOrDie
ClientsetOrDie creates a *kubernetes.Clientset for the given kubeconfig. panic if there is any error occurs.
var DiscoveryClient = client.DiscoveryClient
DiscoveryClient creates a *discovery.DiscoveryClient for the given kubeconfig.
var DiscoveryClientOrDie = client.DiscoveryClientOrDie
DiscoveryClientOrDie creates a *discovery.DiscoveryClient for the given kubeconfig. panic if there is any error occurs.
var DynamicClient = client.DynamicClient
DynamicClient creates a dynamic.Interface for the given kubeconfig.
var DynamicClientOrDie = client.DynamicClientOrDie
DynamicClient creates a dynamic.Interface for the given kubeconfig. panic if there is any error occurs.
var RESTClient = client.RESTClient
RESTClient creates a *rest.RESTClient for the given kubeconfig.
var RESTClientOrDie = client.RESTClientOrDie
RESTClientOrDie creates a *rest.RESTClient for the given kubeconfig. panic if there is any error occurs.
var RESTConfig = client.RESTConfig
RESTConfig creates a *rest.Config for the given kubeconfig. create rest config, and config precedence. * kubeconfig variable passed. * KUBECONFIG environment variable pointing at a file * $HOME/.kube/config if exists. * In-cluster config if running in cluster
var RESTConfigOrDie = client.RESTConfigOrDie
RESTConfigOrDie creates a *rest.Config for the given kubeconfig. panic if there is any error occurs.
var RawConfig = client.RawConfig
RawConfig holds the information needed to build connect to remote kubernetes clusters as a given user
ref: https://stackoverflow.com/questions/70885022/how-to-get-current-k8s-context-name-using-client-go
Functions ¶
Types ¶
Directories ¶
Path | Synopsis |
---|---|
examples
|
|
_controller
Package controller contains code for controllers (like the replication controller).
|
Package controller contains code for controllers (like the replication controller). |
_controller/bootstrap
Package bootstrap provides automatic processes necessary for bootstraping.
|
Package bootstrap provides automatic processes necessary for bootstraping. |
_controller/certificates
Package certificates implements an abstract controller that is useful for building controllers that manage CSRs
|
Package certificates implements an abstract controller that is useful for building controllers that manage CSRs |
_controller/certificates/approver
Package approver implements an automated approver for kubelet certificates.
|
Package approver implements an automated approver for kubelet certificates. |
_controller/certificates/cleaner
Package cleaner implements an automated cleaner that does garbage collection on CSRs that meet specific criteria.
|
Package cleaner implements an automated cleaner that does garbage collection on CSRs that meet specific criteria. |
_controller/certificates/signer
Package signer implements a CA signer that uses keys stored on local disk.
|
Package signer implements a CA signer that uses keys stored on local disk. |
_controller/cronjob
Package cronjob contains the controller for CronJob objects.
|
Package cronjob contains the controller for CronJob objects. |
_controller/daemon
Package daemon contains logic for watching and synchronizing daemons.
|
Package daemon contains logic for watching and synchronizing daemons. |
_controller/deployment
Package deployment contains all the logic for handling Kubernetes Deployments.
|
Package deployment contains all the logic for handling Kubernetes Deployments. |
_controller/endpoint
Package endpoint provides EndpointController implementation to manage and sync service endpoints.
|
Package endpoint provides EndpointController implementation to manage and sync service endpoints. |
_controller/job
Package job contains logic for watching and synchronizing jobs.
|
Package job contains logic for watching and synchronizing jobs. |
_controller/namespace
Package namespace contains a controller that handles namespace lifecycle
|
Package namespace contains a controller that handles namespace lifecycle |
_controller/nodeipam
Package nodeipam contains code for syncing cloud instances with node registry
|
Package nodeipam contains code for syncing cloud instances with node registry |
_controller/nodeipam/ipam
Package ipam provides different allocators for assigning IP ranges to nodes.
|
Package ipam provides different allocators for assigning IP ranges to nodes. |
_controller/podautoscaler
Package podautoscaler contains logic for autoscaling number of pods based on metrics observed.
|
Package podautoscaler contains logic for autoscaling number of pods based on metrics observed. |
_controller/podgc
Package podgc contains a very simple pod "garbage collector" implementation, PodGCController, that runs in the controller manager.
|
Package podgc contains a very simple pod "garbage collector" implementation, PodGCController, that runs in the controller manager. |
_controller/replicaset
Package replicaset contains logic for watching and synchronizing ReplicaSets.
|
Package replicaset contains logic for watching and synchronizing ReplicaSets. |
_controller/replication
Package replication contains logic for watching and synchronizing replication controllers.
|
Package replication contains logic for watching and synchronizing replication controllers. |
_controller/resourcequota
Package resourcequota contains a controller that makes resource quota usage observations
|
Package resourcequota contains a controller that makes resource quota usage observations |
_controller/serviceaccount
Package serviceaccount provides implementations to manage service accounts and service account tokens
|
Package serviceaccount provides implementations to manage service accounts and service account tokens |
_controller/volume/attachdetach
Package attachdetach implements a controller to manage volume attach and detach operations.
|
Package attachdetach implements a controller to manage volume attach and detach operations. |
_controller/volume/attachdetach/cache
Package cache implements data structures used by the attach/detach controller to keep track of volumes, the nodes they are attached to, and the pods that reference them.
|
Package cache implements data structures used by the attach/detach controller to keep track of volumes, the nodes they are attached to, and the pods that reference them. |
_controller/volume/attachdetach/populator
Package populator implements interfaces that monitor and keep the states of the desired_state_of_word in sync with the "ground truth" from informer.
|
Package populator implements interfaces that monitor and keep the states of the desired_state_of_word in sync with the "ground truth" from informer. |
_controller/volume/attachdetach/reconciler
Package reconciler implements interfaces that attempt to reconcile the desired state of the with the actual state of the world by triggering actions.
|
Package reconciler implements interfaces that attempt to reconcile the desired state of the with the actual state of the world by triggering actions. |
_controller/volume/attachdetach/statusupdater
Package statusupdater implements interfaces that enable updating the status of API objects.
|
Package statusupdater implements interfaces that enable updating the status of API objects. |
_controller/volume/ephemeral
Package ephemeral implements the controller part of https://github.com/kubernetes/enhancements/tree/master/keps/sig-storage/1698-generic-ephemeral-volumes
|
Package ephemeral implements the controller part of https://github.com/kubernetes/enhancements/tree/master/keps/sig-storage/1698-generic-ephemeral-volumes |
util
|
|
signals
signals is a package for handling signals to gratefully shutdown app in combination with kubernetes pod graceful termination policy.
|
signals is a package for handling signals to gratefully shutdown app in combination with kubernetes pod graceful termination policy. |