Skip to content

Comments

feat(validation): Add MicroK8s firewall validation tests for egress a…#94

Open
NVJCameron wants to merge 11 commits intomainfrom
jcameron/k8s-networking-shadeform-nebius
Open

feat(validation): Add MicroK8s firewall validation tests for egress a…#94
NVJCameron wants to merge 11 commits intomainfrom
jcameron/k8s-networking-shadeform-nebius

Conversation

@NVJCameron
Copy link

…nd pod-to-pod communication

  • Implemented ValidateMicroK8sFirewallAllowsEgress to test egress connectivity from MicroK8s pods.
  • Implemented ValidateMicroK8sFirewallAllowsPodToPodCommunication to verify communication between MicroK8s pods.
  • Updated validation suite to include new tests for MicroK8s firewall rules.

…nd pod-to-pod communication

- Implemented `ValidateMicroK8sFirewallAllowsEgress` to test egress connectivity from MicroK8s pods.
- Implemented `ValidateMicroK8sFirewallAllowsPodToPodCommunication` to verify communication between MicroK8s pods.
- Updated validation suite to include new tests for MicroK8s firewall rules.
@NVJCameron NVJCameron self-assigned this Feb 19, 2026
…ting tests into dedicated functions

- Removed inline tests for MicroK8s firewall egress and pod-to-pod communication from the validation suite.
- Introduced `runMicroK8sFirewallValidation` function to encapsulate MicroK8s firewall tests.
- Enhanced readability and maintainability of the validation code.
…d function

- Introduced `runFirewallSubtests` to encapsulate firewall-related validation tests for improved readability and maintainability.
- Removed inline firewall tests from `RunInstanceLifecycleValidation` and `RunFirewallValidation` functions.
- Ensured consistent testing structure across different validation scenarios.
…or consistency

- Changed the parameter order in `runFirewallSubtests` to place context first, aligning with common Go practices.
- Updated all calls to `runFirewallSubtests` to reflect the new parameter order, enhancing code readability and maintainability.
…llation retries

- Added a command to wait for MicroK8s Nginx service endpoints to be ready before proceeding with tests, preventing race conditions.
- Implemented a retry mechanism for the MicroK8s installation process, allowing up to three attempts with delays between retries for improved reliability.
- Included a check to wait for CoreDNS pods to be ready, ensuring subsequent commands relying on DNS resolution do not fail.
@NVJCameron NVJCameron marked this pull request as ready for review February 20, 2026 18:36
@NVJCameron NVJCameron requested a review from a team as a code owner February 20, 2026 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant