-
Notifications
You must be signed in to change notification settings - Fork 423
CNTRPLANE-1978: add e2e tests for ControlPlaneToDataPlaneConnectivityHealthy condition #7291
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
|
@sdminonne: No Jira issue with key CNTRPLANE-1978 exists in the tracker at https://issues.redhat.com/. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
Skipping CI for Draft Pull Request. |
|
Important Review skippedAuto reviews are limited based on label configuration. 🚫 Excluded labels (none allowed) (1)
Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing touches🧪 Generate unit tests (beta)
Comment |
844ce21 to
6ed806f
Compare
|
/test e2e-aws |
6ed806f to
62d9119
Compare
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: sdminonne The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/test e2e-aws |
Add DataPlaneToControlPlaneConnectivity and ControlPlaneToDataPlaneConnectivity condition types to the HostedControlPlane API to signal network connectivity state between control plane and data plane. This change creates a dedicated hostedcontrolplane_conditions.go file to match the organizational pattern used by HostedCluster, and moves existing condition constants to this new file for consistency. These conditions follow the True=healthy, False=unhealthy pattern and provide visibility into connectivity issues that may require external intervention. The actual controller logic to populate these conditions will be implemented in future work. Fixes CNTRLPLANE-1942 Signed-off-by: Salvatore Dario Minonne <[email protected]> Commit-Message-Assisted-by: Claude (via Claude Code)
Regenerate API documentation and vendor files after adding connectivity conditions to HostedControlPlane CR. This ensures the generated docs and vendored code reflect the new condition types. Signed-off-by: Salvatore Dario Minonne <[email protected]> Commit-Message-Assisted-by: Claude (via Claude Code)
Signed-off-by: Salvatore Dario Minonne <[email protected]>
…nciliation logic It creates and updates a status.condition in hosted-control-plane CR to show the status of connection between control-plane and data-plane. It retrieve healthy Nodes. In case No nodes are available the condition is set to Unknown. It uses uncached client to get konnectivity-agent PODs, one per node normally. Using clientset to get Logs from konnectivity-agent pods It adds exposes GetPodLogs func in reconciler to be mocked in unit tests a As soon at least one konnectivity-agent report logs the connection between ControlPlane and DataPlane works. It sets condition in HCP The hosted-control-plane condition is copied in hosted-cluster CR Signed-off-by: Salvatore Dario Minonne <[email protected]>
62d9119 to
0195e37
Compare
…ition It expects DataPlaneToControlPlaneConnectivity=True but when no worker nodes available Fixes CNTRLPLANE-1978 Signed-off-by: Salvatore Dario Minonne <[email protected]> Commit-Message-Assisted-by: Claude (via Claude Code)
0195e37 to
40909ec
Compare
|
/test e2e-aws |
|
@sdminonne: The following test failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
What this PR does / why we need it:
It adds ControlPlaneToDataPlaneConnectivityHealthy condition values in expectedConditions for e2e
Which issue(s) this PR fixes:
Fixes CNTRPLANE-1978
Special notes for your reviewer:
Checklist: