Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Commit

Permalink
Merge pull request #33 from wzshiming/clean/log
Browse files Browse the repository at this point in the history
Clean log
  • Loading branch information
wzshiming authored Jun 6, 2022
2 parents c5086e0 + 31f10d5 commit d1f0985
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmd/fake-kubelet/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func init() {
pflag.BoolVar(&takeOverAll, "take-over-all", takeOverAll, "Take over all nodes, there should be no nodes maintained by real Kubelet in the cluster")
pflag.StringVar(&takeOverLabelsSelector, "take-over-labels-selector", takeOverLabelsSelector, "Selector of nodes to take over")
pflag.StringVar(&kubeconfig, "kubeconfig", kubeconfig, "Path to the kubeconfig file to use")
pflag.StringVar(&master, "master", master, "Server is the address of the kubernetes cluster ")
pflag.StringVar(&master, "master", master, "Server is the address of the kubernetes cluster")
pflag.StringVar(&serverAddress, "server-address", serverAddress, "Address to expose health and metrics on")
pflag.Parse()
}
Expand Down Expand Up @@ -104,7 +104,8 @@ func main() {
if takeOverAll {
logger.Printf("Watch all nodes")
} else {
logger.Printf("Watch fake node %q", nodeName)
logger.Printf("Watch nodes %q", strings.Join(nodes, ","))
logger.Printf("Watch nodes with labels %q", takeOverLabelsSelector)
}

n, err := fake_kubelet.NewController(fake_kubelet.Config{
Expand Down

0 comments on commit d1f0985

Please sign in to comment.