Kong / kubernetes-testing-framework

Golang Integration Testing Framework For Kubernetes APIs and Controllers.
https://konghq.com
Apache License 2.0
36 stars 10 forks source link

Openshift Cluster Support #283

Open shaneutt opened 2 years ago

shaneutt commented 2 years ago

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

Subtasks

Acceptance Criteria

acmenezes commented 1 year ago

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.

shaneutt commented 1 year ago

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.

rainest commented 1 year ago

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.

shaneutt commented 1 year ago

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?