traas-stack / holoinsight

HoloInsight is a cloud-native observability platform with a special focus on real-time log analysis and AI integration.
Apache License 2.0
317 stars 67 forks source link

refactor: ConditionalOnRole #824

Closed xzchaoo closed 5 months ago

xzchaoo commented 5 months ago

Which issue does this PR close?

Closes #

Rationale for this change

The original semantics of ConditionOnRole is that it takes effect when any role is activated. Now there is a new parameter any, which is used to control the relationship between roles, whether it is 'any' or 'and'.

What changes are included in this PR?

Are there any user-facing changes?

How does this change test