gitpod-io / gitpod

The developer platform for on-demand cloud development environments to create software faster and more securely.
https://www.gitpod.io
GNU Affero General Public License v3.0
12.86k stars 1.24k forks source link

installer: add a test to ensure that CSI is working as expected prior to installing Gitpod #10614

Open jenting opened 2 years ago

jenting commented 2 years ago

Is your feature request related to a problem? Please describe

Add a test to ensure that the CSI is working as expected prior to installing Gitpod

Describe the behaviour you'd like

Have a pre-installed/preflight test to ensure that the CSI is working as expected prior to installing Gitpod The required CSI criteria are similar to #10201, here are the test criteria:

Describe alternatives you've considered

N/A

Additional context

10201

7901

jenting commented 2 years ago

The PVC feature currently is an experimental/beta feature in the SaaS solution. Probably the self-hosted customer would never enable this PVC feature in the end until all our code by default ships to use PVC in the end.

I'm considering that this issue could be implemented after we ship to use PVC by default. Or we could check the CSI is working as expected once the user's installer config configures the storageClass and snapshotClass.

WDYT? @kylos101

kylos101 commented 2 years ago

Hi @jenting ,

May I ask a favor? Could you brainstorm this with @Pothulapati to see what pattern might make sense to do cluster validation for CSI? I ask because I know the installer does some prechecks, but so does KOTS/replicated, and I'm not sure what makes the most sense. For example, can we do in one spot (installer), and have it work in both (kots too), or does it need to be coded separately for both?

Either way, yes, I think this could be implemented later, closer to when we are thinking about making PVC default. To be honest though, I think that is far away (probably 3-6 months). For example, we're not sure how fast CSI is in AWS or Azure, and would need months to update those drivers (potentially) if they are slow.

Pothulapati commented 2 years ago

👋🏼

Just had a closer look at the issue. Recently, Any kind of tests that we want to surface to the user have been buil in kots, as they are surfaced in a much more user friendly way! We already have a check for the default storage class.

The tests that are added in the installer should also be surfaced through the kots install but not in a user friendly way, and the user has to figure out on their own on what went wrong.

Either way, yes, I think this could be implemented later, closer to when we are thinking about making PVC default

Totally agree, and in kots we also have a way to warn users. So, We could even start warning users ahead before it becomes the default.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.