Skip to content

docs: update sync script to force update kyverno policies#40

Merged
thesuperzapper merged 1 commit into
deployKF:mainfrom
thesuperzapper:update-sync-script-with-force
Oct 2, 2023
Merged

docs: update sync script to force update kyverno policies#40
thesuperzapper merged 1 commit into
deployKF:mainfrom
thesuperzapper:update-sync-script-with-force

Conversation

@thesuperzapper

Copy link
Copy Markdown
Member

This PR updates the sync_argocd_apps.sh script so that it will automatically use kubectl replace --force with Kyverno ClusterPolicies that have a "generate" type rule.

This is needed because Kyverno does not have a method for updating these policies/rules without deleting and recreating the whole ClusterPolicy: kyverno/kyverno#7718

We can remove this additional complexity once Argo CD adds the argocd.argoproj.io/sync-options: Force=true annotation, which allows us to use force syncing with only specific resources: argoproj/gitops-engine#414

@thesuperzapper
thesuperzapper merged commit 3614ff1 into deployKF:main Oct 2, 2023
@thesuperzapper
thesuperzapper deleted the update-sync-script-with-force branch October 2, 2023 21:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant