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

fix: unspecified namespace failure for k8s resources #768

Merged
merged 1 commit into from
Feb 20, 2024

Conversation

liu-hm19
Copy link
Contributor

What type of PR is this?

/kind bug

What this PR does / why we need it:

This PR fixes the unspecified namespace failure for K8s resources. Kusion will now first validate the intent resource id and patch the default namespace for Kubernetes namespaced resources without specified namespace field.

Which issue(s) this PR fixes:

Fixes #411

Special notes for your reviewer:

Does this PR introduce a user-facing change?


Additional documentation e.g., design docs, usage docs, etc.:


@coveralls
Copy link

Pull Request Test Coverage Report for Build 7692306822

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.06%) to 76.983%

Totals Coverage Status
Change from base Build 7654719634: 0.06%
Covered Lines: 8766
Relevant Lines: 11387

💛 - Coveralls

@adohe adohe changed the title fix: fix unspecified namespace failure for k8s resources fix: unspecified namespace failure for k8s resources Feb 20, 2024
Copy link
Contributor

@adohe adohe left a comment

Choose a reason for hiding this comment

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

/lgtm

@adohe adohe merged commit 07e76d4 into KusionStack:main Feb 20, 2024
8 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Feb 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bugfix: Apply failed when k8s resource namespace is not explicitly specified
3 participants