Skip to content
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

Merged
merged 1 commit into from
Mar 10, 2025

Conversation

andrewlee1089
Copy link
Contributor

Pull Request

What type of this PR

Examples of user facing changes:

  • Features
  • Bug fixes
  • Docs
  • Tests

Which issue(s) this PR fixes

Fixes #(issue-number)

@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Feb 26, 2025
@@ -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)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
klog.Errorf("custom vpc is not found - %v", err)
klog.Errorf("vpc %q is not found: %v", s.Spec.Vpc, err)

@coveralls
Copy link

coveralls commented Mar 4, 2025

Pull Request Test Coverage Report for Build 13764339336

Warning: 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

  • 0 of 5 (0.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.003%) to 22.031%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pkg/controller/namespace.go 0 5 0.0%
Totals Coverage Status
Change from base Build 13761744404: 0.003%
Covered Lines: 10263
Relevant Lines: 46585

💛 - Coveralls

@andrewlee1089
Copy link
Contributor Author

@zbb88888 Any update on this? Can this be merged?

@oilbeater
Copy link
Collaborator

The PR LGTM, @andrewlee1089 the DCO check failed, can you add signoff to your commit.

@andrewlee1089 andrewlee1089 force-pushed the alee/fix-namespace-issue branch from c045cae to b562f02 Compare March 10, 2025 12:11
… cause new namespaces to never get correct annotations.

Signed-off-by: Andrew Lee <alee@evroc.com>
@andrewlee1089 andrewlee1089 force-pushed the alee/fix-namespace-issue branch from b562f02 to ad3b23f Compare March 10, 2025 12:12
@andrewlee1089
Copy link
Contributor Author

@oilbeater - I've signed the DCO !

@oilbeater oilbeater merged commit c268109 into kubeovn:master Mar 10, 2025
67 checks passed
@oilbeater
Copy link
Collaborator

Thanks! @andrewlee1089

oilbeater pushed a commit that referenced this pull request Mar 13, 2025
…new namespaces to never get correct annotations. (#5031)

Signed-off-by: Andrew Lee <alee@evroc.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:XS This PR changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants