argocd

package
v0.0.0-...-13b476a Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectivityCheck

func ConnectivityCheck() error

Types

type AppResource

type AppResource struct {
	ApiVersion string
	Group      string
	Kind       string
	Namespace  string
	Name       string
	YamlCur    string
	YamlNew    string
}

type ApplicationResourcesWithChanges

type ApplicationResourcesWithChanges struct {
	ArgoApp          *v1alpha1.Application
	TotalObjectCount int
	ChangedResources []AppResource
	WarnStr          string
}

func GetApplicationChanges

func GetApplicationChanges(ctx context.Context, repoOwner, repoName, repoDefaultRef, revision, changeRef, baseRef string) ([]ApplicationResourcesWithChanges, error)

Called by processEvent() in main.go to fetch matching ArgoCD applications (based on repo owner & name) and return their manifests.

func GetApplicationDiff

func GetApplicationDiff(ctx context.Context, appName, appNs, revision string) (ApplicationResourcesWithChanges, error)

type DifferenceOption

type DifferenceOption struct {
	// contains filtered or unexported fields
}

DifferenceOption struct to store diff options

Jump to

Keyboard shortcuts

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