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

Add some helpers for env identification #4

Open
desaintmartin opened this issue Oct 5, 2021 · 0 comments
Open

Add some helpers for env identification #4

desaintmartin opened this issue Oct 5, 2021 · 0 comments

Comments

@desaintmartin
Copy link
Member

  • define environment types: an Enum or sth else. (to unify and to avoid using strings "staging"; "prod" ...
  • Return en env type of a namespace (from labels probably)
  • Tell if a namespace is prod/staging (to avoid having sometimes if "prod" in namespace: sometimes if "-prod-" in namespace:) => If we make a change we make it in one place.
  • Given a resource name, return the env type it belongs to (maybe add the env as a label)
  • environmentkind in helmfile.yaml (used to construct the appropriate priorityclass, dev_mail ...)
  • environmentkind in cluster-manager (used by mayo, and other tools)
  • some teams (cayzn) define their own EnvironmentKind Enum, how/what should we do to keep being sync?)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant