Skip to content

Commit

Permalink
Merge branch 'feat/app-deps' of github.com:jannfis/argo-cd into feat/…
Browse files Browse the repository at this point in the history
…app-deps
  • Loading branch information
jannfis committed Sep 28, 2023
2 parents e067d43 + c53d800 commit eb9e1c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion controller/appcontroller.go
Original file line number Diff line number Diff line change
Expand Up @@ -1186,7 +1186,7 @@ func (ctrl *ApplicationController) refreshDependencies(app *appv1.Application, s
}

if dep.RefreshedAt.IsZero() {
logCtx.Infof("Requesting refresh for app %s on behalf of dependency resolution", dep.QualifiedName())
logCtx.Infof("Requesting refresh for app %s to check dependencies", dep.QualifiedName())
ctrl.requestAppRefresh(dep.QualifiedName(), CompareWithLatest.Pointer(), nil)
dep.RefreshedAt = &metav1.Time{Time: time.Now()}
} else {
Expand Down
2 changes: 1 addition & 1 deletion docs/user-guide/app_dependencies.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Application dependencies support both, manual and automatic sync policies.

## Sync behaviour

Defining dependencies for an Application will affect that Application's sync behaviour. When a sync is started, Argo CD will evaluate the sync and health status of all other Applications in the dependency tree. Only if all of the other Applications that the Application is dependent upon have a sync status of `Synced` and a health status of `Healthy`, the sync will proceed. Until all conditions are met, the sync will stay in a progressing state and a message will indicate that the sync is waiting for dependencies. This behaviour is similar to sync waves, where a sync progresses only to the next wave when the current wave's resources are all synced and healthy.
Defining dependencies for an Application will affect its sync behaviour. When a sync is started, Argo CD will evaluate the sync and health status of all other Applications in its dependency tree. Only if all of its dependent Applications have a sync status of `Synced` and a health status of `Healthy`, will the sync proceed. Until all conditions are met, the sync will stay in a progressing state and a message will indicate that the sync is waiting for dependencies. This behaviour is similar to sync waves, where a sync progresses only to the next wave when the current wave's resources are all synced and healthy.

As a fallback mechanism, when using manual sync with the force option, Argo CD will not perform dependency resolution and the sync will proceed regardless of the states of the Application's dependencies.

Expand Down

0 comments on commit eb9e1c8

Please sign in to comment.