refactor: remove usless options (#5671)

refactor: remove useless options
This commit is contained in:
hongming
2023-05-10 14:01:46 +08:00
committed by GitHub
parent e140fb387c
commit fafe98b4f0
13 changed files with 208 additions and 106 deletions

View File

@@ -17,16 +17,15 @@ limitations under the License.
package main
import (
"log"
"os"
"k8s.io/component-base/cli"
"kubesphere.io/kubesphere/cmd/ks-apiserver/app"
)
func main() {
cmd := app.NewAPIServerCommand()
if err := cmd.Execute(); err != nil {
log.Fatalln(err)
}
code := cli.Run(cmd)
os.Exit(code)
}