Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateArgoCdClients ¶
func CreateArgoCdClients() (ac argoCdClients, err 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
Click to show internal directories.
Click to hide internal directories.