dummy-operator

command module
v0.0.0-...-d26e7b2 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

README

dummy-operator

A dummy Kubernetes operator

Install and deploy

You can install the operator in your local or cloud cluster by following the simple steps from below:

  • Clone this repository to your local environment:
$ git clone https://github.com/piyush1146115/dummy-operator.git
  • Change your current directory to the dummy-operator
$ cd dummy-operator
  • Install the dummy CRD
$ make install
  • Deploy the dummy-operator to your cluster
$ make deploy IMG=piyush1146115/dummy-operator:latest

If all of the above steps were successful, you should see the dummy-operator running in your kubernetes cluster.

Usage

Create a dummy object in your cluster by applying the following manifest:

apiVersion: interview.com/v1alpha1
kind: Dummy
metadata:
  name: dummy1
  namespace: default
spec:
  message: "I'm just a dummy"

You can also apply the manifest by applying the manifest from /dummy-operator/config/samples/dummy.yaml

To get the current status of dummy objects in your default namespace:

$ kubectl get dummy -n default

NAME     SPECECHO           PODSTATUS
dummy1   I'm just a dummy   Running

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
api
v1alpha1
Package v1alpha1 contains API Schema definitions for the v1alpha1 API group +kubebuilder:object:generate=true +groupName=interview.com
Package v1alpha1 contains API Schema definitions for the v1alpha1 API group +kubebuilder:object:generate=true +groupName=interview.com

Jump to

Keyboard shortcuts

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