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

feat(cluster): add use_instance_metadata_hostname flag to cloud_provider block #1271

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

asafalima
Copy link

Issue:

Fixes: rancher/rancher#41059

Problem

Since Rancher v2.6.11 it is now mandatory in some cases for RKE clusters in AWS to set a newly introduced config named useInstanceMetadataHostname.
Upgrading from Rancher v2.6.10 to v2.6.11 will break the clusters if you don't specify this flag.

Solution

Adding the ability to configure the useInstanceMetadataHostname from the rancher2_cluster.rke_config.cloud_provider block.

Testing

Setting the flag to true should result in cluster nodes named using the EC2 instance metadata hostname.

Engineering Testing

Manual Testing

Manually checked rancher's api call with the useInstanceMetadataHostname flag present.

Automated Testing

Added a check to the unit test that the flag is persisted and passed as expected.

QA Testing Considerations

Regressions Considerations

@asafalima
Copy link
Author

@kkaempf I would appreciate you review on this change

@kkaempf kkaempf requested review from a team and snasovich December 14, 2023 14:12
@kkaempf
Copy link
Contributor

kkaempf commented Dec 14, 2023

passing on ... 😉

sriddell pushed a commit to sriddell/terraform-provider-rancher2 that referenced this pull request Feb 1, 2024
@asafalima
Copy link
Author

Hi @snasovich, it would be great if you can take a look at this change?

@kkaempf kkaempf requested review from a team and removed request for a team February 6, 2024 11:15
Copy link
Collaborator

@matttrach matttrach left a comment

Choose a reason for hiding this comment

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

lgtm

@asafalima
Copy link
Author

asafalima commented Feb 22, 2024

This branch was checked out of the v3.1.1 tag, can we merge this fix to v4 and cherry-pick it to v3?

@DanielJuravski
Copy link

Any progress here?

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.

[RFE] useInstanceMetadataHostname not available in Terraform rancher2_cluster resource
5 participants