cloud-platform icon indicating copy to clipboard operation
cloud-platform copied to clipboard

Create conditional to use multi-cluster

Open jasonBirchall opened this issue 2 years ago • 1 comments

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

How to write good user stories

jasonBirchall avatar Aug 08 '22 09:08 jasonBirchall

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

poornima-krishnasamy avatar Aug 08 '22 17:08 poornima-krishnasamy

I'm going to close this issue. I feel we have the relevant structure to begin the multicluster phase of the Cloud platform.

jasonBirchall avatar Sep 14 '22 15:09 jasonBirchall