steps

package
v0.0.0-...-affaa53 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2019 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package steps contains implementation for all installation steps. Not all are moved yet, work in progress

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeprovisionConfig

type DeprovisionConfig struct {
	BindingDeleteMaxReps    int
	BindingDeleteSleepTime  int
	InstanceDeleteMaxReps   int
	InstanceDeleteSleepTime int
}

DeprovisionConfig is used to parametrize deprovisioning of Azure Resources

func DefaultDeprovisionConfig

func DefaultDeprovisionConfig() *DeprovisionConfig

DefaultDeprovisionConfig returns default config for deprovisioning Azure Resources

type InstallationSteps

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

InstallationSteps .

func New

func New(helmClient kymahelm.ClientInterface, kubeClientset *kubernetes.Clientset,
	serviceCatalog serviceCatalog.ClientInterface, statusManager statusmanager.StatusManager,
	actionManager actionmanager.ActionManager, kymaCommandExecutor toolkit.CommandExecutor,
	kymaPackages kymasources.KymaPackages) *InstallationSteps

New .

func (*InstallationSteps) DeprovisionAzureResources

func (steps *InstallationSteps) DeprovisionAzureResources(config *DeprovisionConfig, installation installationConfig.InstallationContext) error

DeprovisionAzureResources performs automatic removal of all resources created with Azure Broker.

func (InstallationSteps) EnsureKymaSources

func (steps InstallationSteps) EnsureKymaSources(installationData *config.InstallationData) (kymasources.KymaPackage, error)

DownloadKyma .

func (*InstallationSteps) InstallKyma

func (steps *InstallationSteps) InstallKyma(installationData *config.InstallationData, overrideData overrides.OverrideData) error

InstallKyma .

func (*InstallationSteps) PrintStep

func (steps *InstallationSteps) PrintStep(stepName string)

PrintStep .

func (*InstallationSteps) UninstallKyma

func (steps *InstallationSteps) UninstallKyma(installationData *config.InstallationData) error

UninstallKyma .

type KymaPackageMock

type KymaPackageMock struct {
	kymasources.KymaPackageMock
}

func (KymaPackageMock) GetChartsDirPath

func (KymaPackageMock) GetChartsDirPath() string

type MockCommandExecutor

type MockCommandExecutor struct {
	TimesMockCommandExecutorCalled int
}

MockCommandExecutor .

func (*MockCommandExecutor) RunCommand

func (kymaCommandExecutor *MockCommandExecutor) RunCommand(execPath string, execArgs ...string) error

RunCommand .

type MockErrorHelmClient

type MockErrorHelmClient struct {
	InstallReleaseCalled            bool
	InstallReleaseWithoutWaitCalled bool
	UpgradeReleaseCalled            bool
	ReleaseStatusCalled             bool
}

MockErrorHelmClient is a fake helm client that always returns an error

func (*MockErrorHelmClient) DeleteRelease

func (mehc *MockErrorHelmClient) DeleteRelease(releaseName string) (*rls.UninstallReleaseResponse, error)

DeleteRelease mocks a call to helm client's DeleteRelease function

func (*MockErrorHelmClient) InstallRelease

func (mehc *MockErrorHelmClient) InstallRelease(chartdir, ns, releasename, overrides string) (*rls.InstallReleaseResponse, error)

InstallRelease mocks a call to helm client's InstallRelease function

func (*MockErrorHelmClient) InstallReleaseFromChart

func (mehc *MockErrorHelmClient) InstallReleaseFromChart(chartdir, ns, releaseName, overrides string) (*rls.InstallReleaseResponse, error)

InstallReleaseFromChart mocks a call to helm client's InstallReleaseFromChart function

func (*MockErrorHelmClient) InstallReleaseWithoutWait

func (mehc *MockErrorHelmClient) InstallReleaseWithoutWait(chartdir, ns, releasename, overrides string) (*rls.InstallReleaseResponse, error)

