upgrade

package
v0.3.3-rc0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2021 License: MPL-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const CredentialsSecretName string = "weave-gitops-enterprise-credentials"
View Source
const DeployKeySecretKey string = "deploy-key"
View Source
const EnterpriseProfileURL string = "git@github.com:weaveworks/weave-gitops-enterprise-profiles.git"

Variables

This section is empty.

Functions

func Upgrade

func Upgrade(ctx context.Context, upgradeValues UpgradeValues, w io.Writer) error

Upgrade installs the private weave-gitops-enterprise profile into the working directory: 1. Private deploy key is read from a secret in the cluster 2. Private profiles repo is cloned locally using the deploy key 3. pctl is used to install the profile from the local clone into the current working directory 4. pctl is used to add, commit, push and create a PR.

Types

type UpgradeConfigs

type UpgradeConfigs struct {
	CLIGitConfig  pctl_git.CLIGitConfig
	SCMConfig     pctl_git.SCMConfig
	InstallConfig install.Config
	Profile       catalog.Profile
}

type UpgradeValues

type UpgradeValues struct {
	RepoOrgAndName string
	Remote         string
	HeadBranch     string
	BaseBranch     string
	CommitMessage  string
	Namespace      string
	ProfileBranch  string
	ConfigMap      string
	Out            string
	GitRepository  string
	DryRun         bool
}

Jump to

Keyboard shortcuts

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