MCPcopy
hub / github.com/kubeedge/kubeedge / addResetFlags

Function addResetFlags

keadm/cmd/keadm/app/cmd/reset_others.go:149–156  ·  view source on GitHub ↗
(cmd *cobra.Command, resetOpts *common.ResetOptions)

Source from the content-addressed store, hash-verified

147}
148
149func addResetFlags(cmd *cobra.Command, resetOpts *common.ResetOptions) {
150 cmd.Flags().StringVar(&resetOpts.Kubeconfig, common.FlagNameKubeConfig, common.DefaultKubeConfig,
151 "Use this key to set kube-config path, eg: $HOME/.kube/config")
152 cmd.Flags().BoolVar(&resetOpts.Force, "force", resetOpts.Force,
153 "Reset the node without prompting for confirmation")
154 cmd.Flags().StringVar(&resetOpts.Endpoint, "remote-runtime-endpoint", resetOpts.Endpoint,
155 "Use this key to set container runtime endpoint")
156}
157
158// TearDownKubeEdge will bring down either cloud or edge components,
159// depending upon in which type of node it is executed

Callers 1

NewKubeEdgeResetFunction · 0.70

Calls 1

FlagsMethod · 0.45

Tested by

no test coverage detected