Documentation ¶
Index ¶
Constants ¶
View Source
const ( RouterCAConfigMap = "router-ca" ServiceCAConfigMap = "service-ca" )
View Source
const ( ManagedConfigNamespace = "openshift-config-managed" ControllerManagerAdditionalCAConfigMap = "controller-manager-additional-ca" )
Variables ¶
This section is empty.
Functions ¶
func Setup ¶
func Setup(cfg *operator.HostedClusterConfigOperatorConfig) error
Types ¶
type ManagedCAObserver ¶
type ManagedCAObserver struct { // Client is a client that allows access to the management cluster Client kubeclient.Interface // TargetClient is a Kube client for the target cluster TargetClient kubeclient.Interface // Namespace is the namespace where the control plane of the cluster // lives on the management server Namespace string // InitialCA is the initial CA for the controller manager InitialCA string // Log is the logger for this controller Log logr.Logger }
ManagedCAObserver watches 2 CA configmaps in the target cluster: - openshift-managed-config/router-ca - openshift-managed-config/service-ca It populates a configmap on the management cluster with their content. A separate controller uses that content to adjust the configmap for the Kube controller manager CA.
Click to show internal directories.
Click to hide internal directories.