How openshift/cluster-kube-apiserver-operator works
This repository implements the OpenShift Kubernetes API Server Operator: it observes cluster configuration, prepares and manages the API server’s static-pod deployment, and provides supporting certificate, connectivity, readiness, and recovery functions. The principal workflow is cluster configuration observation followed by configuration assembly and operator management of the API server. The README documents this high-level flow; source excerpts show command registration and selected controller behavior, but do not expose all runtime wiring, so unsupported internal links are omitted.
Main entry points: main.go Operator binary · starter.go Operator runtime · observe_config_controller.go Configuration observer · connection_checker.go Endpoint checks
Components 21
Commands
- Operator binary
cmd/cluster-kube-apiserver-operator/main.go - Operator command
pkg/cmd/operator/cmd.go - Bootstrap renderer
pkg/cmd/render/render.go - Resource graph
pkg/cmd/resourcegraph/resourcegraph.go
Configuration
- Configuration observer
pkg/operator/configobservation/configobservercontroller/observe_config_controller.go - Authentication observation
pkg/operator/configobservation/auth/auth_serviceaccountissuer.go - Webhook observation
pkg/operator/configobservation/auth/webhook_authenticator.go - etcd endpoint observation
pkg/operator/configobservation/etcdendpoints/observe_etcd_endpoints.go - Target configuration
pkg/operator/targetconfigcontroller/targetconfigcontroller.go
Operator management
- Operator runtime
pkg/operator/starter.go - Certificate rotation
pkg/operator/certrotationcontroller/certrotationcontroller.go - Service-account signer
pkg/operator/boundsatokensignercontroller/controller.go - Service-account issuer
pkg/operator/serviceaccountissuercontroller/serviceaccountissuer_controller.go - Resource sync
pkg/operator/resourcesynccontroller/resourcesynccontroller.go - API server recovery
pkg/recovery/apiserver.go
Operations support
- Endpoint checks
pkg/cmd/checkendpoints/controller/connection_checker.go - Connectivity checks
pkg/operator/connectivitycheckcontroller/connectivity_check_controller.go - Check update queue
pkg/cmd/checkendpoints/controller/updates_manager.go - Startup readiness
pkg/operator/startupmonitorreadiness/readiness_checks.go - Encryption status
pkg/operator/encryptionstatusprovider/provider.go
Other components
- Cluster Version Operator
Connections 19
- Cluster Version Operator → Operator binary: installs
README.md - Operator binary → Operator command: registers
cmd/cluster-kube-apiserver-operator/main.go - Operator binary → Bootstrap renderer: registers
cmd/cluster-kube-apiserver-operator/main.go - Operator binary → Resource graph: registers
cmd/cluster-kube-apiserver-operator/main.go - Operator binary → Operator runtime: invokes
cmd/cluster-kube-apiserver-operator/main.go - Configuration observer → Authentication observation: includes observer
pkg/operator/configobservation/configobservercontroller/observe_config_controller.go - Configuration observer → Webhook observation: includes observer
pkg/operator/configobservation/configobservercontroller/observe_config_controller.go - Configuration observer → etcd endpoint observation: includes observer
pkg/operator/configobservation/configobservercontroller/observe_config_controller.go - Configuration observer → Target configuration: informs configuration
- Operator runtime → Certificate rotation: runs controller
- Operator runtime → Service-account signer: runs controller
- Operator runtime → Service-account issuer: runs controller
- Operator runtime → Resource sync: runs controller
- Operator runtime → API server recovery: uses recovery
- Operator binary → Endpoint checks: registers command
cmd/cluster-kube-apiserver-operator/main.go - Endpoint checks → Check update queue: uses queue
- Operator runtime → Connectivity checks: runs controller
- Operator binary → Startup readiness: configures readiness
cmd/cluster-kube-apiserver-operator/main.go - Operator binary → Encryption status: configures provider
cmd/cluster-kube-apiserver-operator/main.go