Giter Club home page Giter Club logo

operatorkit's Introduction

CircleCI

operatorkit

Package operatorkit implements an opinionated framework for developing Kubernetes operators. It emerged as we extracted common functionality from a number of the operators we developed at Giant Swarm. The goal of this library is to provide a common structure for operator projects and to encapsulate best practices we learned while running operators in production.

Features

  • CRD primitives to reliably create, watch and delete custom resources, as well as any Kubernetes runtime object.
  • Managing finalizers on reconciled objects, making sure the code is executed at least once for each create/delete/update event.
  • Guarantees to perform only one successful deletion event reconciliation to avoid unnecessary, possibly expensive interactions with third party systems.
  • A deterministic informer implementation that guarantees the expected behaviour of configured resync periods and rate waits.
  • Convenient client library helpers for simpler client creation.
  • Resource wrapping to gain ability of composing resources like middlewares.
  • Control flow primitives that allow cancellation and repetition of resource implementations.
  • Independent packages. It is possible to use only certain parts of the library without being bound to all primitives it provides.
  • Ability to change behaviour that is often specific to an organization like logging and error handling.
  • Minimal set of dependencies.

Docs

Current Scope

The project is split into independent packages providing complementary functionality, making it easier to create production grade Kubernetes operators.

  • client: provides a unified way of creating Kubernetes clients required by other packages.
  • informer: provides well defined watching functionality for virtually any Kubernetes resource. The informer is deterministic, meaning it does not dispatch events twice after the resync period, which saves some cycles. It also features rate limiting of the event dispatching. It also provides functionality for decoding custom objects, reducing error prone boilerplate code.
  • controller: provides a framework aiming to help writing reliable, robust controllers performing reconciliation loops. The heart of the controller is a Resource interface. The reconciliation primitive allows splitting the reconciliation into smaller parts. Controller manages finalizers on reconciled objects, making sure all resources are executed at least once during the deletion.

Projects using operatorkit

Contact

Contributing & Reporting Bugs

See CONTRIBUTING for details on submitting patches, the contribution workflow as well as reporting bugs.

License

operatorkit is under the Apache 2.0 license. See the LICENSE file for details.

operatorkit's People

Contributors

xh3b4sd avatar kopiczko avatar rossf7 avatar marcelmue avatar josephsalisbury avatar tuommaki avatar asymmetric avatar oponder avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.