argocd

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ApplicationFilter = kyamls.Filter{
		Kinds: []string{"argoproj.io/v1alpha1/Application", "argoproj.io/v1alpha1/ApplicationSet"},
	}
)

Functions

func GetRepoURL added in v0.0.83

func GetRepoURL(node *yaml.RNode, path string) string

GetRepoURL gets repository URL

func SetAppSetVersion added in v0.4.16

func SetAppSetVersion(node *yaml.RNode, path, version string) error

SetAppSetVersion sets the applicationSet version

func SetAppVersion added in v0.0.83

func SetAppVersion(node *yaml.RNode, path, version string) error

SetAppVersion sets the application version

Types

type AppFilter

type AppFilter struct {
	RepoURL gitops.TextFilter
	Path    gitops.TextFilter
}

AppFilter filter for apps

func (*AppFilter) AddFlags

func (o *AppFilter) AddFlags(cmd *cobra.Command)

func (*AppFilter) Matches

func (o *AppFilter) Matches(v *AppVersion) bool

Matches return true if the app version matches the filter

type AppVersion

type AppVersion struct {
	RepoURL string
	Version string
	Path    string
}

AppVersion represents an app version metadata from an ArgoCD Application

func GetAppVersion

func GetAppVersion(node *yaml.RNode, path string) *AppVersion

GetAppVersion gets the AppVersion from the given YAML file

func (*AppVersion) Key

func (v *AppVersion) Key() string

Key returns a unique key for the app version

func (*AppVersion) String

func (v *AppVersion) String() string

String returns the string summary of the app version

Jump to

Keyboard shortcuts

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