Skip to content

Cluster API refactors#2251

Draft
rafal-lal wants to merge 6 commits intomainfrom
rlal-cluster-api-refactor
Draft

Cluster API refactors#2251
rafal-lal wants to merge 6 commits intomainfrom
rlal-cluster-api-refactor

Conversation

@rafal-lal
Copy link
Copy Markdown
Collaborator

@rafal-lal rafal-lal commented Apr 1, 2025

Description

Refactor 'cluster_api_setup' and redesign 'cluster_api_enabled' test. More info in comment in #1981.

TODO for myself: update docs

Issues:

Refs: #1981

How has this been tested:

  • Covered by existing integration testing
  • Added integration testing to cover
  • Verified all A/C passes
    • develop
    • master
    • tag/other branch
  • Test environment
    • Shared Packet K8s cluster
    • New Packet K8s cluster
    • Kind cluster
  • Have not tested

Types of changes:

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update

Checklist:

Documentation

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • No updates required.

Code Review

  • Does the test handle fatal exceptions, ie. rescue block

Issue

  • Tasks in issue are checked off

@github-project-automation github-project-automation Bot moved this to In progress in CNF Test Suite Apr 1, 2025
@rafal-lal rafal-lal marked this pull request as draft April 1, 2025 11:20
@rafal-lal rafal-lal changed the title Rlal cluster api refactor Cluster API refactors Apr 1, 2025
@rafal-lal rafal-lal force-pushed the rlal-refactor-setup branch from 6d7ee00 to 7e09370 Compare April 2, 2025 13:26
@rafal-lal rafal-lal force-pushed the rlal-cluster-api-refactor branch from 909751a to 884459f Compare April 7, 2025 11:35
@rafal-lal rafal-lal force-pushed the rlal-refactor-setup branch 2 times, most recently from c9824b5 to e56be69 Compare April 8, 2025 08:51
Signed-off-by: Rafal Lal <rafal.lal@tietoevry.com>
- Replace HttpHelper module with simple download function in utils.cr.
  Also add specs for it.
- Remove unused code (YAGNI principle)
- Add setup/constant.cr file with versions and links to the tools

Signed-off-by: Rafal Lal <rafal.lal@tietoevry.com>
@rafal-lal rafal-lal force-pushed the rlal-refactor-setup branch 2 times, most recently from 6316a75 to 95627e0 Compare April 9, 2025 10:49
- Fill setup/constants with consts with versions, urls and so on
- Fix build issues
- Refactor few baseline setup tasks (setup, cluster_setup, cnf_setup)
- Add SAM namespace called 'setup' to group setup tasks
- Remove unused cnf_conformance_setup.cr file

Signed-off-by: Rafal Lal <rafal.lal@tietoevry.com>
Signed-off-by: Rafal Lal <rafal.lal@tietoevry.com>
@rafal-lal rafal-lal force-pushed the rlal-refactor-setup branch from fd32aff to 1b9c975 Compare April 9, 2025 12:50
Signed-off-by: Rafal Lal <rafal.lal@tietoevry.com>
@rafal-lal rafal-lal force-pushed the rlal-refactor-setup branch from 1b9c975 to 94d3dbc Compare April 9, 2025 12:53
- Refactor logs with usage of .for(), make them more informative
- Add error handling
- Clean the code
- Change logic of testcase to look if cluster on which CNF is running
  was provisioned by Cluster API and not if it has Cluster API manager
  installed
- Update spec for it
- Run autoformatter

Signed-off-by: Rafal Lal <rafal.lal@tietoevry.com>
@rafal-lal rafal-lal force-pushed the rlal-cluster-api-refactor branch from 884459f to acf2afc Compare April 10, 2025 10:02
@rafal-lal rafal-lal force-pushed the rlal-refactor-setup branch 3 times, most recently from 9e35500 to c9c4c55 Compare April 28, 2025 11:48
Base automatically changed from rlal-refactor-setup to main June 10, 2025 09:27
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