Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of change
Each CAAS model's k8s resources (pods, services, etc) are now created in a namespace named after the model. Because we don't have a model manager worker yet to react to model add/remove, we create and delete the namespace inside the k8s client when an operator is created/deleted. This is a workaround until the necessary model worker can be written.
To provide the model name to the k8s broker tracker, we implement an existing TODO which is to add a bespoke caas agent facade. There's also a driveby fix to clean up the caas operator provisioner worker logic a bit.
QA steps
Run up a CAAS model and check that gitlab/mysql can be deployed and related, and that the expected namespace is used. Delete all model applications and check that the namespace is removed.