skaffold icon indicating copy to clipboard operation
skaffold copied to clipboard

"multiple deploy.kubectl.defaultNamespace values set" when depending on multiple configurations with different namespaces

Open jackwilsdon opened this issue 2 years ago • 1 comments

Expected behavior

Depending on two configurations with different namespaces does not produce a warning.

Actual behavior

Depending on two configurations with different namespaces produces the following warning:

WARN[0000] multiple deploy.kubectl.defaultNamespace values set, only last pipeline's value will be used  subtask=-1 task=DevLoop

The manifests are deployed to the correct namespaces, so the warning doesn't seem correct.

Information

  • Skaffold version: v2.6.0
  • Operating system: macOS Ventura 13.4.1
  • Installed via: skaffold.dev
  • Contents of skaffold.yaml:
    apiVersion: skaffold/v4beta5
    kind: Config
    requires:
      - path: project-a/skaffold.yaml
      - path: project-b/skaffold.yaml
    

Steps to reproduce the behavior

  1. git clone https://github.com/jackwilsdon/skaffold-kubectl-namespace-issue
  2. cd skaffold-kubectl-namespace-issue
  3. skaffold run

jackwilsdon avatar Jul 12 '23 14:07 jackwilsdon

It seems seeing this error message also this means that StatusMonitor does not work properly anymore!

AndreasBergmeier6176 avatar Jan 16 '25 13:01 AndreasBergmeier6176