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 main namespace for only suffix realm #22

Open
merlos opened this issue Jan 31, 2024 · 0 comments
Open

Cannot create main namespace for only suffix realm #22

merlos opened this issue Jan 31, 2024 · 0 comments

Comments

@merlos
Copy link
Member

merlos commented Jan 31, 2024

Realms with only a suffix start with - (f.i., '-dev') . During the installation, the installer tries to create a namespace with the name "-" (f.i., '-dev'). However given the rules for creating a namespace this is not allowed.

This namespace is created for future use, such as identification of realms, or magasin workloads.

The conditions are restricted by label names RFC 1123 (kubernetes creates a label when a new namespace is created)
https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#dns-label-names

  • metadata.name: Invalid value: "_dev": a lowercase RFC 1123 label must consist of lower case alphanumeric characters or '-', and must start and end with an alphanumeric character (e.g. 'my-name', or '123-abc', regex used for validation is 'a-z0-9?')
  • metadata.labels: Invalid value: "dev": a valid label must be an empty string or consist of alphanumeric characters, '-', '' or '.', and must start and end with an alphanumeric character (e.g. 'MyValue', or 'my_value', or '12345', regex used for validation is '(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?')

Options:

  1. Do not allow the suffix only realms
  2. Add some kind of prefix in the main realm name such as "m--".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant