podset-operator

command module
v0.0.0-...-00c0edb Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

README

podset-operator

Welcome to the PodSet operator exercise!

In order to learn fundamentals of operator development, your goal is to follow the included tutorial to create an operator for a custom resource called PodSet.

Features

The PodSet resource is similar to the Kubernetes ReplicaSet, but without so many features to worry about.

Users will create a PodSet resource and specify a size, denoting how many pods they want running in their set of pods. The controller you write will need to perform the following each time the Reconcile function runs:

  1. figure out how many matching pods already exist
  2. compare that to the desired number of pods, as specified in PodSet.Spec
  3. add or remove pods as needed

For the purposes of this exercise, it doesn't matter what container image runs in the pods.

Tutorial

Access the tutorial to get started. As needed, you can reference the Go code in this repository, but you are encouraged to start fresh and follow the tutorial step-by-step to build your own.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

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

Jump to

Keyboard shortcuts

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