Skip to content

Upgrading from 2.11 to 2.12, ApplicationSet selectors & matchExpressions #19972

Answered by abhi-kapoor
esn89 asked this question in Q&A
Discussion options

You must be logged in to vote

I am working on upgrading argocd to v2.12 and confirmed if this affects us by running the below query:

for AS in $(kubectl get applicationset -A -o name); do echo $AS && kubectl get $AS -n argocd -o json --show-managed-fields | jq ' select(.spec.template.spec.syncPolicy.syncOptions? // [] | index("ServerSideApply=true"))
  | .metadata.managedFields
  | map(select(.fieldsV1["f:spec"]["f:generators"]) | .manager)'; done

Basically, I am just checking if the application has ServerSideApply=true and listing all the managers owning the spec.generators. If you see only 1 manager for this field, then you are good and the change shouldn't impact you.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@esn89
Comment options

Answer selected by esn89
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants