sync

package
v0.4.27 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 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          argocd.AppFilter
	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]*argocd.AppVersion
}

Options the options for upgrading a cluster

func NewCmdArgoSync

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

NewCmdArgoSync 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