-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor controllers to separate package, shift cli-runtime to wrangler-cli, introduce pprof options #157
Refactor controllers to separate package, shift cli-runtime to wrangler-cli, introduce pprof options #157
Conversation
|
8b7ea58
to
6ef8ac5
Compare
|
e5cfb4e
to
c1ed8a0
Compare
a1df6b4
to
0954cd8
Compare
arvindiyengar: ~/Rancher/helm-controller/src/github.com/k3s-io/helm-controller
$ ./helm-controller --help
Usage:
helm-controller [flags]
Flags:
--debug Turn on debug logging
--debug-level int If debugging is enabled, set klog -v=X
-h, --help help for helm-controller
-k, --kubeconfig string Kubernetes config files, e.g. $HOME/.kube/config
-m, --master-url string Kubernetes cluster master URL
-n, --namespace string Namespace to watch, empty means it will watch CRDs in all namespaces.
--pprof-port int Port to publish HTTP server runtime profiling data in the format expected by the pprof visualization tool. Only enabled if in debug mode (default 6060)
-t, --threads int Threadiness level to set, defaults to 2. (default 2)
-v, --version version for helm-controller pprof stuff has been added and moved to be entirely self-contained in a single commit. |
Signed-off-by: Arvind Iyengar <arvind.iyengar@rancher.com>
Signed-off-by: Arvind Iyengar <arvind.iyengar@rancher.com>
0954cd8
to
db191fc
Compare
Signed-off-by: Arvind Iyengar <arvind.iyengar@rancher.com> (cherry picked from commit e8b0e5a)
pkg/controllers/controllers.go
Outdated
if len(systemNamespace) == 0 { | ||
return errors.New("cannot start controllers on system namespace: system namespace not provided") | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We throw an error here if systemNamespace
is empty, but down below at https://github.com/k3s-io/helm-controller/pull/157/files#diff-b32dd54d2bd7ecc467b19203287df80c4c1e3934ea80602aadd6658306b5cca6R73 it looks like the intent was to allow for watching all namespaces if the string is empty. Is this an error, or should that subsequent check be removed?
28433d3
to
dd785ff
Compare
Signed-off-by: Arvind Iyengar <arvind.iyengar@rancher.com> (cherry picked from commit db20eff) Signed-off-by: Arvind Iyengar <arvind.iyengar@rancher.com>
Signed-off-by: Arvind Iyengar <arvind.iyengar@rancher.com>
8ecacf6
to
233b031
Compare
Part 5 of #141