Openshift Cluster Support
Problem Statement
Historically we've supported kind and GKE for cluster provisioning, but we haven't had an Openshift option for running tests in an Openshift environment.
The purpose of this task is to add something like CRC or SNO so that testing can be done against Openshift clusters (we will first need to decide which backend to use).
Relevant Links
- https://www.redhat.com/sysadmin/codeready-containers
- https://developers.redhat.com/blog/2019/09/05/red-hat-openshift-4-on-your-laptop-introducing-red-hat-codeready-containers
Subtasks
- [ ] #509
Acceptance Criteria
- [ ] in the Go library I can chose some kind of local openshift as a cluster type for environment creations (depending on which backend we select)
Hi @shaneutt , here is an alternative to consider: https://docs.openshift.com/container-platform/4.10/installing/installing_sno/install-sno-installing-sno.html
This is the single node OpenShift cluster that is fully featured as any multi-node cluster. Maybe a better option than CRC. Just adding the comment for consideration although CRC may be enough for your use case.
Thanks @acmenezes. I have updated the description to suggest both and indicate that we need to make a decision about what the best backend will be for us.
As an alternative to local clusters, we may want to consider automating our current cloud platform cluster setup/teardown with Terraform. https://github.com/llomgui/terraform-provider-openshift does not look official, unfortunately, but we should be able to invoke Terraform from KTF using https://github.com/hashicorp/terraform-cdk if we want to take that approach.
cc @astoycos you might find this one interesting after our BPFD conversation today. Though I've come to understand that simply being able to load an existing OpenShift cluster into the test suite may also suffice?