yahliu / meta-operator

operator for operators model

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Table of Contents generated with DocToc

Meta Operator

Overview

This is a meta operator for install the common service operator and instance.

Prerequisites

Common Service Onboarding

Getting Started

Cloning the repository

Checkout this Meta Operator repository

# git clone https://github.com/IBM/meta-operator.git
# cd meta-operator

Building the operator

Build the meta operator image and push it to a public registry, such as quay.io:

# make images

Installing

Run make install to install the operator. Check that the operator is running in the cluster, also check that the common service was deployed.

Following the expected result.

# kubectl get all -n meta-operator
NAME                                           READY   STATUS    RESTARTS   AGE
pod/meta-operator-786d699956-z7k4n   1/1     Running   0          21s

NAME                                      READY   UP-TO-DATE   AVAILABLE   AGE
deployment.apps/meta-operator   1/1     1            1           22s

NAME                                                 DESIRED   CURRENT   READY   AGE
replicaset.apps/meta-operator-786d699956   1         1         1       22s

Uninstalling

To uninstall all that was performed in the above step run make uninstall.

Troubleshooting

Use the following command to check the operator logs.

# kubectl logs deployment.apps/meta-operator -n meta-operator

Running Tests

End to end tests For more information see the writing e2e tests guide.

Development

When the API or CRD changed, run make code-dev re-generate the code.

About

operator for operators model

License:Apache License 2.0


Languages

Language:Go 85.6%Language:Shell 8.8%Language:Makefile 4.5%Language:Dockerfile 1.1%