Skip to content

Fix docs about default namespaces.#1961

Merged
traefiker merged 1 commit intotraefik:masterfrom
timoreimann:k8s-fix-namespaces-docs
Aug 18, 2017
Merged

Fix docs about default namespaces.#1961
traefiker merged 1 commit intotraefik:masterfrom
timoreimann:k8s-fix-namespaces-docs

Conversation

@timoreimann
Copy link
Copy Markdown
Contributor

It's not the default namespace that's watched if nothing is specified, but all namespaces.

Proof: Our Namespaces type is a string slice which we use in the Kubernetes provider, and we accept all Ingresses if the slice is empty.

An alternative approach to fixing this would be to really make the default namespace the default. I don't think that's a good solution though because we probably want users to be able to watch all namespaces if they like to without complete enumeration. In fact, I ran across the doc/code divergence when somebody on Slack asked if it was possible to watch all namespaces, which I was about to deny until I digged into the code.

@containous/kubernetes PTAL.

@timoreimann timoreimann added this to the 1.4 milestone Aug 16, 2017
@timoreimann timoreimann changed the title [kubernetes] Fix docs about default namespaces. Fix docs about default namespaces. Aug 16, 2017
@ldez ldez added the size/S label Aug 16, 2017
Copy link
Copy Markdown
Contributor

@ldez ldez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Copy Markdown
Contributor

@nmengin nmengin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Copy Markdown
Contributor

@errm errm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

It's not the "default" namespace that's watched if nothing is specified,
but "all namespaces".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants