kube-controller-manager component configs
Go to file
Patrick Ohly 0b98b0a02b logs: make LoggingConfiguration an unversioned API
Making the LoggingConfiguration part of the versioned component-base/config API
had the theoretic advantage that components could have offered different
configuration APIs with experimental features limited to alpha versions (for
example, sanitization offered only in a v1alpha1.KubeletConfiguration). Some
components could have decided to only use stable logging options.

In practice, this wasn't done. Furthermore, we don't want different components
to make different choices regarding which logging features they offer to
users. It should always be the same everywhere, for the sake of consistency.

This can be achieved with a saner Go API by dropping the distinction between
internal and external LoggingConfiguration types. Different stability levels of
indidividual fields have to be covered by documentation (done) and potentially
feature gates (not currently done).

Advantages:

- everything related to logging is under component-base/logs;
  previously this was scattered across different packages and
  different files under "logs" (why some code was in logs/config.go
  vs. logs/options.go vs. logs/logs.go always confused me again
  and again when coming back to the code):

  - long-term config and command line API are clearly separated
    into the "api" package underneath that

  - logs/logs.go itself only deals with legacy global flags and
    logging configuration

- removal of separate Go APIs like logs.BindLoggingFlags and
  logs.Options

- LogRegistry becomes an implementation detail, with less code
  and less exported functionality (only registration needs to
  be exported, querying is internal)

Kubernetes-commit: 1aceac797d404b4ac3b3d02fe43d495d1f645aba
2021-10-07 16:38:21 +02:00
.github delete all duplicate empty blanks 2019-02-22 09:43:51 +08:00
config refactor: remove deprecated flags 2022-04-22 16:48:16 +08:00
CONTRIBUTING.md Update deprecated links 2019-02-04 13:28:31 -05:00
LICENSE [kube-controller-manager] create package to hold kube-controller-manager component api 2018-09-04 19:02:08 +08:00
OWNERS OWNERS cleanup - Jan 2021 Week 1 2022-01-03 10:59:47 -05:00
README.md staging: add dummy commit to trigger gomod update (#106794) 2021-12-03 10:36:37 +00:00
SECURITY_CONTACTS Update SECURITY_CONTACTS with current PSC 2019-05-29 15:22:35 +05:30
code-of-conduct.md [kube-controller-manager] create package to hold kube-controller-manager component api 2018-09-04 19:02:08 +08:00
doc.go Make package paths referenced by import boss valid 2021-09-28 13:06:39 -04:00
go.mod logs: make LoggingConfiguration an unversioned API 2021-10-07 16:38:21 +02:00
go.sum logs: make LoggingConfiguration an unversioned API 2021-10-07 16:38:21 +02:00

README.md

Kube-controller-manager

Purpose

This library contains code to expose kube-controller-manager API.

Compatibility

There are NO compatibility guarantees for this repository, yet. It is in direct support of Kubernetes, so branches will track Kubernetes and be compatible with that repo. As we more cleanly separate the layers, we will review the compatibility guarantee. We have a goal to make this easier to use in the future.

Where does it come from?

kube-controller-manager is synced from https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/kube-controller-manager. Code changes are made in that location, merged into k8s.io/kubernetes and later synced here.

Things you should NOT do

  1. Directly modify any files under pkg in this repo. Those are driven from k8s.io/kubernetes/staging/src/k8s.io/kube-controller-manager.
  2. Expect compatibility. This repo is changing quickly in direct support of Kubernetes and the kube-controller-manager API.