-
Notifications
You must be signed in to change notification settings - Fork 641
fix: manager exits when plannerClusterRoleName is not defined #3629
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Sertac Ozercan <[email protected]>
👋 Hi sozercan! Thank you for contributing to ai-dynamo/dynamo. Just a reminder: The 🚀 |
WalkthroughRemoved the startup validation that enforced plannerClusterRoleName in cluster-wide mode, eliminating the error/exit path. Control flow now proceeds without this check; remaining validations (e.g., modelExpressURL) and RBAC configuration logic are unchanged. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor User
participant OperatorMain as Operator main()
participant Config as Config/Flags
participant Validator as Validator
participant RBAC as RBAC Setup
participant Runtime as Operator Runtime
User->>OperatorMain: start
OperatorMain->>Config: parse flags/env
alt BEFORE (previous behavior)
OperatorMain->>Validator: restrictedNamespace == ""?
Validator-->>OperatorMain: Yes (cluster-wide)
OperatorMain->>Validator: plannerClusterRoleName present?
alt Missing
Validator-->>OperatorMain: error
OperatorMain-->>User: exit(1)
else Present
Validator-->>OperatorMain: ok
OperatorMain->>Validator: validate modelExpressURL
OperatorMain->>RBAC: configure via plannerClusterRoleName
OperatorMain->>Runtime: run
end
else AFTER (current behavior)
OperatorMain->>Validator: validate modelExpressURL
Note right of OperatorMain: No check for\nplannerClusterRoleName\nin cluster-wide mode
OperatorMain->>RBAC: configure (uses PlannerClusterRoleName if provided)
OperatorMain->>Runtime: run
end
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
Pre-merge checks❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
💤 Files with no reviewable changes (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Hi @tmonty12 @hhzhang16 (cc: @tedzhouhk ) This looks like a bug with operator / planner. Can we please take a look at the issue with plannerClusterRole and fix the root cause? |
Overview:
I am not sure what the intend of this code is but manager will exit if plannerClusterRoleName is not defined which is not defined in any recipes
Details:
Where should the reviewer start?
Related Issues: (use one of the action keywords Closes / Fixes / Resolves / Relates to)
Summary by CodeRabbit