gorgeous-alligator-6480
05/07/2026, 11:21 AMhydra-maester v0.0.41. The OAuth2Client CRD accepts scopeArray and warns that scope is deprecated, but I found that deletion does not fully work when only scopeArray is set.
Observed behavior:
• scopeArray only: the Hydra client is created/updated correctly, has the expected owner, and the Kubernetes OAuth2Client has the finalizer.
• When deleting the Kubernetes OAuth2Client, the CR is removed, but the Hydra client remains.
• If I add deprecated spec.scope, deletion works correctly and the Hydra client is removed.
It looks like the delete/unregister path may still check spec.scope and return early when it is empty, without considering spec.scopeArray.
Does this look like a valid bug? I can try to open a PR if the expected fix is to make the delete path accept scopeArray as well.gorgeous-alligator-6480
05/07/2026, 11:39 AM