queue

package
v0.0.0-...-d902cc3 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeprovisioningTimeouts

type DeprovisioningTimeouts struct {
	ClusterDeletion           time.Duration `envconfig:"default=30m"`
	WaitingForClusterDeletion time.Duration `envconfig:"default=60m"`
}

type Executor

type Executor interface {
	Execute(operationID string) operations.ProcessingResult
}

type HibernationTimeouts

type HibernationTimeouts struct {
	WaitingForClusterHibernation time.Duration `envconfig:"default=60m"`
}

type KubeconfigProvider

type KubeconfigProvider interface {
	FetchFromRequest(shootName string) ([]byte, error)
}

type OperationQueue

type OperationQueue interface {
	Add(processId string)
	Run(stop <-chan struct{})
}

func CreateDeprovisioningQueue

func CreateDeprovisioningQueue(
	timeouts DeprovisioningTimeouts,
	factory dbsession.Factory,
	shootClient gardener_apis.ShootInterface,
) OperationQueue

func CreateProvisioningQueue

func CreateProvisioningQueue(
	timeouts ProvisioningTimeouts,
	factory dbsession.Factory,
	shootClient gardener_apis.ShootInterface,
	operatorRoleBindingConfig provisioning.OperatorRoleBinding,
	k8sClientProvider k8s.K8sClientProvider,
	kubeconfigProvider KubeconfigProvider) OperationQueue

func CreateShootUpgradeQueue

func CreateShootUpgradeQueue(
	timeouts ProvisioningTimeouts,
	factory dbsession.Factory,
	shootClient gardener_apis.ShootInterface,
	operatorRoleBindingConfig provisioning.OperatorRoleBinding,
	k8sClientProvider k8s.K8sClientProvider,
	kubeconfigProvider KubeconfigProvider,
) OperationQueue

type ProvisioningTimeouts

type ProvisioningTimeouts struct {
	ClusterCreation        time.Duration `envconfig:"default=60m"`
	ClusterDomains         time.Duration `envconfig:"default=10m"`
	BindingsCreation       time.Duration `envconfig:"default=5m"`
	InstallationTriggering time.Duration `envconfig:"default=20m"`
	Installation           time.Duration `envconfig:"default=60m"`
	Upgrade                time.Duration `envconfig:"default=60m"`
	UpgradeTriggering      time.Duration `envconfig:"default=20m"`
	ShootUpgrade           time.Duration `envconfig:"default=30m"`
	ShootRefresh           time.Duration `envconfig:"default=5m"`
}

type Queue

type Queue struct {
	// contains filtered or unexported fields
}

func NewQueue

func NewQueue(executor Executor) *Queue

func (*Queue) Add

func (q *Queue) Add(operationId string)

func (*Queue) Run

func (q *Queue) Run(stop <-chan struct{})

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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