Agent: Add a unique label to the namespace created for the workspace
MR: Pending
Description
From customer feedback
I was hoping to work around the namespacing issue by using a
MutatingWebhookConfiguration
, but theNamespace
resource has no distinguishing labels or annotations which would require me to regex-match the name which is a dirty hack to say the least...
There are multiple ways to resolve this. To retain most control over what labels and annotations get added to the created namespace, we should look into how we can move the logic of creating the namespace away from the agent and move it to Rails like we have for other resources - Deployment, Service, PVC, etc.
Other option would be to hardcode the labels and annotations in the agent that needs to be added to every new namespace that is created.
Acceptance Criteria
-
[Describe what must be achieved to complete this issue.] -
[Describe another requirement needed to complete this issue.] -
[Add additional acceptance criteria as needed.]
Technical Requirements
TODO: Fill out or delete [If applicable, please list out any technical requirements for this feature/enhancement.]
Design Requirements
TODO: Fill out or delete [If applicable, please provide a link to the design specifications for this feature/enhancement.]
Impact Assessment
TODO: Fill out or delete [Please describe the impact this feature/enhancement will have on the user experience and/or the product as a whole.]
User Story
TODO: Fill out or delete [Provide a user story to illustrate the use case for this feature/enhancement. Include examples to help communicate the intended functionality.]