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

Updated RKE config machine pool schema and structure #1253

Merged

Conversation

gylli251
Copy link
Contributor

Issue:

#1249

Problem

When you are creating an elemental cluster via terraform the apiversion which rancherv2 cluster uses by default for the machine_config is wrong. You need "elemental.cattle.io/v1beta1".

Solution

Added api_version as an option for machine_config via the schema and structure code. so we can do this:
image

Testing

I have no idea how to test properly not sure if its needed since these changes are very minor.

Engineering Testing

Manual Testing

Tested the provider myself and have created/destroyed/made changes in place, more than 10 clusters without fault.

Automated Testing

QA Testing Considerations

Regressions Considerations

My first real merge request on github, please advise me if you feel like i can do stuff better!

@gylli251
Copy link
Contributor Author

There seems to be something wrong with the build... not sure if its my fault or not.

@a-blender a-blender requested review from a team and a-blender October 26, 2023 18:10
@a-blender
Copy link
Contributor

@gylli251 Nah, appears to be a flaky test. I restarted it.

Copy link
Contributor

@a-blender a-blender 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 opening this PR! Looks straightforward to be and since it's an optional field, won't break existing cluster schemas. Lgtm. To answer your question - it will need to be tested by QA, please add a test template to the GH issue outlining test steps for the following cases

  1. Provisioning an RKE2 cluster with api_version set.
  2. Upgrading the TF version of an existing RKE2 cluster to the next Terraform RC (likely 4.0.0-rc4) to make sure there are no issues / errors.

@a-blender a-blender requested review from a team and removed request for a team October 26, 2023 18:17
@a-blender a-blender requested review from kkaempf and removed request for a team October 27, 2023 16:39
@a-blender a-blender added this to the v2.8.0 - Terraform milestone Nov 3, 2023
@a-blender a-blender requested review from a team and removed request for kkaempf November 27, 2023 19:50
@a-blender a-blender removed this from the v2.8.0 - Terraform milestone Nov 27, 2023
@kkaempf kkaempf requested a review from mjura November 28, 2023 07:10
Copy link
Contributor

@mjura mjura left a comment

Choose a reason for hiding this comment

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

lgtm

@a-blender a-blender self-requested a review November 28, 2023 20:05
Copy link
Contributor

@a-blender a-blender left a comment

Choose a reason for hiding this comment

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

Can you please add the new field to the docs?

Copy link

@richardcase richardcase left a comment

Choose a reason for hiding this comment

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

Looks good to me. Just the comment from @a-blender outstanding:

Can you please add the new field to the docs?

@gylli251 - would you be able to add the field to the docs?

@kkaempf kkaempf linked an issue Dec 5, 2023 that may be closed by this pull request
@kkaempf
Copy link
Contributor

kkaempf commented Dec 7, 2023

ping @gylli251 👆🏻

@gylli251
Copy link
Contributor Author

gylli251 commented Dec 8, 2023

I think i added documentation that is sufficient. please let me know if more is needed.

@snasovich snasovich dismissed a-blender’s stale review December 12, 2023 22:23

Dismissing this review to unblock PR

@kkaempf kkaempf merged commit 376656c into rancher:master Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

[RFE] Support Elemental or allow machineconfig with another apiversion
5 participants