Documentation
¶
Index ¶
- type ChartFilter
- type EnvironmentOptions
- type Options
- func (o *Options) ChooseEnvironments() error
- func (o *Options) GetDevCloneGitURL() (string, error)
- func (o *Options) Run() error
- func (o *Options) SyncVersions(sourceDir, targetDir string) error
- func (o *Options) Validate() error
- func (o *Options) ValidateEnvironment(env *EnvironmentOptions, source bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChartFilter ¶
func (*ChartFilter) Matches ¶
func (o *ChartFilter) Matches(details *helmfiles.ChartDetails) bool
Matches return true if the chart details matches the filters
type EnvironmentOptions ¶
type EnvironmentOptions struct { OptionPrefix string GitCloneURL string EnvironmentName string Namespace string Dir string Helmfile string }
EnvironmentOptions options to specify the environment git repository
func (*EnvironmentOptions) AddFlags ¶
func (o *EnvironmentOptions) AddFlags(cmd *cobra.Command, optionsPrefix string)
AddFlags adds the CLI flags to this object
func (*EnvironmentOptions) IsBlank ¶
func (o *EnvironmentOptions) IsBlank() bool
type Options ¶
type Options struct { options.BaseOptions environments.EnvironmentPullRequestOptions Source EnvironmentOptions Target EnvironmentOptions ChartFilter ChartFilter GitCommitUsername string GitCommitUserEmail string AutoMerge bool NoVersion bool UpdateOnly bool GitCredentials bool Labels []string Input input.Interface EnvMap map[string]*v1.Environment EnvNames []string SourceDir string VersionStreamDir string Prefixes *versionstream.RepositoryPrefixes }
Options the options for upgrading a cluster
func NewCmdEnvironmentSync ¶
NewCmdEnvironmentSync creates a command object for the command
func (*Options) ChooseEnvironments ¶
func (*Options) GetDevCloneGitURL ¶
func (*Options) SyncVersions ¶
SyncVersions syncs the source and target versions
func (*Options) ValidateEnvironment ¶
func (o *Options) ValidateEnvironment(env *EnvironmentOptions, source bool) error
ValidateEnvironment lets validate we can find the helmfiles for the given
Click to show internal directories.
Click to hide internal directories.