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

Clean test and example on cloud_project_kube resource with private network #775

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

Conversation

yomovh
Copy link
Member

@yomovh yomovh commented Nov 19, 2024

Description

  • remove ovh_vrack_cloudproject resource since from Q2 2024 all public cloud projects (existing or new) have a vrach attached to them.
  • remove unnecessary depends_on that terraform / opentofu engine can manage.
  • add node_subnet_id to avoid race condition in terraform execution plan if the subnet & the kube cluster are created in // resulting in error like Private network xxx does not have any subnet
  • add a managed gateway
  • in the test, add a random vlanId for a smoother run.

Type of change

Please delete options that are not relevant.

  • [ X] Documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • [ X] Test A: make testacc TESTARGS="-run TestAccCloudProjectKubeVRack"

Test Configuration:

 >tofu -version
OpenTofu v1.8.4
on darwin_arm64

…twork :

* remove `ovh_vrack_cloudproject` resource  since from Q2 2024 all public cloud projects (existing or new) have a vrach attached to them.
* remove unnecessary `depends_on` that terraform / opentofu engine can manage.
* add `node_subnet_id` to avoid race condition in terraform execution plan if the subnet & the kube cluster are created in // resulting in error like `Private network xxx does not have any subnet`
* add a managed gateway
* in the test, add a random vlanId for a smoother run.
@yomovh yomovh marked this pull request as ready for review November 21, 2024 09:32
@@ -974,7 +969,7 @@ func TestAccCloudProjectKubeVRack(t *testing.T) {
}
configData2 := configData{
ServiceName: serviceName,
VrackID: vrackID,
VlanID: vlanID,
Name: name,
Region: region,
DefaultVrackGateway: "10.4.0.1",
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
DefaultVrackGateway: "10.4.0.1",
DefaultVrackGateway: "",

Let's the DHCP server gives the GatewayIP.
(ATM, the KubeVRack with a gateway is not working, the provided DefaultVrackGateway is not matching the deployed one)

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