Skaffold doesn't track default namespace when not explicitly provided #6242
Labels
kind/bug
Something isn't working
priority/p0
Highest priority. We are actively looking at delivering it.
Expected behavior
Skaffold does normal logging, port forwarding, syncing, etc. when deploying to a default namespace (aka no namespace provided)
Actual behavior
If no namespace is provided, Skaffold does not track the default namespace. As a result, any component that relies on a
PodSelector
to retrieve its resources to operate on does not function. This seems to only apply tokustomize
andhelm
projects, notkubectl
.Information
v1.28.0
Steps to reproduce the behavior
Run
skaffold dev
in ourexamples/getting-started-kustomize
.More Info
#6170 moved the tracking of the deployed namespaces into the Deployer object. However, it inadvertently removed some pre-processing logic to retrieve the initial namespaces when creating the Deployer. Since the empty string ("") is interpreted as the "default" namespace when deploying to Kubernetes, this meant that all projects deploying to this namespace were not being considered for logging, port forwarding, or any other component that uses a podSelector to retrieve its resources.
The text was updated successfully, but these errors were encountered: