wait for hostedcluster infrastructure to be ready - #9
adriengentil wants to merge 2 commits into
Conversation
Wait for the infrastructure to be ready so HostedClutser the returned in `hosted_cluster_result` will contain the control plane IP and port. https://github.com/openshift/hypershift/blob/main/control-plane-operator/controllers/hostedcontrolplane/hostedcontrolplane_controller.go#L636-L650
WalkthroughA new task has been added to the Ansible playbook for managing the HostedCluster resource. This task, titled "Wait for HostedCluster infrastructure to be ready," utilizes the 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
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 (1)
roles/hosted_cluster/tasks/main.yml (1)
104-115: Validate the Wait Task Configuration and Timeout ParameterizationThe new task "Wait for HostedCluster infrastructure to be ready" correctly utilizes the
kubernetes.core.k8s_infomodule and checks for the expected wait conditions (reason: "AsExpected", status: "True", type: "InfrastructureReady"). This aligns with the PR objective of ensuring the infrastructure is fully prepared before proceeding.A couple of suggestions:
- Parameterize the Timeout: Consider exposing
wait_timeout(currently hardcoded to 600 seconds) as a variable. This can improve flexibility for different environments or use cases.- Post-Condition Handling: Verify that subsequent tasks properly handle the registered
hosted_cluster_result(e.g., checking for errors or unexpected outcomes).
ca44694 to
4bc18f0
Compare
Wait for the infrastructure to be ready so the HostedCluster returned in
hosted_cluster_resultwill contain the control plane IP and port.https://github.com/openshift/hypershift/blob/main/control-plane-operator/controllers/hostedcontrolplane/hostedcontrolplane_controller.go#L636-L650
Summary by CodeRabbit
Summary by CodeRabbit