Kubernetes: GitLab created namespaces should be labeled
Problem to solve
It is hard to know which namespaces were created by GitLab.
Kubernetes administrator sees a list of namespaces - can't really tell which namespaces were create by GitLab. e.g.
$ kubectl get namespaces NAME STATUS AGE default Active 9d elixir-project-12345 Active 2d22h istio-system Active 9d knative-build Active 9d knative-eventing Active 9d knative-monitoring Active 9d knative-serving Active 9d knative-sources Active 9d kube-public Active 9d kube-system Active 9d minimal-ruby-app-12324 Active 9d test-namespace Active 2d22h
Devops Engineer, Systems Administrator
namespace created by GitLab with a fixed label:
Nice to have would be to annotate with the project as well:
app.gitlab.org/project: <project URL>.
Permissions and Security
What does success look like, and how can we measure that?
Administrator can run
kubectl get ns -l <label> to get all the gitlab deployed namespaces in one command