Skip to content
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

feat: support filtering apps by label in CLI #368

Merged
merged 1 commit into from
Jan 24, 2022

Conversation

jaideepr97
Copy link
Collaborator

This PR addresses issue #258
It adds a new CLI parameter --match-application-label which accepts a string label input to match applications against
It currently only accepts a single label to filter against, and does not support pattern matching on label values, but those enhancements can be made in future PRs

steps to test out PR:

  • create annotated apps containing 1 or more labels
  • set up argocd-image-updater account & token as per documented steps
  • run argocd-image-updater binary with additional parameter --match-application-label and supply desired label

application should be updated with new image after sync

Copy link
Contributor

@jannfis jannfis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @jaideepr97 - I have just two nits, please see below.

pkg/argocd/argocd.go Outdated Show resolved Hide resolved
pkg/argocd/argocd.go Outdated Show resolved Hide resolved
@jaideepr97
Copy link
Collaborator Author

Thanks @jannfis
addressed your comments

Copy link
Contributor

@jannfis jannfis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks @jaideepr97 !

@jannfis jannfis merged commit 89daab6 into argoproj-labs:master Jan 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants