argocd

package
v0.0.0-...-8aa3986 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: Apache-2.0 Imports: 24 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