-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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(argo-cd): Expose cluster's project as a label #2968
Conversation
Given that Argo CD's ApplicationSet cluster generator allows selecting clusters using arbitrary labels, it'd be useful for operators to have the clusters' project available as label to for instance easily deploy a single application to all the clusters of a given project. More info: argoproj#2949 Signed-off-by: Nacho Barrientos <[email protected]>
Are you aware that it is already possible today? clusterCredentials: {}
# mycluster:
# server: https://mycluster.example.com
# labels: {} # <-- see here
# annotations: {}
# config:
# bearerToken: "<authentication token>"
# tlsClientConfig:
# insecure: false
# caData: "<base64 encoded certificate>" |
Thanks for taking a look. Yes, I am, but this approach requires setting it in two places, the project itself and then the label. With this patch it's only set in one place and propagated automatically, avoiding duplication and possible misalignments upon (bogus) configuration changes. This is the added value of this patch :) |
Thank you for elaborate your background. Can you point me to a resource where the key of the label is documented? :) I am also curious why we should add the label |
Hi, Hehe, I have to confess that made up the resource label key, it's indeed not listed here but hey, in my defense it's just an arbitrary label :) I used the Setting it to all clusters could be eventually beneficial when filtering resources using Thanks again. |
Would a chart-specific label make this more appealing, perhaps? 👼 |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Given that Argo CD's ApplicationSet cluster generator allows selecting clusters using arbitrary labels, it'd be useful for operators to have the clusters' project available as label to for instance easily deploy a single application to all the clusters of a given project.
More info: #2949
Checklist: