close
Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

RHOAS Service-Binding Operator

This operator creates and manages custom resources for RHOAS cloud services

Prerequesites

  • Java 11+
  • Maven
  • A service-api token from console.redhat.com
  • Access to a rhoas services instance.

Building and Running

TL;DR;

mvn clean install;
cd rhoas;
mvn quarkus:dev;

Building

The operator source is in the rhoas module. The openapi module generates an API based on the services-api openapi manifest. rhoas has a dependency on openapi and therefor the parent project should be installed with mvn clean install before the operator is run.

mvn clean install;

Running in dev mode

The operator uses quarkus and the java-operator-sdk.

You can start the operator in dev mode.

mvn quarkus:dev

Usage

Once the operator has come online it will load deployed crds and deploy crds based on our model classes if no deployed crds are found. You can verify the operator is working by creating a KafkaConnection custom resource. And example follows :

apiVersion: rhoas.redhat.com/v1alpha1
kind: KafkaConnection
metadata:
  name: rhosak-demo

spec:
  kafkaId: 1mk2CcqHByUJCg0sZxiGv8f53Pz