provisioning

package
v0.0.0-...-f7d1ac2 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2023 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// the time after which the operation is marked as expired
	CreateRuntimeTimeout = 1 * time.Hour
)

Variables

This section is empty.

Functions

func DoForOwnClusterPlanOnly

func DoForOwnClusterPlanOnly(operation internal.Operation) bool

func SkipForOwnClusterPlan

func SkipForOwnClusterPlan(operation internal.Operation) bool

func WhenBTPOperatorCredentialsProvided

func WhenBTPOperatorCredentialsProvided(op internal.Operation) bool

Types

type ApplyKymaStep

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

func NewApplyKymaStep

func NewApplyKymaStep(os storage.Operations, cli client.Client) *ApplyKymaStep

func (*ApplyKymaStep) Name

func (a *ApplyKymaStep) Name() string

func (*ApplyKymaStep) Run

type BTPOperatorOverridesStep

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

func NewBTPOperatorOverridesStep

func NewBTPOperatorOverridesStep(os storage.Operations) *BTPOperatorOverridesStep

func (*BTPOperatorOverridesStep) Name

func (s *BTPOperatorOverridesStep) Name() string

func (*BTPOperatorOverridesStep) Run

type CheckClusterConfigurationStep

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

CheckClusterConfigurationStep checks if the SKR configuration is applied (by reconciler)

func NewCheckClusterConfigurationStep

func NewCheckClusterConfigurationStep(os storage.Operations,
	reconcilerClient reconciler.Client,
	provisioningTimeout time.Duration) *CheckClusterConfigurationStep

func (*CheckClusterConfigurationStep) Name

func (*CheckClusterConfigurationStep) Run

type CheckRuntimeStep

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

CheckRuntimeStep checks if the SKR is provisioned

func NewCheckRuntimeStep

func NewCheckRuntimeStep(os storage.Operations,
	provisionerClient provisioner.Client,
	provisioningTimeout time.Duration) *CheckRuntimeStep

func (*CheckRuntimeStep) Name

func (s *CheckRuntimeStep) Name() string

func (*CheckRuntimeStep) Run

type CreateClusterConfigurationStep

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

func NewCreateClusterConfiguration

func NewCreateClusterConfiguration(os storage.Operations, runtimeStorage storage.RuntimeStates, reconcilerClient reconciler.Client) *CreateClusterConfigurationStep

func (*CreateClusterConfigurationStep) Name

func (*CreateClusterConfigurationStep) Run

type CreateRuntimeForOwnCluster

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

func (*CreateRuntimeForOwnCluster) Name

func (*CreateRuntimeForOwnCluster) Run

type CreateRuntimeWithoutKymaStep

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

func (*CreateRuntimeWithoutKymaStep) Name

func (*CreateRuntimeWithoutKymaStep) Run

type DirectorClient

type DirectorClient interface {
	SetLabel(accountID, runtimeID, key, value string) error
}

type EDPClient

type EDPClient interface {
	CreateDataTenant(data edp.DataTenantPayload) error
	CreateMetadataTenant(name, env string, data edp.MetadataTenantPayload) error

	DeleteDataTenant(name, env string) error
	DeleteMetadataTenant(name, env, key string) error
}

type EDPRegistrationStep

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

func NewEDPRegistrationStep

func NewEDPRegistrationStep(os storage.Operations, client EDPClient, config edp.Config) *EDPRegistrationStep

func (*EDPRegistrationStep) Name

func (s *EDPRegistrationStep) Name() string

func (*EDPRegistrationStep) Run

type EnableForTrialPlanStep

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

func NewEnableForTrialPlanStep

func NewEnableForTrialPlanStep(step process.Step) EnableForTrialPlanStep

func (EnableForTrialPlanStep) Name

func (s EnableForTrialPlanStep) Name() string

func (EnableForTrialPlanStep) Run

type ExternalEvalCreator

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

func NewExternalEvalCreator

func NewExternalEvalCreator(delegator *avs.Delegator, disabled bool, assistant *avs.ExternalEvalAssistant) *ExternalEvalCreator