InstallReleaseWithoutWait mocks a call to helm client's InstallReleaseWithoutWait function

func (*MockErrorHelmClient) ListReleases

func (mehc *MockErrorHelmClient) ListReleases() (*rls.ListReleasesResponse, error)

ListReleases mocks a call to helm client's ListRelease function

func (*MockErrorHelmClient) PrintRelease

func (mehc *MockErrorHelmClient) PrintRelease(release *release.Release)

PrintRelease mocks a call to helm client's PrintRelease function

func (*MockErrorHelmClient) ReleaseStatus

func (mehc *MockErrorHelmClient) ReleaseStatus(rname string) (string, error)

ReleaseStatus mocks a call to helm client's ReleaseStatus function

func (*MockErrorHelmClient) UpgradeRelease

func (mehc *MockErrorHelmClient) UpgradeRelease(chartDir, releaseName, overrides string) (*rls.UpdateReleaseResponse, error)

UpgradeRelease mocks a call to helm client's UpgradeRelease function

type MockFailingCommandExecutor

type MockFailingCommandExecutor struct {
	MockFailingCommandExecutorCalled bool
}

MockFailingCommandExecutor .

func (*MockFailingCommandExecutor) RunCommand

func (kymaFailingCommandExecutor *MockFailingCommandExecutor) RunCommand(execPath string, execArgs ...string) error

RunCommand .

type MockHelmClient

type MockHelmClient struct {
	InstallReleaseCalled            bool
	InstallReleaseWithoutWaitCalled bool
	UpgradeReleaseCalled            bool
}

MockHelmClient is a fake helm client that returns no errors

func (*MockHelmClient) DeleteRelease

func (mhc *MockHelmClient) DeleteRelease(releaseName string) (*rls.UninstallReleaseResponse, error)

DeleteRelease mocks a call to helm client's DeleteRelease function

func (*MockHelmClient) InstallRelease

func (mhc *MockHelmClient) InstallRelease(chartdir, ns, releasename, overrides string) (*rls.InstallReleaseResponse, error)

InstallRelease mocks a call to helm client's InstallRelease function

func (*MockHelmClient) InstallReleaseFromChart

func (mhc *MockHelmClient) InstallReleaseFromChart(chartdir, ns, releaseName, overrides string) (*rls.InstallReleaseResponse, error)

InstallReleaseFromChart mocks a call to helm client's InstallReleaseFromChart function

func (*MockHelmClient) InstallReleaseWithoutWait

func (mhc *MockHelmClient) InstallReleaseWithoutWait(chartdir, ns, releasename, overrides string) (*rls.InstallReleaseResponse, error)

InstallReleaseWithoutWait mocks a call to helm client's InstallReleaseWithoutWait function

func (*MockHelmClient) ListReleases

func (mhc *MockHelmClient) ListReleases() (*rls.ListReleasesResponse, error)

ListReleases mocks a call to helm client's ListRelease function

func (*MockHelmClient) PrintRelease

func (mhc *MockHelmClient) PrintRelease(release *release.Release)

PrintRelease mocks a call to helm client's PrintRelease function

func (*MockHelmClient) ReleaseStatus

func (mhc *MockHelmClient) ReleaseStatus(rname string) (string, error)

ReleaseStatus mocks a call to helm client's ReleaseStatus function

func (*MockHelmClient) UpgradeRelease

func (mhc *MockHelmClient) UpgradeRelease(chartDir, releaseName, overrides string) (*rls.UpdateReleaseResponse, error)

UpgradeRelease mocks a call to helm client's UpgradeRelease function

type MockOverrideData

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

func (MockOverrideData) Common

func (mod MockOverrideData) Common() overrides.Map

func (MockOverrideData) ForComponent

func (mod MockOverrideData) ForComponent(componentName string) overrides.Map

Jump to

Keyboard shortcuts

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