-
Notifications
You must be signed in to change notification settings - Fork 32
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
Drop operand.namespace #115
Drop operand.namespace #115
Conversation
/assign @marquiz |
73bfac9
to
ad47908
Compare
ups.... topology things got into the PR jejeje |
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.
The commits don't seem to be consistent as the first commit already drops operand.namespace. Either squash the commits into one or only do make manifests
in the first commit.
Also, commit messages (that do not have a "topic: " prefix) should begin with a capital letter.
ad47908
to
7ec0c22
Compare
Signed-off-by: Carlos Eduardo Arango Gutierrez <carangog@redhat.com> drop operand.namespace Signed-off-by: Carlos Eduardo Arango Gutierrez <carangog@redhat.com>
7ec0c22
to
7c09709
Compare
main.go
Outdated
watchNamespace, err := utils.GetWatchNamespace() | ||
if err != nil { | ||
klog.Error(err, "unable to get WatchNamespace, "+ | ||
"the manager will watch and manage resources in all namespaces") | ||
} |
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.
Woudln't it be ok to watch for all namespaces by default?
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.
if https://github.com/ArangoGutierrez/node-feature-discovery-operator/blob/devel/v1spec_ns/pkg/utils/utils.go#L28 is not defined, if will default to all, so is ok.
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.
K. The error in log is a bit misleading here, I think. Would klog.Infof()
or smth be better?
watchNamespace, err := utils.GetWatchNamespace() | |
if err != nil { | |
klog.Error(err, "unable to get WatchNamespace, "+ | |
"the manager will watch and manage resources in all namespaces") | |
} | |
watchNamespace, found := os.LookupEnv(watchNamespaceEnvVar) | |
if !found { | |
klog.Infof("%q not specified in env, the manager will watch and manage resources in all namespaces", watchNamespaceEnvVar) | |
} |
d22a5a6
to
f833220
Compare
Co-authored-by: Markus Lehtonen <markus.lehtonen@intel.com>
e590d1f
to
c880bc7
Compare
Signed-off-by: Carlos Eduardo Arango Gutierrez <carangog@redhat.com> Update docs/get-started/quick-start.md Co-authored-by: Markus Lehtonen <markus.lehtonen@intel.com> Update docs/get-started/quick-start.md Co-authored-by: Markus Lehtonen <markus.lehtonen@intel.com>
269670f
to
b4fd7e3
Compare
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.
Looks ready to get in 👍
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ArangoGutierrez, marquiz The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Fixes #114