-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Default namespace option (--k8s-default-namespace) has no effect #2797
Comments
🤦♂️ after reviewing #2625 , I can see that the option is not honoured when invoking I will fix that. |
I was actually hoping to fix it myself! |
Even better, please do! It should be as simple as passing |
|
Then we will need to find another way. Maybe appending a default namespace
as a configuration to `KUBECONFIG`?
…On Wed, Jan 29, 2020, 17:11 Michael Beaumont ***@***.***> wrote:
kubectl seems to throw an error if the namespaces disagree so that won't
work. I guess the intended usage is to limit operations to a single NS, so
it makes sense to throw an error.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2797?email_source=notifications&email_token=AASA4JFZTRL6G4ON5U64T2DRAGTDPA5CNFSM4KNEYAG2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKHYVZQ#issuecomment-579832550>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AASA4JA52HOMMCVGFQRZ3YLRAGTDPANCNFSM4KNEYAGQ>
.
|
For further reference https://kubernetes.io/docs/tasks/access-application-cluster/configure-access-multiple-clusters/#set-the-kubeconfig-environment-variable Note that users may be already be setting it's value and that it may already contain a context and a default namespace (which should be overriden) |
Describe the bug
In spite of setting the
--k8s-default-namespace
option, the default namespace isn't applied to namespaced manifests without a specificnamespace
.Seems to be present in the
gitops-engine
branch as wellTo Reproduce
Steps to reproduce the behaviour:
flux
including the--k8s-default-namespace
option. E.g.:https://github.com/michaelbeaumont/flux_manifests/tree/master
Expected behavior
The pod should be deployed in the
test
namespace, instead:Additional context
The text was updated successfully, but these errors were encountered: