Skip to content

fix: honor selected kube context and namespace overrides for deployments and cluster builds - #10194

Open
laurivosandi wants to merge 3 commits into
GoogleContainerTools:mainfrom
codemowers:fix/namespace-selected-kube-context
Open

laurivosandi wants to merge 3 commits into
GoogleContainerTools:mainfrom
codemowers:fix/namespace-selected-kube-context

Conversation

@laurivosandi

Copy link
Copy Markdown

Description

Use Skaffold’s kubectl CLI wrapper for namespace discovery in the run context and kubectl deployer. This ensures namespace lookups honor the selected Kubernetes context and kubeconfig.

Adds regression tests for context and kubeconfig selection, contexts without a namespace, and explicit namespace precedence.

User facing changes

Before: When selecting a different context or kubeconfig, Skaffold could resolve the namespace from kubectl’s current context instead.

After: Skaffold resolves the namespace from the selected context and kubeconfig. Explicit namespace overrides and configured default namespaces retain their existing precedence.

@laurivosandi
laurivosandi requested a review from a team as a code owner September 29, 2026 13:37
@laurivosandi laurivosandi changed the title fix: resolve namespace using selected kube context and config fix: honor selected kube context and namespace overrides for deployments and cluster builds Oct 9, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant