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

bug: flag(start up parameter) include problem #461

Closed
magicwang-cn opened this issue Nov 30, 2018 · 4 comments
Closed

bug: flag(start up parameter) include problem #461

magicwang-cn opened this issue Nov 30, 2018 · 4 comments
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@magicwang-cn
Copy link
Contributor

currently, the startup parameters does not include flag.CommandLine, like this which is just set to flag's CommandLine, not in cmd's Flags. so when we start controller-manager with --kubeconfig or --master, there will be the problem as follows:

Error: unknown flag: --kubeconfig
Usage:
  controller-manager [flags]

Flags:
      --cluster-available-delay duration     Time to wait before reconciling on a healthy cluster. (default 20s)
      --cluster-monitor-period duration      How often to monitor the cluster health (default 40s)
      --cluster-unavailable-delay duration   Time to wait before giving up on an unhealthy cluster. (default 1m0s)
      --feature-gates mapStringBool          A set of key=value pairs that describe feature gates for alpha/experimental features. Options are:
                                             AllAlpha=true|false (ALPHA - default=false)
                                             CrossClusterServiceDiscovery=true|false (ALPHA - default=true)
                                             FederatedIngress=true|false (ALPHA - default=true)
                                             PushReconciler=true|false (ALPHA - default=true)
                                             SchedulerPreferences=true|false (ALPHA - default=true)
      --federation-namespace string          The namespace the federation control plane is deployed in. (default "federation-system")
  -h, --help                                 help for controller-manager
      --install-crds                         install the CRDs used by the controller as part of startup (default true)
      --install-resources-dir string         install the resources by the controller
      --limited-scope                        Whether the federation namespace will be the only target for federation.
      --log-flush-frequency duration         Maximum number of seconds between log flushes (default 5s)
      --registry-namespace string            The cluster registry namespace. (default "kube-multicluster-public")
      --version                              Prints the Version info of controller-manager

unknown flag: --kubeconfig
root@SZV1000139235:/var/paas/workspace/src/github.com/kubernetes-sigs/federation-v2/cmd/controller-manager#
@magicwang-cn
Copy link
Contributor Author

/kind bug

@k8s-ci-robot k8s-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Nov 30, 2018
@marun
Copy link
Contributor

marun commented Dec 1, 2018

I'm curious how you discovered this problem. Do you have a use case that suggest running the controller manager outside of a cluster?

@magicwang-cn
Copy link
Contributor Author

haha... yeah. we have deployed the federated controller plane out side of the k8s cluster

@magicwang-cn
Copy link
Contributor Author

/close

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

4 participants