sync

package
v0.4.21 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	options.BaseOptions
	environments.EnvironmentPullRequestOptions

	Source             gitops.RepositoryOptions
	Target             gitops.RepositoryOptions
	AppFilter          fluxcd.HelmReleaseFilter
	GitCommitUsername  string
	GitCommitUserEmail string
	AutoMerge          bool
	UpdateOnly         bool
	GitCredentials     bool
	Labels             []string
	Input              input.Interface
	EnvMap             map[string]*v1.Environment
	EnvNames           []string
	VersionStreamDir   string
	Prefixes           *versionstream.RepositoryPrefixes
	SourceApplications map[string]*fluxcd.ChartVersion
}

Options the options for upgrading a cluster

func NewCmdFluxSync

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

NewCmdFluxSync creates a command object for the command

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

Jump to

Keyboard shortcuts

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