Conversation
WalkthroughThe changes update the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant Action
participant Exporter
User->>Action: Start exporters
loop For each exporter
Action->>Exporter: Initiate exporter
end
loop For each exporter
Action->>Exporter: Wait for Online and Registered conditions
Exporter-->>Action: Signal Online and Registered
end
Action-->>User: Proceed after all conditions met
Possibly related PRs
Poem
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (2)
action.yml (2)
146-148: Require both Online & Registered conditions; add timeout to avoid hangs
The updated wait commands now correctly enforce bothOnlineandRegisteredstatuses per PR #17’s objective. To guard against indefinite blocking if a resource fails to reach the conditions, consider adding a--timeoutflag and consolidating the three waits into a single command:- kubectl -n default wait --for=condition=Online --for=condition=Registered exporters.jumpstarter.dev/test-exporter-oidc - kubectl -n default wait --for=condition=Online --for=condition=Registered exporters.jumpstarter.dev/test-exporter-sa - kubectl -n default wait --for=condition=Online --for=condition=Registered exporters.jumpstarter.dev/test-exporter-legacy + kubectl -n default wait --timeout=3m --for=condition=Online --for=condition=Registered \ + exporters.jumpstarter.dev/test-exporter-oidc,test-exporter-sa,test-exporter-legacy
162-162: Mirror timeout for single-exporter wait
The standalone wait now also checks both conditions, which is correct. Add a timeout here too for consistency and to prevent the workflow from hanging if the exporter never becomes ready:- kubectl -n default wait --for=condition=Online --for=condition=Registered exporters.jumpstarter.dev/test-exporter-oidc + kubectl -n default wait --timeout=2m -n default --for=condition=Online --for=condition=Registered \ + exporters.jumpstarter.dev/test-exporter-oidc
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
action.yml(2 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (2)
- GitHub Check: test (ubuntu-24.04-arm)
- GitHub Check: test (ubuntu-24.04)
Summary by CodeRabbit