upgrader

package
v0.0.93 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EmptyObjectMeta

func EmptyObjectMeta(md *metav1.ObjectMeta) metav1.ObjectMeta

EmptyObjectMeta lets return a clean ObjectMeta without any cluster or transient specific values

func WriteSourceRepositoriesToGitFolder

func WriteSourceRepositoriesToGitFolder(outDir string, srList *v1.SourceRepositoryList) ([]string, error)

Types

type HelmfileUpgrader

type HelmfileUpgrader struct {
	// Environments the environments to use
	Environments []v1.Environment

	// Requirements the installation requirements
	Requirements *config.RequirementsConfig

	// OverrideRequirements allows custom overrides to git repository/kinds etc
	OverrideRequirements *config.RequirementsConfig

	// VersionResolver the resolver of versions in the version stream
	VersionResolver *versionstream.VersionResolver

	// DevSource the source  the development environment
	DevSource v1.EnvironmentRepository
}

HelmfileUpgrader moves an existing cluster to the new helmfile / helm 3 GitOps source

func (*HelmfileUpgrader) ExportRequirements

func (u *HelmfileUpgrader) ExportRequirements() (*config.RequirementsConfig, error)

ExportRequirements generates the exported requirements given the current cluster if there is no environments file

func (*HelmfileUpgrader) GetOrCreateEnvironment

func (u *HelmfileUpgrader) GetOrCreateEnvironment(e *v1.Environment, requirements *config.RequirementsConfig) *config.EnvironmentConfig

func (*HelmfileUpgrader) GitKind

func (u *HelmfileUpgrader) GitKind() string

GitKind returns the git kind for the development environment or empty string if it can't be found

func (*HelmfileUpgrader) UpgradeExistingRequirements

func (u *HelmfileUpgrader) UpgradeExistingRequirements(requirements *config.RequirementsConfig)

Jump to

Keyboard shortcuts

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