setup

package
v2.37.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2026 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartManager

func StartManager(
	scheme *runtime.Scheme,
	operatorOpts Options,
	logOpts zap.Options,
	clusterReconciler *controllers.FoundationDBClusterReconciler,
	backupReconciler *controllers.FoundationDBBackupReconciler,
	restoreReconciler *controllers.FoundationDBRestoreReconciler,
	logr logr.Logger,
	watchedObjects ...client.Object) (manager.Manager, *os.File)

StartManager will start the FoundationDB operator manager. Each reconciler that is not nil will be added to the list of reconcilers For all reconcilers the Client, Recorder and if appropriate the namespace will be set.

Types

type Options

type Options struct {
	EnableLeaderElection               bool
	CleanUpOldLogFile                  bool
	CompressOldFiles                   bool
	PrintVersion                       bool
	EnableRestartIncompatibleProcesses bool
	ServerSideApply                    bool
	EnableRecoveryState                bool
	CacheDatabaseStatus                bool
	EnableNodeIndex                    bool
	ReplaceOnSecurityContextChange     bool
	// AllowAutomountServiceAccountToken defines if the spec.AutomountServiceAccountToken setting in the user provided corev1.PodSpec
	// can be set to true.
	AllowAutomountServiceAccountToken bool
	// AllowHostNetwork defines if a user is allowed to set the HostNetwork setting in the user provided corev1.PodSpec.
	AllowHostNetwork bool
	// AllowHostPID defines if a user is allowed to set the HostPID setting in the user provided corev1.PodSpec.
	AllowHostPID bool
	// AllowHostIPC defines if a user is allowed to set the HostIPC setting in the user provided corev1.PodSpec.
	AllowHostIPC                    bool
	MetricsAddr                     string
	LeaderElectionID                string
	LogFile                         string
	LogFilePermission               string
	LabelSelector                   string
	ClusterLabelKeyForNodeTrigger   string
	HealthProbeBindAddress          string
	WatchNamespace                  string
	PodUpdateMethod                 string
	CliTimeout                      int
	MaxCliTimeout                   int
	MaxConcurrentReconciles         int
	LogFileMaxSize                  int
	LogFileMaxAge                   int
	MaxNumberOfOldLogFiles          int
	MinimumRecoveryTimeForExclusion float64
	MinimumRecoveryTimeForInclusion float64
	HighRunLoopBusyThreshold        float64
	LogFileMinAge                   time.Duration
	GetTimeout                      time.Duration
	PostTimeout                     time.Duration
	MaintenanceListStaleDuration    time.Duration
	MaintenanceListWaitDuration     time.Duration
	// GlobalSynchronizationWaitDuration is the wait time for the operator when the synchronization mode is set to
	// global. The wait time defines the period where no updates for the according action should happen. Increasing the
	// wait time will increase the chances that all updates are part of the list but will also delay the rollout of
	// the change.
	GlobalSynchronizationWaitDuration time.Duration
	// LeaseDuration is the duration that non-leader candidates will
	// wait to force acquire leadership. This is measured against time of
	// last observed ack. Default is 15 seconds.
	LeaseDuration time.Duration
	// RenewDeadline is the duration that the acting control plane will retry
	// refreshing leadership before giving up. Default is 10 seconds.
	RenewDeadline time.Duration
	// RetryPeriod is the duration the LeaderElector clients should wait
	// between tries of actions. Default is 2 seconds.
	RetryPeriod                                           time.Duration
	DeprecationOptions                                    internal.DeprecationOptions
	MinimumRequiredUptimeCCBounce                         time.Duration
	MinimumUptimeForCoordinatorChangeWithMissingProcess   time.Duration
	MinimumUptimeForCoordinatorChangeWithUndesiredProcess time.Duration
	MinimumUptimeForConfigurationChanges                  time.Duration
	MinimumAgeForTerminalPodDeletion                      time.Duration
	// AllowedAdditionalVolumeSources defines the allowed corev1.VolumeSources a user can define in the user provided
	// corev1.PodSpec.
	AllowedAdditionalVolumeSources []string
	// AllowedAdditionalVolumeMounts defines the allowed volume mounts a user can define in the user provided
	// corev1.PodSpec.
	AllowedAdditionalVolumeMounts []string
	// AllowedServiceAccountNames defines the allowed ServiceAccountNames. If set, this limits the ServiceAccountNames
	// a user can specify.
	AllowedServiceAccountNames []string
}

Options provides all configuration Options for the operator

func (*Options) BindFlags

func (o *Options) BindFlags(fs *pflag.FlagSet)

BindFlags will parse the given flagset for the operator option flags

Jump to

Keyboard shortcuts

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