Skip to content

Commit

Permalink
Merge pull request kubeedge#5840 from tangming1996/bugfix/keadm
Browse files Browse the repository at this point in the history
fix keadm lack of flag remote-runtime-endpoint
  • Loading branch information
kubeedge-bot authored Sep 6, 2024
2 parents a4977f4 + 475eaf3 commit cd13483
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions keadm/cmd/keadm/app/cmd/edge/reset_others.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,4 +136,6 @@ func TearDownEdgeCore() error {
func addResetFlags(cmd *cobra.Command, resetOpts *common.ResetOptions) {
cmd.Flags().BoolVar(&resetOpts.Force, "force", resetOpts.Force,
"Reset the node without prompting for confirmation")
cmd.Flags().StringVar(&resetOpts.Endpoint, "remote-runtime-endpoint", resetOpts.Endpoint,
"Use this key to set container runtime endpoint")
}
2 changes: 2 additions & 0 deletions keadm/cmd/keadm/app/cmd/reset_others.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ func addResetFlags(cmd *cobra.Command, resetOpts *common.ResetOptions) {
"Use this key to set kube-config path, eg: $HOME/.kube/config")
cmd.Flags().BoolVar(&resetOpts.Force, "force", resetOpts.Force,
"Reset the node without prompting for confirmation")
cmd.Flags().StringVar(&resetOpts.Endpoint, "remote-runtime-endpoint", resetOpts.Endpoint,
"Use this key to set container runtime endpoint")
}

// TearDownKubeEdge will bring down either cloud or edge components,
Expand Down

0 comments on commit cd13483

Please sign in to comment.