sync

package
v0.4.22 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChartFilter

type ChartFilter struct {
	Namespaces []string
	Charts     []string
}

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

func NewCmdEnvironmentSync() (*cobra.Command, *Options)

NewCmdEnvironmentSync creates a command object for the command

func (*Options) ChooseEnvironments

func (o *Options) ChooseEnvironments() error

func (*Options) GetDevCloneGitURL

func (o *Options) GetDevCloneGitURL() (string, error)

func (*Options) Run

func (o *Options) Run() error

Run implements the command

func (*Options) SyncVersions

func (o *Options) SyncVersions(sourceDir, targetDir string) error

SyncVersions syncs the source and target versions

func (*Options) Validate

func (o *Options) Validate() error

Validate validates the options

func (*Options) ValidateEnvironment

func (o *Options) ValidateEnvironment(env *EnvironmentOptions, source bool) error

ValidateEnvironment lets validate we can find the helmfiles for the given

Jump to

Keyboard shortcuts

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