type ExternalEvalStep

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

func NewExternalEvalStep

func NewExternalEvalStep(externalEvalCreator *ExternalEvalCreator) *ExternalEvalStep

func (ExternalEvalStep) Name

func (e ExternalEvalStep) Name() string

func (*ExternalEvalStep) Run

type GetKubeconfigStep

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

func NewGetKubeconfigStep

func NewGetKubeconfigStep(os storage.Operations,
	provisionerClient provisioner.Client,
	k8sClientProvider func(kubeconfig string) (client.Client, error)) *GetKubeconfigStep

func (*GetKubeconfigStep) Name

func (s *GetKubeconfigStep) Name() string

func (*GetKubeconfigStep) Run

type InitialisationStep

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

func (*InitialisationStep) Name

func (s *InitialisationStep) Name() string

func (*InitialisationStep) Run

type InjectBTPOperatorCredentialsStep

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

func NewInjectBTPOperatorCredentialsStep

func NewInjectBTPOperatorCredentialsStep(os storage.Operations, k8sClientProvider func(kcfg string) (client.Client, error)) *InjectBTPOperatorCredentialsStep

func (*InjectBTPOperatorCredentialsStep) Name

func (*InjectBTPOperatorCredentialsStep) Run

type InternalEvalUpdater

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

func NewInternalEvalUpdater

func NewInternalEvalUpdater(delegator *avs.Delegator, assistant *avs.InternalEvalAssistant, config avs.Config) *InternalEvalUpdater

func (*InternalEvalUpdater) AddTagsToEval

func (ieu *InternalEvalUpdater) AddTagsToEval(tags []*avs.Tag, operation internal.Operation, url string, logger logrus.FieldLogger) (internal.Operation, time.Duration, error)

type InternalEvaluationStep

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

func NewInternalEvaluationStep

func NewInternalEvaluationStep(delegator *avs.Delegator, assistant *avs.InternalEvalAssistant) *InternalEvaluationStep

func (*InternalEvaluationStep) Name

func (ies *InternalEvaluationStep) Name() string

func (*InternalEvaluationStep) Run

type KymaVersionConfigurator

type KymaVersionConfigurator interface {
	ForGlobalAccount(string) (string, bool, error)
}

type OverridesFromSecretsAndConfigStep

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

func (*OverridesFromSecretsAndConfigStep) Name

func (*OverridesFromSecretsAndConfigStep) Run

type ResolveCredentialsStep

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

func NewResolveCredentialsStep

func NewResolveCredentialsStep(os storage.Operations, accountProvider hyperscaler.AccountProvider) *ResolveCredentialsStep

func (*ResolveCredentialsStep) Name

func (s *ResolveCredentialsStep) Name() string

func (*ResolveCredentialsStep) Run

type RuntimeOverridesAppender

type RuntimeOverridesAppender interface {
	Append(input runtimeoverrides.InputAppender, planName, overridesVersion string) error
}

type RuntimeTagsStep

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

func NewRuntimeTagsStep

func NewRuntimeTagsStep(internalEvalUpdater *InternalEvalUpdater, provisionerClient provisioner.Client) *RuntimeTagsStep

func (*RuntimeTagsStep) Name

func (e *RuntimeTagsStep) Name() string

func (*RuntimeTagsStep) Run

type RuntimeVersionConfiguratorForProvisioning

type RuntimeVersionConfiguratorForProvisioning interface {
	ForProvisioning(op internal.Operation) (*internal.RuntimeVersionData, error)
}

type SkipForTrialPlanStep

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

func NewSkipForTrialPlanStep

func NewSkipForTrialPlanStep(step process.Step) SkipForTrialPlanStep

func (SkipForTrialPlanStep) Name

func (s SkipForTrialPlanStep) Name() string

func (SkipForTrialPlanStep) Run

type StartStep

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

StartStep changes the state from pending to in progress if necessary

func NewStartStep

func NewStartStep(os storage.Operations, is storage.Instances) *StartStep

func (*StartStep) Name

func (s *StartStep) Name() string

func (*StartStep) Run

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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