csidrivercontrollerservicecontroller

package
v0.0.0-...-53cd1fa Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 27 Imported by: 22

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 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(nodeLister corev1listers.NodeLister) dc.DeploymentHookFunc

WithReplicasHook sets the deployment.Spec.Replicas field according to the number of available nodes. If the number of available nodes is bigger than one, then the number of replicas will be two. The number of nodes is determined by the node selector specified in the field deployment.Spec.Templates.NodeSelector. 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