I've tried creating the Sync Window both via the cli and via the ui and the results are the same.
Expected behavior
I would expect Applications that sync to the cluster named "tge-aws" would be blocked by the deny of the Sync Window.
However, when I create a Sync Window based on the Cluster.Server it works as expected. It appears to just be the Cluster.Name that is not working properly.
Checklist:
argocd version
.Describe the bug
When adding a Sync Window the matching works for Applications, Namespaces and Cluster.Server but not Cluster.Name
To Reproduce
Create a sync window based on just a cluster name without an Application or Namespace
I've tried creating the Sync Window both via the cli and via the ui and the results are the same.
Expected behavior
I would expect Applications that sync to the cluster named "tge-aws" would be blocked by the deny of the Sync Window.
However, when I create a Sync Window based on the Cluster.Server it works as expected. It appears to just be the Cluster.Name that is not working properly.
Version
Other
I saw the code at https://github.com/argoproj/argo-cd/blob/v2.4.3/pkg/apis/application/v1alpha1/types.go#L1832:L1842 but it seems fine to me.
This may be related to https://github.com/argoproj/argo-cd/issues/6110 but I thought it is different enough that it warranted opening a new issue, apologies if not.