machine

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2019 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(mgr manager.Manager) error

Add creates a new Machine Controller and adds it to the Manager with default RBAC. The Manager will set fields on the Controller and Start it when the Manager is Started.

func DeleteNode

func DeleteNode(cfg CmdConfig, args map[string]string) error

func DrainAndDeleteNode

func DrainAndDeleteNode(cfg CmdConfig, args map[string]string) error

func GetKubeConfig

func GetKubeConfig(cfg CmdConfig, args map[string]string) ([]byte, error)

func InstallBootstrapRepo

func InstallBootstrapRepo(cfg CmdConfig, args map[string]string) error

func InstallDocker

func InstallDocker(cfg CmdConfig, args map[string]string) error

func InstallKubernetes

func InstallKubernetes(cfg CmdConfig, args map[string]string) error

func InstallNginx

func InstallNginx(cfg CmdConfig, args map[string]string) error

func KubeadmInit

func KubeadmInit(cfg CmdConfig, args map[string]string) error

func KubeadmJoin

func KubeadmJoin(cfg CmdConfig, args map[string]string) error

func KubeadmTokenCreate

func KubeadmTokenCreate(cfg CmdConfig, args map[string]string) ([]byte, error)

func UpgradeMaster

func UpgradeMaster(cfg CmdConfig, args map[string]string) error

func UpgradeNode

func UpgradeNode(cfg CmdConfig, args map[string]string) error

Types

type CmdConfig

type CmdConfig struct {
	// contains filtered or unexported fields
}

func NewCmdConfig

func NewCmdConfig(kubeClient client.Client, machineInstance *clusterv1alpha1.CnctMachine, privateKey []byte) (CmdConfig, error)

type ReconcileMachine

type ReconcileMachine struct {
	client.Client

	record.EventRecorder
	// contains filtered or unexported fields
}

ReconcileMachine reconciles a Machine object

func (*ReconcileMachine) Reconcile

func (r *ReconcileMachine) Reconcile(request reconcile.Request) (reconcile.Result, error)

Reconcile reads that stamakte of the cluster for a Machine object and makes changes based on the state read and what is in the Machine.Spec +kubebuilder:rbac:groups=cluster.cnct.sds.samsung.com,resources=cnctmachines;cnctclusters,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=core,resources=events,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=core,resources=secrets,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=core,resources=namespaces,verbs=get;list;watch;create;update;patch;delete

Jump to

Keyboard shortcuts

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