Skip to content
This repository was archived by the owner on May 14, 2026. It is now read-only.
This repository was archived by the owner on May 14, 2026. It is now read-only.

Add annotation argocd.argoproj.io/sync-options: Force=true #414

Description

@jiwonaid

Summary

This issue is about the need for the new annotation argocd.argoproj.io/sync-options: Force=true, which is needed for the use case like the job resources that should run every time when syncing.

Goals & Proposal

Could we implement the new annotation feature on this repo?

Based on kubectl replace --help, --force is needed to delete and then re-create the resources.

~  kubectl replace --help
  
  # Force replace, delete and then re-create the resource
  kubectl replace --force -f ./pod.json
  

Currently, there is nothing like argocd.argoproj.io/sync-options: Force=true.
It seems like argocd.argoproj.io/sync-options: Replace=true runs on this library.

func WithReplace(replace bool) SyncOpt {
return func(ctx *syncContext) {
ctx.replace = replace
}
}

Releated Issues

There are some related issues at argo-cd repo. Please take a look.
argoproj/argo-cd#5882
argoproj/argo-cd#7459
argoproj/argo-cd#9163

Thank you for reading.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions