operator-sample-go

This project contains Kubernetes operator samples that demonstrate best practices how to develop operators with Go and the Operator SDK.

Setup

The project contains a custom application controller, a database controller simulating an external resource and a sample microservice. The easiest way to get started is to run the application controller only and refer to the database resource definition and the built microservice image on Docker.io.

Follow these instructions to run the application controller.

See the readme documents for all components:

Current Capabilities

Capabilities to be added

  • Deployment/bundling
  • Setup of RBAC
  • Life cycle manager
  • Versioning
  • Webhooks
  • Change checks via hash
  • Metrics
  • Creation of database schemas
  • Scope: namespace vs global
  • Phase 3 – 5
  • Testing
  • Leader strategy
  • Creations of database schemas

Go Development Techniques to be documented

  • IDE usage and tips
  • Debugging
  • Where to find documentation
  • Imports and packages
  • Pointers
  • Constants

Blogs

GitHub

View Github