usercontrollers

package
v2.0.15-rc1+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2019 License: Apache-2.0 Imports: 4 Imported by: 56

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterEarly

func RegisterEarly(ctx context.Context, management *config.ManagementContext, manager *clustermanager.Manager)

RegisterEarly registers ClusterLifecycleCleanup controller which is responsible for stopping rancher agent in user cluster, and de-registering k8s controllers, on cluster.remove

func RegisterLate

func RegisterLate(ctx context.Context, management *config.ManagementContext, manager *clustermanager.Manager)

RegisterLate registers ClusterLifecycle controller which is responsible for starting rancher agent in user cluster, and registering k8s controllers, on cluster.update

Types

type ClusterLifecycle

type ClusterLifecycle struct {
	Manager *clustermanager.Manager
	// contains filtered or unexported fields
}

func (*ClusterLifecycle) Create

func (c *ClusterLifecycle) Create(obj *v3.Cluster) (*v3.Cluster, error)

func (*ClusterLifecycle) Remove

func (c *ClusterLifecycle) Remove(obj *v3.Cluster) (*v3.Cluster, error)

func (*ClusterLifecycle) Updated

func (c *ClusterLifecycle) Updated(obj *v3.Cluster) (*v3.Cluster, error)

type ClusterLifecycleCleanup

type ClusterLifecycleCleanup struct {
	Manager *clustermanager.Manager
	// contains filtered or unexported fields
}

func (*ClusterLifecycleCleanup) Create

func (c *ClusterLifecycleCleanup) Create(obj *v3.Cluster) (*v3.Cluster, error)

func (*ClusterLifecycleCleanup) Remove

func (c *ClusterLifecycleCleanup) Remove(obj *v3.Cluster) (*v3.Cluster, error)

func (*ClusterLifecycleCleanup) Updated

func (c *ClusterLifecycleCleanup) Updated(obj *v3.Cluster) (*v3.Cluster, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL