fsm

package
v1.20.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GetShootClient = func(ctx context.Context, cnt client.Client, runtime imv1.Runtime) (client.Client, error) {
	runtimeID := runtime.Labels[imv1.LabelKymaRuntimeID]

	secret, err := getKubeconfigSecret(ctx, cnt, runtimeID, runtime.Namespace)
	if err != nil {
		return nil, err
	}

	restConfig, err := clientcmd.RESTConfigFromKubeConfig(secret.Data[kubeconfigSecretKey])
	if err != nil {
		return nil, err
	}

	shootClientWithAdmin, err := client.New(restConfig, client.Options{})
	if err != nil {
		return nil, err
	}

	return shootClientWithAdmin, nil
}

Functions

This section is empty.

Types

type Fsm

type Fsm interface {
	Run(ctx context.Context, v imv1.Runtime) (ctrl.Result, error)
}

func NewFsm

func NewFsm(log logr.Logger, cfg RCCfg, k8s K8s) Fsm

type K8s

type K8s struct {
	client.Client
	record.EventRecorder
	ShootClient client.Client
}

type RCCfg

type RCCfg struct {
	GardenerRequeueDuration       time.Duration
	RequeueDurationShootCreate    time.Duration
	RequeueDurationShootDelete    time.Duration
	RequeueDurationShootReconcile time.Duration
	ControlPlaneRequeueDuration   time.Duration
	Finalizer                     string
	PVCPath                       string
	ShootNamesapace               string
	AuditLogMandatory             bool
	Metrics                       metrics.Metrics
	AuditLogging                  auditlogs.Configuration
	config.Config
}

runtime reconciler specific configuration

type Watch

type Watch = func(src source.Source, eventhandler handler.EventHandler, predicates ...predicate.Predicate) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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