Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRevertEdgeNodeCmd ¶
NewRevertEdgeNodeCmd generates a new sub command revert edgenode
Types ¶
type RevertEdgeNodeOptions ¶
type RevertEdgeNodeOptions struct { EdgeNodes []string YurtctlServantImage string PodMainfestPath string KubeadmConfPath string // contains filtered or unexported fields }
RevertEdgeNodeOptions has the information required by sub command revert edgenode
func NewRevertEdgeNodeOptions ¶
func NewRevertEdgeNodeOptions() *RevertEdgeNodeOptions
NewRevertEdgeNodeOptions creates a new RevertEdgeNodeOptions
func (*RevertEdgeNodeOptions) Complete ¶
func (r *RevertEdgeNodeOptions) Complete(flags *pflag.FlagSet) (err error)
Complete completes all the required options
func (*RevertEdgeNodeOptions) RemoveYurthub ¶
func (r *RevertEdgeNodeOptions) RemoveYurthub() error
RemoveYurthub deletes the yurt-hub pod
func (*RevertEdgeNodeOptions) RevertKubelet ¶
func (r *RevertEdgeNodeOptions) RevertKubelet() error
RevertKubelet resets the kubelet service
func (*RevertEdgeNodeOptions) RunRevertEdgeNode ¶
func (r *RevertEdgeNodeOptions) RunRevertEdgeNode() (err error)
RunRevertEdgeNode reverts the target Yurt node back to a standard Kubernetes node
type RevertOptions ¶
type RevertOptions struct { YurtctlServantImage string PodMainfestPath string KubeadmConfPath string // contains filtered or unexported fields }
RevertOptions has the information required by the revert operation
func NewRevertOptions ¶
func NewRevertOptions() *RevertOptions
NewConvertOptions creates a new RevertOptions
func (*RevertOptions) Complete ¶
func (ro *RevertOptions) Complete(flags *pflag.FlagSet) error
Complete completes all the required options
func (*RevertOptions) RunRevert ¶
func (ro *RevertOptions) RunRevert() (err error)
RunRevert reverts the target Yurt cluster back to a standard Kubernetes cluster