cloud-platform
cloud-platform copied to clipboard
Create conditional to use multi-cluster
Background
To mitigate one of our high risks we need to manage and maintain multiple clusters. This requires us to set a conditional at the cloud-platform-environments apply script that checks the business-unit and deploys to a certain cluster.
The decision to create a conditional is arbitary and could in fact be anything i.e. environment. I've chosen business-unit for this example as it allows the Cloud Platform team to create a simple proof of concept, using a made up unit.
Proposed user journey
- Create a cluster for the purpose of providing the PoC.
- Create a new "cluster" directory in the cloud-platform-environments repository
- Amend the cloud-platform-cli to create a namespace in that directory if the business-unit == cloud-platform.
We could either:
-
Use the current Ruby script;
-
Or re-write the apply script in Go (I believe this is already 75% complete)
-
and create simple logic to change clusters between directories. For example, live directory auths to live, new directory auths to new.
Questions / Assumptions
Definition of done
- [x] cluster is created
- [x] cli amended
- [x] ruby script re-written or amended
- [ ] readme has been updated
- [ ] user docs have been updated
- [ ] another team member has reviewed
- [ ] smoke tests are green
Reference
WIP PR: https://github.com/ministryofjustice/cloud-platform-cli/pull/198
Will continue to finish the kubectl part of testing which will cover re-write the apply script in Go
I'm going to close this issue. I feel we have the relevant structure to begin the multicluster phase of the Cloud platform.