rabbitmq / OLM-Package-Repo

Script to generate OLM (Operator-LifeCycle-Manager) Bundles for RabbitMQ Kubernetes operators

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OLM-Package-Repo-For-Cluster-Operator

Scripts to generate OLM (Operator-LifeCycle-Manager) Bundles for our operators

This repo, will contains scripts to generate OLM Bundles starting from release.yaml files for our K8s operators to then be able to publish on OperatorHUB.

Guidelines to follow:

https://olm.operatorframework.io/docs/tasks/creating-operator-bundle/

How to create, publish and test an OLM Bundle:

https://devopstales.github.io/home/oml/

How to use the script

The script OLM-Package-Repo/generate_OLM/generate_OLM_cluster_operator/generate-olm-package.py will generate the OLM package needed to run the operator on respect the Operator Lifecycle management rule. <\br>

It can be used in this way:

python3 generate-olm-package.py ./manifests_crds/cluster-operator.yaml 1.14.0 ./../../OLM/rabbitmq-cluster-operator 
python3 generate-olm-package.py ./manifests_crds/manifests_crds/messaging-topology-operator-with-certmanager.yaml 1.14.0 ./../../OLM/rabbitmq-messaging-topology-operator 
python3 generate-olm-package.py ./manifests_crds/manifests_crds/single-active-consumer-operator-with-certmanager.yaml 1.14.0 ./../../OLM/rabbitmq-single-active-consumer-operator 

First parameter is the cluster-operator release file
The second parameter the version of the Bundle we are creating (Same version of the cluster operator)
Third parameter is the output folder where the bundle is generated

The script can be then executed by a cluster-operator git worlflow in order to automatize the process on every release.

About

Script to generate OLM (Operator-LifeCycle-Manager) Bundles for RabbitMQ Kubernetes operators

License:MIT License


Languages

Language:Python 83.4%Language:Shell 14.1%Language:Dockerfile 2.5%