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

Cannot create mappings with same name in different namespaces #2226

Closed
concaf opened this issue Jan 23, 2020 · 0 comments · Fixed by #2230
Closed

Cannot create mappings with same name in different namespaces #2226

concaf opened this issue Jan 23, 2020 · 0 comments · Fixed by #2230
Assignees
Labels
t:bug Something isn't working
Milestone

Comments

@concaf
Copy link
Contributor

concaf commented Jan 23, 2020

Describe the bug
Ambassador does not allow 2 mappings with the same name with different/same config in different namespaces. An error pops up saying -

CONFIGURATION ERRORS
httpbin.ingress2.1: <Mapping httpbin.ingress2.1> defines Mapping httpbin, which is already defined by httpbin.ingress1.1

To Reproduce
Steps to reproduce the behavior:

  1. Create 2 mappings with the same name (but not necessarily same config) in different namespaces. Example:

Create namespaces:

kubectl create ns ingress1
kubectl create ns ingress2

and then create the following mappings:

apiVersion: getambassador.io/v2
kind: Mapping
metadata:
  name: httpbin
  namespace: ingress2
spec:
  host_rewrite: hb.com
  prefix: /hb2/
  service: http://hb.com

and

apiVersion: getambassador.io/v2
kind: Mapping
metadata:
  name: httpbin
  namespace: ingress1
spec:
  host_rewrite: httpbin.org
  prefix: /hb/
  service: http://httpbin.org                                                                                                                                                                                                                                 

Expected behavior
Both mappings should work fine

Versions (please complete the following information):

  • Ambassador: 1.0.0 and master and since the beginning of time??
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
t:bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants