argocd

package
v1.20.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2025 License: MIT Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateArgoCdClients

func CreateArgoCdClients() (ac argoCdClients, err error)

func SetArgoCDAppRevision

func SetArgoCDAppRevision(ctx context.Context, componentPath string, revision string, repo string, useSHALabelForArgoDicovery bool) error

Types

type DiffElement

type DiffElement struct {
	ObjectGroup     string
	ObjectName      string
	ObjectKind      string
	ObjectNamespace string
	Diff            string
}

DiffElement struct to store diff element details, this represents a single k8s object

type DiffResult

type DiffResult struct {
	ComponentPath            string
	ArgoCdAppName            string
	ArgoCdAppURL             string
	DiffElements             []DiffElement
	HasDiff                  bool
	DiffError                error
	AppWasTemporarilyCreated bool
	AppSyncedFromPRBranch    bool
	ArgoCdAppHealthStatus    string
	ArgoCdAppSyncStatus      string
	ArgoCdAppAutoSyncEnabled bool
}

DiffResult struct to store diff result

func GenerateDiffOfChangedComponents

func GenerateDiffOfChangedComponents(ctx context.Context, componentsToDiff map[string]bool, prBranch string, repo string, useSHALabelForArgoDicovery bool, createTempAppObjectFromNewApps bool, argoClients argoCdClients) (hasComponentDiff bool, hasComponentDiffErrors bool, diffResults []DiffResult, err error)

GenerateDiffOfChangedComponents generates diff of changed components

type DifferenceOption

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

DifferenceOption struct to store diff options

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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