Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IngressRoute: add an option to disable cross-namespace routing #7595

Merged
merged 12 commits into from Dec 10, 2020

Conversation

rtribotte
Copy link
Member

@rtribotte rtribotte commented Nov 26, 2020

What does this PR do?

This PR adds the allowCrossNamespace option on the Kubernetes provider configuration to allow/disallow cross-namespace routing.
The allowCrossNamespace is defaulted to true.
When set to false it's not possible for an IngressRoute to reference a service in another namespace than its namespace.

Motivation

fixes #7353

More

  • Added/updated tests
  • Added/updated documentation

Additional Notes

Co-authored-by: Jean-Baptiste Doumenjou 925513+jbdoumenjou@users.noreply.github.com

docs/content/providers/kubernetes-crd.md Show resolved Hide resolved
pkg/provider/kubernetes/crd/kubernetes.go Outdated Show resolved Hide resolved
@jspdown
Copy link
Contributor

jspdown commented Nov 27, 2020

@jbdoumenjou, @rtribotte Could you add a new integration test?

Copy link
Collaborator

@SantoDE SantoDE left a comment

Choose a reason for hiding this comment

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

just some minor stuff :)

pkg/provider/kubernetes/crd/kubernetes_http.go Outdated Show resolved Hide resolved
pkg/provider/kubernetes/crd/kubernetes_test.go Outdated Show resolved Hide resolved
pkg/provider/kubernetes/crd/kubernetes_test.go Outdated Show resolved Hide resolved
pkg/provider/kubernetes/crd/kubernetes_udp.go Outdated Show resolved Hide resolved
docs/content/providers/kubernetes-crd.md Outdated Show resolved Hide resolved
pkg/provider/kubernetes/crd/client.go Outdated Show resolved Hide resolved
Copy link
Member

@jbdoumenjou jbdoumenjou 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
Contributor

@jspdown jspdown 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
Member

@kevinpollet kevinpollet 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
Member

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
v2
Done
Development

Successfully merging this pull request may close these issues.

None yet

7 participants