Documentation
¶
Index ¶
- Variables
- func ApplyF(ctx context.Context, kubeconfig, filename string) error
- func Clientset(kubeconfig string) (*kubernetes.Clientset, error)
- func ClientsetOrDie(kubeconfig string) *kubernetes.Clientset
- func Decode(data []byte) (runtime.Object, error)
- func DeleteF(ctx context.Context, kubeconfig, filename string) error
- func DiscoveryClient(kubeconfig string) (*discovery.DiscoveryClient, error)
- func DiscoveryClientOrDie(kubeconfig string) *discovery.DiscoveryClient
- func DynamicClient(kubeconfig string) (dynamic.Interface, error)
- func DynamicClientOrDie(kubeconfig string) dynamic.Interface
- func RESTClient(kubeconfig string) (*rest.RESTClient, error)
- func RESTClientOrDie(kubeconfig string) *rest.RESTClient
- func RESTConfig(kubeconfig string) (*rest.Config, error)
- func RESTConfigOrDie(kubeconfig string) *rest.Config
- type ClusterRoleBindingHandler
- type ClusterRoleHandler
- type ConfigMapHandler
- type CronJobHandler
- type DaemonSetHandler
- type DeploymentHandler
- type IngressClassHandler
- type IngressHandler
- type JobHandler
- type NamespaceHandler
- type NetworkPolicyHandler
- type NodeHandler
- type PersistentVolumeClaimHandler
- type PersistentVolumeHandler
- type PodHandler
- type ReplicaSetHandler
- type ReplicationControllerHandler
- type RoleBindingHandler
- type RoleHandler
- type SecretHandler
- type ServiceAccountHandler
- type ServiceHandler
- type StatefulSetHandler
- type StorageClassHandler
Constants ¶
This section is empty.
Variables ¶
var ( NewClusterRole = clusterrole.New NewClusterRoleBinding = clusterrolebinding.New NewConfigMap = configmap.New NewCronJob = cronjob.New NewDaemonSet = daemonset.New NewDeployment = deployment.New NewIngress = ingress.New NewIngressClass = ingressclass.New NewJob = job.New NewNamespace = namespace.New NewNetworkPolicy = networkpolicy.New NewNode = node.New NewPersistentVolume = persistentvolume.New NewPersistentVolumeClaim = persistentvolumeclaim.New NewPod = pod.New NewReplicaSet = replicaset.New NewReplicationController = replicationcontroller.New NewRole = role.New NewRoleBinding = rolebinding.New NewSecret = secret.New NewService = service.New NewServiceAccount = serviceaccount.New NewStatefulSet = statefulset.New NewStorageClass = storageclass.New )
var ( SetupSignalContext = signals.SetupSignalContext SetupSignalChannel = signals.SetupSignalChannel )
Functions ¶
func Clientset ¶ added in v0.5.0
func Clientset(kubeconfig string) (*kubernetes.Clientset, error)
Clientset creates a *kubernetes.Clientset for the given kubeconfig.
func ClientsetOrDie ¶ added in v0.5.0
func ClientsetOrDie(kubeconfig string) *kubernetes.Clientset
ClientsetOrDie creates a *kubernetes.Clientset for the given kubeconfig. panic if there is any error occurs.
func DiscoveryClient ¶ added in v0.5.0
func DiscoveryClient(kubeconfig string) (*discovery.DiscoveryClient, error)
DiscoveryClient creates a *discovery.DiscoveryClient for the given kubeconfig.
func DiscoveryClientOrDie ¶ added in v0.5.0
func DiscoveryClientOrDie(kubeconfig string) *discovery.DiscoveryClient
DiscoveryClientOrDie creates a *discovery.DiscoveryClient for the given kubeconfig. panic if there is any error occurs.
func DynamicClient ¶ added in v0.5.0
DynamicClient creates a dynamic.Interface for the given kubeconfig.
func DynamicClientOrDie ¶ added in v0.5.0
DynamicClient creates a dynamic.Interface for the given kubeconfig. panic if there is any error occurs.
func RESTClient ¶ added in v0.5.0
func RESTClient(kubeconfig string) (*rest.RESTClient, error)
RESTClient creates a *rest.RESTClient for the given kubeconfig.
func RESTClientOrDie ¶ added in v0.5.0
func RESTClientOrDie(kubeconfig string) *rest.RESTClient
RESTClientOrDie creates a *rest.RESTClient for the given kubeconfig. panic if there is any error occurs.
func RESTConfig ¶ added in v0.5.0
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
func RESTConfigOrDie ¶ added in v0.5.0
RESTConfigOrDie creates a *rest.Config for the given kubeconfig. panic if there is any error occurs.
Types ¶
type ClusterRoleBindingHandler ¶ added in v0.7.0
type ClusterRoleBindingHandler = clusterrolebinding.Handler
type ClusterRoleHandler ¶ added in v0.7.0
type ClusterRoleHandler = clusterrole.Handler
type ConfigMapHandler ¶ added in v0.7.0
type CronJobHandler ¶ added in v0.7.0
type DaemonSetHandler ¶ added in v0.7.0
type DeploymentHandler ¶ added in v0.7.0
type DeploymentHandler = deployment.Handler
type IngressClassHandler ¶ added in v0.7.0
type IngressClassHandler = ingressclass.Handler
type IngressHandler ¶ added in v0.7.0
type JobHandler ¶ added in v0.7.0
type NamespaceHandler ¶ added in v0.7.0
type NetworkPolicyHandler ¶ added in v0.7.0
type NetworkPolicyHandler = networkpolicy.Handler
type NodeHandler ¶ added in v0.7.0
type PersistentVolumeClaimHandler ¶ added in v0.7.0
type PersistentVolumeClaimHandler = persistentvolumeclaim.Handler
type PersistentVolumeHandler ¶ added in v0.7.0
type PersistentVolumeHandler = persistentvolume.Handler
type PodHandler ¶ added in v0.7.0
type ReplicaSetHandler ¶ added in v0.7.0
type ReplicaSetHandler = replicaset.Handler
type ReplicationControllerHandler ¶ added in v0.7.0
type ReplicationControllerHandler = replicationcontroller.Handler
type RoleBindingHandler ¶ added in v0.7.0
type RoleBindingHandler = rolebinding.Handler
type RoleHandler ¶ added in v0.7.0
type SecretHandler ¶ added in v0.7.0
type ServiceAccountHandler ¶ added in v0.7.0
type ServiceAccountHandler = serviceaccount.Handler
type ServiceHandler ¶ added in v0.7.0
type StatefulSetHandler ¶ added in v0.7.0
type StatefulSetHandler = statefulset.Handler
type StorageClassHandler ¶ added in v0.7.0
type StorageClassHandler = storageclass.Handler
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 |
|
annotations
command
|
|
|
clusterrole
command
|
|
|
clusterrolebinding
command
|
|
|
configmap
command
|
|
|
cronjob
command
|
|
|
daemonset
command
|
|
|
deployment
command
|
|
|
discovery
command
|
|
|
dynamic
command
|
|
|
ingress
command
|
|
|
job
command
|
|
|
k8s
command
|
|
|
labels
command
|
|
|
leaderelection
command
|
|
|
namespace
command
|
|
|
node
command
|
|
|
persistentvolume
command
|
|
|
persistentvolumeclaim
command
|
|
|
pod
command
|
|
|
port-forward
command
|
|
|
replicaset
command
|
|
|
replicationcontroller
command
|
|
|
rolebinding
command
|
|
|
secret
command
|
|
|
service
command
|
|
|
statefulset
command
|
|
|
storageclass
command
|
|
|
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. |