-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: kubectl to synchronize argocd apps (cherry-pick #14881) #15086
Conversation
We can use kubectl to synchronize argocd applications the same way we can use the argocd cli or ui, however there's no documentation. This PR adds documentation for kubectl. Signed-off-by: Jordi Grant Esteve <jgrant.esteve@gmail.com>
Codecov ReportPatch and project coverage have no change.
Additional details and impacted files@@ Coverage Diff @@
## release-2.7 #15086 +/- ##
============================================
Coverage 48.94% 48.94%
============================================
Files 247 247
Lines 42873 42873
============================================
Hits 20983 20983
Misses 19770 19770
Partials 2120 2120 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small fixes and then can approve
$ kubectl patch -n <namespace> app <app-name> --patch-file <patch-file> --type merge | ||
``` | ||
|
||
Be aware that patches, specially with merge strategies, may not work the way you expect especially if you change sync strategies or options. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Be aware that patches, specially with merge strategies, may not work the way you expect especially if you change sync strategies or options. | |
Be aware that patches, especially with merge strategies, may not work the way you expect especially if you change sync strategies or options. |
|
||
# List of resources | ||
|
||
There's always the possibility to pass a list of resources. This list can be all resources the application manages or only a subset, for example resources that remained out of sync for some reason. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's always the possibility to pass a list of resources. This list can be all resources the application manages or only a subset, for example resources that remained out of sync for some reason. | |
There's always the possibility to pass a list of resources. This list can be all resources the application manages or only a subset, for example, resources that remained out of sync for some reason. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll go ahead and merge this, since it's a cherry-pick. These fixes can be in a follow-up PR
Cherry-picked docs: kubectl to synchronize argocd apps (#14881)
We can use kubectl to synchronize argocd applications the same way we can use
the argocd cli or ui, however there's no documentation.
This PR adds documentation for kubectl.
Signed-off-by: Jordi Grant Esteve jgrant.esteve@gmail.com