Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 1.48 KB

File metadata and controls

33 lines (22 loc) · 1.48 KB

Tutorial: ComponentConfig

Nearly every project that is built for Kubernetes will eventually need to support passing in additional configurations into the controller. These could be to enable better logging, turn on/off specific feature gates, set the sync period, or a myriad of other controls. Previously this was commonly done using cli flags that your main.go would parse to make them accessible within your program. While this works it's not a future forward design and the Kubernetes community has been migrating the core components away from this and toward using versioned config files, referred to as "component configs".

The rest of this tutorial will show you how to configure your kubebuilder project with the a component config type then moves on to implementing a custom type so that you can extend this capability.

Following Along vs Jumping Ahead

Note that most of this tutorial is generated from literate Go files that form a runnable project, and live in the book source directory: docs/book/src/component-config-tutorial/testdata/project.

Resources