Application sync options

Updated at:

When you manage applications by using GitOps, Argo CD provides sync options that you can customize as needed to control how resources are synchronized to the target cluster. This topic briefly describes the main sync options.

For more information, see Argo CD Sync Options.

Sync options

Description

Prune

Specifies whether to delete child resources of an application that exist in the cluster but not in the Git repository.

Validate

Setting the value to false skips the validation of certain resources.

CreateNamespace

During the resource synchronization phase, automatically creates the specified Namespace in the target cluster.

ApplyOutOfSyncOnly

Synchronizes only the resources in the OutOfSync state, which can speed up synchronization.

PruneLast

Prunes resources only in the last phase of the synchronization operation, when all other resources have been deployed and are healthy.

RespectIgnoreDifferences

For fields that are configured to be ignored in spec.ignoreDifferences, the desired state (in Git) of these fields is ignored during the synchronization phase.

ServerSideApply

Applies resources on the server side instead of the client side. For more information, see kubectl apply --server-side.

A partial YAML can also be provided to patch existing resources.

PrunePropagationPolicy

The resource pruning propagation policy. Valid values:

  • background: After the owner object is deleted, the dependent objects are cleaned up in the background.

  • foreground: The dependent objects are deleted first, and then the owner object is deleted.

  • orphan: Only the owner object is deleted, and the dependent objects are orphaned.

The default value is foreground.

Replace

During the synchronization process, resources are synchronized by using kubectl replace/create instead of kubectl apply.

References

To create and deploy applications by using GitOps, see Application management or Use an ApplicationSet to create multiple applications.