-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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 cluster name on Application destination. Closes #1548 #2808
feat: Support cluster name on Application destination. Closes #1548 #2808
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2808 +/- ##
==========================================
+ Coverage 41.70% 41.83% +0.12%
==========================================
Files 116 116
Lines 16744 16726 -18
==========================================
+ Hits 6983 6997 +14
+ Misses 8855 8828 -27
+ Partials 906 901 -5
Continue to review full report at Codecov.
|
|
Any chance to get some feedback now before the holidays, so I will have time to address it? |
|
Sorry for the delay with review @lcostea . We've got distracted by v1.3 performance challenges. Definitely looking at the PR today evening or first thing tomorrow morning |
| @@ -916,6 +916,10 @@ func (ctrl *ApplicationController) refreshAppConditions(app *appv1.Application) | |||
| }) | |||
| } | |||
| } else { | |||
| destCondition := argo.ValidateDestination(context.Background(), &app.Spec.Destination, ctrl.db) | |||
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.
We need to infer server field in processAppOperationQueueItem method too. E.g. finalizeApplicationDeletion uses Destination.Server field.
details ----------- - dev env controller to provision a gke cluster through crossplane and install an argocd application - uses kubebuilder - based off an experimental PR in argocd: argoproj/argo-cd#2808 - provisions nodepools through controller now. This should be handled by crossplane in the future
|
Any updates on this? |
|
I had a little longer vacation, but I am back on this and hoping to get it done in the following days. |
|
Hey @lcostea, any updates on this PR? |
|
Eager to see that merged. |
|
Working now to have this rebased, to fix the failing tests and increase code coverage |
|
@lcostea really appreciate the work you are doing! |
|
Thank you @lcostea ! |
|
Now that I reached a good test coverage, the next couple of days I will concentrate on doing many manual tests with 1-2 external clusters addressed by name in the apps |
|
Thank you for resolving merge conflicts! |
|
+1 for this feature. Would make it easier on Developers who usually only know the cluster by name, not server address. |
…nation server URL
|
@lcostea , thanks a lot for PR and patience! My only concern is the Let me know if it looks good, please. |
Hide internal field `isServerInferred`
|
@alexmt I integrated your changes, but I can't get it to work with the I tried a couple of options, but either fails on lint or on crd generation |
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.
LGTM!
|
This is a fantastic improvement in useability. Thanks, @lcostea! |
|
thanks @alexmt for your support. |
|
@lcostea I have been running a build with this change in a non-prod environment. From time to time an error is shown on the application page with the message "NotFound desc = cluster "" not found". This sometimes results in sync or delete of application to hang with the following message in the application-controller logs |
|
@cyrus-mc thanks for letting me know, I am checking this. The sync and delete, are you doing them from the UI? |
Yes. It is odd because it doesn't always happen. But I do see the error pretty much all the time. Just that sync or delete aren't impacted. I am using EKS with IAM authentication. |

Checklist: