- Related issues: #2261 [FEATURE] enhance terraform network to not pruge route_cidr and route_gateway
** Harvester Version <= v1.0.3**
Category:
- Terraform
Verification Steps
- Install Harvester with any nodes
- Install terraform-harvester-provider (using master-head for testing)
- Execute
terraform init - Create the file network.tf as following snippets, then execute
terraform import harvester_clusternetwork.vlan vlanto import default vlan settings
resource "harvester_clusternetwork" "vlan" {
name = "vlan"
enable = true
default_physical_nic = "harvester-mgmt"
}
resource "harvester_network" "vlan1" {
name = "vlan1"
namespace = "harvester-public"
vlan_id = 1
route_mode = "auto"
}
- execute
terraform apply - Login to dashboard then navigate to Advanced/Networks, make sure the Route Connectivity becomes Active
- Execute
terraform applyagain and many more times
Expected Results
- Resources should not be changed or added or destroyed.