revert

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2021 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRevertCmd

func NewRevertCmd() *cobra.Command

NewRevertCmd generates a new revert command

func NewRevertEdgeNodeCmd

func NewRevertEdgeNodeCmd() *cobra.Command

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

Jump to

Keyboard shortcuts

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