Quickly spawns an OCP cluster using OpenShift Local for use on Github Actions.
This will work on the free tier lowest resource runners at the moment with additional runner support added later if needed.
Read more about Github Actions runners here.
If you are looking to quickly spawn Kubernetes in your Action runner, try quick-k8s.
- This does not run correctly on
ubuntu-20.04
runners due to the version oflibvirt
available in the mirrors isn't the minimum version required by OpenShift Local.
Basic Usage:
You will need to supply your OCP Pull Secret as a Github Actions Secret. Your pull secret can be acquired from here. Click on "Download Pull Secret" and copy the contents into your secret.
steps:
- name: Set up Quick-OCP
uses: palmsoftware/[email protected]
with:
ocpPullSecret: $OCP_PULL_SECRET
env:
OCP_PULL_SECRET: ${{ secrets.OCP_PULL_SECRET }}
https://developers.redhat.com/products/openshift-local/overview
This is development only environment that is provided by Red Hat that will allow you do some quick testing in a full OpenShift environment.
- install-oc-tools.sh was a script copied from install-oc-tools and slightly modified for
aarch64
.
You can control which OpenShift version is deployed by setting the desiredOCPVersion
input variable. For example:
with:
desiredOCPVersion: 4.18
- The default is
latest
, which will use the most recent supported version. If you leavedesiredOCPVersion
blank, you will get the latest version. - Supported values are
4.18
,4.19
, andlatest
.
For more details, see the action.yml and workflow examples.