Documentation ¶
Index ¶
- func EmptyObjectMeta(md *metav1.ObjectMeta) metav1.ObjectMeta
- func WriteSourceRepositoriesToGitFolder(outDir string, srList *v1.SourceRepositoryList) ([]string, error)
- type HelmfileUpgrader
- func (u *HelmfileUpgrader) ExportRequirements() (*config.RequirementsConfig, error)
- func (u *HelmfileUpgrader) GetOrCreateEnvironment(e *v1.Environment, requirements *config.RequirementsConfig) *config.EnvironmentConfig
- func (u *HelmfileUpgrader) GitKind() string
- func (u *HelmfileUpgrader) UpgradeExistingRequirements(requirements *config.RequirementsConfig)
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)
Click to show internal directories.
Click to hide internal directories.