Workshop Operator

Overview

This is an Kubernetes Operator to install the infrastructure for running workshops on OpenShift provided by RHPDS.

Important

This operator has been tested on OpenShift Container Platform 4.x with N preconfigured users (user1, user2, …​, userN).

Deploy the Operator

Important

Please use an OpenShift user with cluster-admin privileges

Run it from your local environment

Perform the following tasks:

oc new-project workshop-infra
make install
make run ENABLE_WEBHOOKS=false

Deploy it on OpenShift

Perform the following tasks:

oc new-project workshop-infra
oc apply -f https://raw.githubusercontent.com/mcouliba/workshop-operator/1.0/config/deploy/workshop_operator_deployment.yaml

Install the Workshop Infrastructure

The Workshop Infrastructure is deployed by creating a Custom Resource based on the WorkShop Custom Resource Definition. There is examples of custom resources (CR) in crds

For instance, to deploy the Workshop Infrastruture for the Cloud-Native Workshop, please execute the following command:

oc apply -n workshop-infra -f config/samples/workshop_v1_cloud_native_workshop.yaml

Development

Build and Push the Operator Image

make docker-build IMG=quay.io/mcouliba/workshop-operator
make docker-push IMG=quay.io/mcouliba/workshop-operator