Unable to add multiple destinations to a project, when adding by cluster name. #10594
Closed
3 tasks done
Labels
bug
Something isn't working
Checklist:
argocd version
.Describe the bug
When adding destinations to a project by cluster name instead of server address, it is not possible to add more than one cluster if the namespace is the same.
For example, let's assume we have two clusters called:
I want to authorise a project to manage the
foo
namespace in both of these clusters.So I want to set the following destinations:
cluster-1
foo
cluster-2
foo
When I hit save, the ArgoCD UI pops up an error that says the destination
/foo
already added.The project validation only appears to consider the destination server address, which is blank in both cases, so the validation fails.
https://github.com/argoproj/argo-cd/blob/master/pkg/apis/application/v1alpha1/app_project_types.go#L169
To Reproduce
Steps to reproduce described above.
Expected behavior
I would expect the validation to accept
prod-eks-01/foo
andprod-k8s-02/foo
as unique destinations.Screenshots
Version
The text was updated successfully, but these errors were encountered: