-
Notifications
You must be signed in to change notification settings - Fork 453
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
Potential fix to #5028 #5031
Potential fix to #5028 #5031
Conversation
pkg/controller/namespace.go
Outdated
@@ -139,7 +139,11 @@ func (c *Controller) handleAddNamespace(key string) error { | |||
// check if subnet is in custom vpc with configured defaultSubnet, then annotate the namespace with this subnet | |||
if s.Spec.Vpc != "" && s.Spec.Vpc != c.config.ClusterRouter { | |||
vpc, err := c.vpcsLister.Get(s.Spec.Vpc) | |||
if err != nil { | |||
if err == errors.IsNotFound(err) { | |||
klog.Errorf("custom vpc is not found - %v", err) |
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.
klog.Errorf("custom vpc is not found - %v", err) | |
klog.Errorf("vpc %q is not found: %v", s.Spec.Vpc, err) |
Pull Request Test Coverage Report for Build 13764339336Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
@zbb88888 Any update on this? Can this be merged? |
The PR LGTM, @andrewlee1089 the DCO check failed, can you add signoff to your commit. |
c045cae
to
b562f02
Compare
… cause new namespaces to never get correct annotations. Signed-off-by: Andrew Lee <alee@evroc.com>
b562f02
to
ad3b23f
Compare
@oilbeater - I've signed the DCO ! |
Thanks! @andrewlee1089 |
…new namespaces to never get correct annotations. (#5031) Signed-off-by: Andrew Lee <alee@evroc.com>
Pull Request
What type of this PR
Examples of user facing changes:
Which issue(s) this PR fixes
Fixes #(issue-number)