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

Commit

Permalink
fix flag include problem
Browse files Browse the repository at this point in the history
  • Loading branch information
magicwang-cn committed Dec 6, 2018
1 parent 4496f79 commit 6024c86
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/controller-manager/app/controller-manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ limitations under the License.
package app

import (
"flag"
"fmt"
"os"

Expand All @@ -29,6 +30,7 @@ import (
extv1b1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
utilfeature "k8s.io/apiserver/pkg/util/feature"
utilflag "k8s.io/apiserver/pkg/util/flag"
"k8s.io/apiserver/pkg/util/logs"

"github.com/kubernetes-sigs/federation-v2/cmd/controller-manager/app/options"
Expand Down Expand Up @@ -67,6 +69,9 @@ member clusters and does the necessary reconciliation`,
},
}

// Add the command line flags from other dependencies(glog, kubebuilder, etc.)
cmd.Flags().AddGoFlagSet(flag.CommandLine)

opts.AddFlags(cmd.Flags())
cmd.Flags().BoolVar(&verFlag, "version", false, "Prints the Version info of controller-manager")

Expand Down

0 comments on commit 6024c86

Please sign in to comment.