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

pass namespace to kubectl build to fix incluster bug #2747

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kuuji
Copy link
Contributor

@kuuji kuuji commented Oct 26, 2023

What issue type does this pull request address? (keep at least one, remove the others)
/kind bugfix

What does this pull request do? Which issues does it resolve? (use resolves #<issue_number> if possible)
resolves #2745

Please provide a short message that should be published in the DevSpace release notes
Fixes an issue where DevSpace, when ran incluster, would deploy kubectl manifest files in the wrong namespace even when -n is provided on the command line.

What else do we need to know?

I'm not setup to run the e2e for this yet but I did test the fix with kubectl (not yet with kustomize).
Since it's such a simple fix I figured I might as well open the PR to get some opinions while I do more testing.

@netlify
Copy link

netlify bot commented Oct 26, 2023

Deploy Preview for devspace-docs canceled.

Built without sensitive environment variables

Name Link
🔨 Latest commit 51a98e6
🔍 Latest deploy log https://app.netlify.com/sites/devspace-docs/deploys/653ab861e68434000845dbbf

Signed-off-by: Alexandre Garcia <alexandre.garcia@prodigygame.com>
Co-authored-by: Noel Chin <noel.chin@prodigygame.com>
@kuuji kuuji force-pushed the fix/kubectl-incluster-namespace branch from 15d03a4 to 51a98e6 Compare October 26, 2023 19:05
@lizardruss
Copy link
Collaborator

@kuuji Thanks for the PR! It's always great to see community contributions!

I approved the e2e test run, so you should see some feedback through the GitHub Actions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Odd namespace behaviour incluster for kubectl deploy
2 participants