provisioner

package
v0.0.0-...-980806f Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2020 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewProvisionerClient

func NewProvisionerClient(endpoint, tenant string, logger logrus.FieldLogger, client *http.Client) *Client

func (Client) RuntimeOperationStatus

func (c Client) RuntimeOperationStatus(operationID string) (schema.OperationStatus, error)

func (Client) RuntimeStatus

func (c Client) RuntimeStatus(runtimeID string) (schema.RuntimeStatus, error)

func (Client) UpgradeRuntime

func (c Client) UpgradeRuntime(runtimeID string, config schema.UpgradeRuntimeInput) (schema.OperationStatus, error)

type ComponentsListProvider

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

ComponentsListProvider provides the whole components list for creating a Kyma Runtime

func NewComponentsListProvider

func NewComponentsListProvider(managedRuntimeComponentsYAMLPath string) *ComponentsListProvider

NewComponentsListProvider returns new instance of the ComponentsListProvider

func (*ComponentsListProvider) AllComponents

func (r *ComponentsListProvider) AllComponents(kymaVersion string) ([]v1alpha1.KymaComponent, error)

AllComponents returns all components for Kyma Runtime. It fetches always the Kyma open-source components from the given url and management components from the file system and merge them together.

type HTTPDoer

type HTTPDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

type Installation

type Installation struct {
	Kind string                    `json:"kind"`
	Spec v1alpha1.InstallationSpec `json:"spec"`
}

Installation represents the installer CR. It is copied because using directly the installer CR with such fields:

metav1.TypeMeta   `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`

is not working with "gopkg.in/yaml.v2" stream decoder. On the other hand "sigs.k8s.io/yaml" does not support stream decoding.

type RuntimeUpgradeClient

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

func NewRuntimeUpgradeClient

func NewRuntimeUpgradeClient(
	directorClient *director.Client,
	provisionerClient *Client,
	componentsProvider *ComponentsListProvider,
	tenantID,
	instanceID string,
	logger logrus.FieldLogger) *RuntimeUpgradeClient

func (RuntimeUpgradeClient) AwaitOperationFinished

func (c RuntimeUpgradeClient) AwaitOperationFinished(operationId string, timeout time.Duration) error

func (RuntimeUpgradeClient) UpgradeRuntimeToVersion

func (c RuntimeUpgradeClient) UpgradeRuntimeToVersion(kymaVersion string) (string, error)

Jump to

Keyboard shortcuts

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