csidrivercontrollerservicecontroller

package
v0.0.0-...-201d816 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 25 Imported by: 24

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCSIDriverControllerServiceController

func NewCSIDriverControllerServiceController(
	name string,
	manifest []byte,
	recorder events.Recorder,
	operatorClient v1helpers.OperatorClientWithFinalizers,
	kubeClient kubernetes.Interface,
	deployInformer appsinformersv1.DeploymentInformer,
	configInformer configinformers.SharedInformerFactory,
	optionalInformers []factory.Informer,
	optionalDeploymentHooks ...dc.DeploymentHookFunc,
) factory.Controller

func WithCABundleDeploymentHook

func WithCABundleDeploymentHook(
	configMapNamespace string,
	configMapName string,
	configMapInformer corev1.ConfigMapInformer,
) dc.DeploymentHookFunc

func WithConfigMapHashAnnotationHook

func WithConfigMapHashAnnotationHook(
	namespace string,
	configMapName string,
	configMapInformer corev1.ConfigMapInformer,
) dc.DeploymentHookFunc

WithConfigMapHashAnnotationHook creates a deployment hook that annotates a Deployment with a config map's hash.

func WithControlPlaneTopologyHook

func WithControlPlaneTopologyHook(configInformer configinformers.SharedInformerFactory) dc.DeploymentHookFunc

WithControlPlaneTopologyHook modifies the nodeSelector of the deployment based on the control plane topology reported in Infrastructure.Status.ControlPlaneTopology. If running with an External control plane, the nodeSelector should not include master nodes.

func WithLeaderElectionReplacerHook

func WithLeaderElectionReplacerHook(defaults configv1.LeaderElection) dc.ManifestHookFunc

WithLeaderElectionReplacerHook modifies ${LEADER_ELECTION_*} parameters in a yaml file with OpenShift's recommended values.

func WithObservedProxyDeploymentHook

func WithObservedProxyDeploymentHook() dc.DeploymentHookFunc

WithObservedProxyDeploymentHook creates a deployment hook that injects into the deployment's containers the observed proxy config.

func WithPlaceholdersHook

func WithPlaceholdersHook(configInformer configinformers.SharedInformerFactory) dc.ManifestHookFunc

WithPlaceholdersHook is a manifest hook which replaces the variable with appropriate values set

func WithReplicasHook

func WithReplicasHook(configInformer configinformers.SharedInformerFactory) dc.DeploymentHookFunc

WithReplicasHook sets the deployment.Spec.Replicas field according to the ControlPlaneTopology mode. If the topology is set to 'HighlyAvailable' then the number of replicas will be two. Else it will be one. When node ports or hostNetwork are used, maxSurge=0 should be set in the Deployment RollingUpdate strategy to prevent the new pod from getting stuck waiting for a node with free ports.

func WithSecretHashAnnotationHook

func WithSecretHashAnnotationHook(
	namespace string,
	secretName string,
	secretInformer corev1.SecretInformer,
) dc.DeploymentHookFunc

WithSecretHashAnnotationHook creates a deployment hook that annotates a Deployment with a secret's hash.

func WithServingInfo

func WithServingInfo() dc.ManifestHookFunc

WithServingInfo is a manifest hook that replaces ${TLS_CIPHER_SUITES} and ${TLS_MIN_VERSION} placeholders with the observed configuration.

Types

This section is empty.

Jump to

Keyboard shortcuts

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