Skip to content
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

Add variable for setting failureDomains on Cluster #393

Merged
merged 1 commit into from
Mar 28, 2024

Conversation

thunderboltsid
Copy link
Contributor

@thunderboltsid thunderboltsid commented Mar 15, 2024

Use conditional presence of failureDomain to apply two patches

  • one to remove cluster and subnet for controlPlane Nutanix machine template
  • one to add failureDomains from variable

The PR also adds a template-test make target which triggers a test that is used to verify that clusterclass patches have the behaviour we expect. This spins up a kind cluster but is not a e2e test as no real underlying infrastructure resources are created. This is not a unit test either as it doesn't exercise any actual code in CAPX. The PR also adds template-test to the GitHub action to integrate it in CI toolchain.

@thunderboltsid thunderboltsid force-pushed the jira/krbn-8063 branch 3 times, most recently from 4919e44 to 979601e Compare March 15, 2024 12:53
deepakm-ntnx
deepakm-ntnx previously approved these changes Mar 15, 2024
@thunderboltsid thunderboltsid force-pushed the jira/krbn-8063 branch 3 times, most recently from 2730416 to 63b8ec4 Compare March 16, 2024 13:38
Copy link

codecov bot commented Mar 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 25.63%. Comparing base (b7bd47d) to head (b28549d).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #393   +/-   ##
=======================================
  Coverage   25.63%   25.63%           
=======================================
  Files          19       19           
  Lines        1303     1303           
=======================================
  Hits          334      334           
  Misses        969      969           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@thunderboltsid thunderboltsid force-pushed the jira/krbn-8063 branch 3 times, most recently from 93e4867 to 35290ca Compare March 19, 2024 23:06
@thunderboltsid thunderboltsid changed the title Add clusterclass template patch for failureDomains Add variable for setting failureDomains on Cluster Mar 20, 2024
Base automatically changed from jira/krbn-8065 to main March 21, 2024 17:00
@thunderboltsid thunderboltsid dismissed deepakm-ntnx’s stale review March 21, 2024 17:00

The base branch was changed.

@thunderboltsid
Copy link
Contributor Author

/retest

@thunderboltsid
Copy link
Contributor Author

/test e2e-k8s-conformance
/test e2e-k8s-upgrade
/test e2e-nutanix-features

Also added a test suite for testing clusterclass patches along
with a test for failure domains. We can use this test suite to
add further tests for testing cluster class patches.
Copy link
Contributor

@dkoshkin dkoshkin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the new tests

@deepakm-ntnx deepakm-ntnx merged commit 36a1719 into main Mar 28, 2024
6 of 7 checks passed
@deepakm-ntnx deepakm-ntnx deleted the jira/krbn-8063 branch March 28, 2024 19:33
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.

3 participants