meta-operator

module
v0.0.0-...-b2b7983 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2020 License: Apache-2.0

README

Table of Contents generated with DocToc

Meta Operator

Overview

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

Prerequisites

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 image
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.

Directories

Path Synopsis
cmd
pkg
apis/operator
Package operator contains operators API versions.
Package operator contains operators API versions.
apis/operator/v1alpha1
Package v1alpha1 contains API Schema definitions for the operators v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=operator.ibm.com Package v1alpha1 contains API Schema definitions for the operators v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=operator.ibm.com
Package v1alpha1 contains API Schema definitions for the operators v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=operator.ibm.com Package v1alpha1 contains API Schema definitions for the operators v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=operator.ibm.com
test

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL