Documentation ¶
Overview ¶
Package app implements a server that runs a set of active components. This includes replication controllers, service endpoints and nodes.
CAUTION: If you update code in this file, you may need to also update code
in contrib/mesos/pkg/controllermanager/controllermanager.go
Index ¶
- Constants
- func AttemptToLoadRecycler(path string, config *volume.VolumeConfig) error
- func NewControllerManagerCommand() *cobra.Command
- func NewVolumeProvisioner(cloud cloudprovider.Interface, config componentconfig.VolumeConfiguration) (volume.ProvisionableVolumePlugin, error)
- func ProbeAttachableVolumePlugins(config componentconfig.VolumeConfiguration) []volume.VolumePlugin
- func ProbeRecyclableVolumePlugins(config componentconfig.VolumeConfiguration) []volume.VolumePlugin
- func ResyncPeriod(s *options.CMServer) func() time.Duration
- func Run(s *options.CMServer) error
- func StartControllers(s *options.CMServer, kubeClient *client.Client, kubeconfig *restclient.Config, ...) error
Constants ¶
const (
// Jitter used when starting controller managers
ControllerStartJitter = 1.0
)
Variables ¶
This section is empty.
Functions ¶
func AttemptToLoadRecycler ¶ added in v1.2.0
func AttemptToLoadRecycler(path string, config *volume.VolumeConfig) error
AttemptToLoadRecycler tries decoding a pod from a filepath for use as a recycler for a volume. If successful, this method will set the recycler on the config. If unsuccessful, an error is returned. Function is exported for reuse downstream.
func NewControllerManagerCommand ¶ added in v1.1.1
NewControllerManagerCommand creates a *cobra.Command object with default parameters
func NewVolumeProvisioner ¶ added in v1.2.0
func NewVolumeProvisioner(cloud cloudprovider.Interface, config componentconfig.VolumeConfiguration) (volume.ProvisionableVolumePlugin, error)
NewVolumeProvisioner returns a volume provisioner to use when running in a cloud or development environment. The beta implementation of provisioning allows 1 implied provisioner per cloud, until we allow configuration of many. We explicitly map clouds to volume plugins here which allows us to configure many later without backwards compatibility issues. Not all cloudproviders have provisioning capability, which is the reason for the bool in the return to tell the caller to expect one or not.
func ProbeAttachableVolumePlugins ¶ added in v1.3.0
func ProbeAttachableVolumePlugins(config componentconfig.VolumeConfiguration) []volume.VolumePlugin
ProbeAttachableVolumePlugins collects all volume plugins for the attach/ detach controller. VolumeConfiguration is used ot get FlexVolumePluginDir which specifies the directory to search for additional third party volume plugins. The list of plugins is manually compiled. This code and the plugin initialization code for kubelet really, really need a through refactor.
func ProbeRecyclableVolumePlugins ¶ added in v0.19.0
func ProbeRecyclableVolumePlugins(config componentconfig.VolumeConfiguration) []volume.VolumePlugin
ProbeRecyclableVolumePlugins collects all persistent volume plugins into an easy to use list.
func StartControllers ¶ added in v1.2.0
Types ¶
This section is empty.