(cmd *cobra.Command, resetOpts *common.ResetOptions)
| 147 | } |
| 148 | |
| 149 | func 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 |
no test coverage detected