Documentation ¶
Index ¶
- func Add(mgr manager.Manager) error
- func DeleteNode(cfg CmdConfig, args map[string]string) error
- func DrainAndDeleteNode(cfg CmdConfig, args map[string]string) error
- func GetKubeConfig(cfg CmdConfig, args map[string]string) ([]byte, error)
- func InstallBootstrapRepo(cfg CmdConfig, args map[string]string) error
- func InstallDocker(cfg CmdConfig, args map[string]string) error
- func InstallKubernetes(cfg CmdConfig, args map[string]string) error
- func InstallNginx(cfg CmdConfig, args map[string]string) error
- func KubeadmInit(cfg CmdConfig, args map[string]string) error
- func KubeadmJoin(cfg CmdConfig, args map[string]string) error
- func KubeadmTokenCreate(cfg CmdConfig, args map[string]string) ([]byte, error)
- func UpgradeMaster(cfg CmdConfig, args map[string]string) error
- func UpgradeNode(cfg CmdConfig, args map[string]string) error
- type CmdConfig
- type ReconcileMachine
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Add ¶
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 KubeadmTokenCreate ¶
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 ¶
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