Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 969 Bytes

File metadata and controls

23 lines (18 loc) · 969 Bytes

Kubeconfig controller

Overview

Kubeconfig controller generates a secret containing kubeconfig for the cluster. The kubeconfig is generated from the service account for operator. The kubeconfig is consumed by core CAPI controllers to link nodes and machines.

Behavior

stateDiagram-v2
    [*] --> IsCurrentPlatformSupported
    state IsCurrentPlatformSupported <<choice>>
    IsCurrentPlatformSupported --> NoOp: False
    IsCurrentPlatformSupported --> GetOperatorServiceAccount: True
    GetOperatorServiceAccount --> GetServiceAccountSecret
    GetServiceAccountSecret --> GenerateKubeconfigFromSecret
    GenerateKubeconfigFromSecret --> CreateKubeconfigSecret
    CreateKubeconfigSecret --> [*]
    NoOp --> [*]
Loading

If the current platform is not supported, the controller will not create any secret and allow "bring your own" scenarios. In cases where the platform is supported, the controller will create the secret containing kubeconfig.