itsrandomoperator

module
v0.0.0-...-c9060ba Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2019 License: Apache-2.0

README

Random Paragraph Operator

A sample Kubernetes operator that demonstrates how to build an operator with the help of Kubebuiler.

The operator is for a random paragraph service and it will essentially create a service and pods:

overview

You can follow the implementation in steps using this sequence of branches:

  1. step-project-setrup
  2. step-crd
  3. step-watch
  4. step-reconcile
  5. step-status
  6. step-events
  7. step-deployment
  8. step-leader
Omissions

There are a few areas missing from this sample. Notably:

  • CI
  • Probes
  • Metrics
  • Testing
  • Webhooks

In the future these may be rectified to give a more complete sample.

Directories

Path Synopsis
cmd
manager command
pkg
apis
Package apis contains Kubernetes API groups.
Package apis contains Kubernetes API groups.
apis/random
Package random contains random API versions
Package random contains random API versions
apis/random/v1alpha1
Package v1alpha1 contains API Schema definitions for the random v1alpha1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/richardcase/itsrandomoperator/pkg/apis/random +k8s:defaulter-gen=TypeMeta +groupName=random.acme.com
Package v1alpha1 contains API Schema definitions for the random v1alpha1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/richardcase/itsrandomoperator/pkg/apis/random +k8s:defaulter-gen=TypeMeta +groupName=random.acme.com

Jump to

Keyboard shortcuts

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