cmca

package
v0.0.0-...-949eaf4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

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

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.

func (*ManagedCAObserver) Reconcile

func (r *ManagedCAObserver) Reconcile(_ context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile periodically watches for changes in the CA configmaps and updates the kube-controller-manager-ca configmap in the management cluster with their content.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL