kubernetes-testing-framework icon indicating copy to clipboard operation
kubernetes-testing-framework copied to clipboard

Openshift Cluster Support

Open shaneutt opened this issue 3 years ago • 4 comments

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)

shaneutt avatar Jun 06 '22 22:06 shaneutt

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.

acmenezes avatar Aug 09 '22 20:08 acmenezes

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.

shaneutt avatar Aug 09 '22 22:08 shaneutt

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.

rainest avatar Nov 09 '22 16:11 rainest

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?

shaneutt avatar May 25 '23 15:05 shaneutt