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 (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 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)
Click to show internal directories.
Click to hide internal directories.