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

Config to define mapping between k8s namespace and service registry namespace #17

Open
arnatal opened this issue Oct 31, 2020 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@arnatal
Copy link
Member

arnatal commented Oct 31, 2020

Currently, the Operator takes the name of the namespace in k8s and uses it as the namespace for the service registry. It might be interesting to have a configuration option that would allow to specify which k8s namespace maps to which service registry namespace.

@arnatal arnatal added the enhancement New feature or request label Oct 31, 2020
@asimpleidea
Copy link
Member

I had a stub about this some time ago but haven't implement it yet. It was based on overrides:

  • if you annotate a namespace/service/whatever with operator.cnwan.io/name: another-name, the operator will override its name
  • same thing for operator.cnwan.io/region: eu for regions for those that support it

And so on.

The hardest part is probably going to be deletion of the resource or removal of the annotation, which will probably involve the creation of smarter controllers.

@arnatal
Copy link
Member Author

arnatal commented Nov 3, 2020

Ah I see what you mean. What I had in mind was more along the lines of proving the name mapping as part of the Operator YAML settings. Using settings.yaml might be easier to implement/configure but your proposal seems more scalable, so I'm not sure what's best.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants