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

[e2e] add configure options for RKE1 and RKE2 #877

Merged
merged 3 commits into from
Jul 11, 2023

Conversation

lanfon72
Copy link
Member

@lanfon72 lanfon72 commented Jul 3, 2023

Changes

  • ADD configure options: RKE1-version, RKE2-version
  • UPDATE fixtures to use new configure options if available

ref to #794

@lanfon72 lanfon72 requested a review from a team July 3, 2023 12:13
Copy link
Contributor

@albinsun albinsun left a comment

Choose a reason for hiding this comment

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

LGTM

@albinsun albinsun requested a review from a team July 4, 2023 06:42
@@ -210,9 +210,21 @@ def pytest_addoption(parser):
parser.addoption(
'--kubernetes-version',
action='store',
default=config_data.get('kubernetes-version', 'v1.21.6+rke2r1'),
default=config_data.get('kubernetes-version', 'v1.24.11+rke2r1'),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we just use the value from config.yml and not set a fallback value here? Reason being as below:

  1. Kubernetes version keeps updating frequently, we'll have overhead of updating the versions at 2 places.
  2. It is okay to let the test fail if versions are not defined properly in config.yml or we have some problem in parsing config.yml.
  3. Let these values in the file be consistent with others as we are not putting fallback values for other variables.

Copy link
Member Author

Choose a reason for hiding this comment

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

updated.

@khushboo-rancher khushboo-rancher merged commit 7b96090 into harvester:main Jul 11, 2023
2 checks passed
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