Open jansobczak opened 2 months ago
When trying to import existing namespace from cluster that is unreachable but already had been added to the Rancher the following error occured
➜ rancher-dareth git:(K8S-2791/add-provider) ✗ TF_LOG=DEBUG op run -- terraform import 'module.julien-prod-noc.rancher2_namespace.rancher-project-namespace["prod-noc"]' c-m-z2w6zsvt:p-5l9n2.prod-noc 2024-05-02T15:21:12.732+0200 [INFO] Terraform version: 1.8.2 2024-05-02T15:21:15.020+0200 [DEBUG] provider.terraform-provider-rancher2_v3.0.2: 2024/05/02 15:21:15 Time to get req: 123 ms 2024-05-02T15:21:15.271+0200 [ERROR] vertex "module.julien-prod-noc.rancher2_namespace.rancher-project-namespace[\"prod-noc\"] (import id \"c-m-z2w6zsvt:p-5l9n2.prod-noc\")" error: Unknown schema type [namespace] 2024-05-02T15:21:15.271+0200 [ERROR] vertex "module.julien-prod-noc.rancher2_namespace.rancher-project-namespace (expand)" error: Unknown schema type [namespace] ╷ │ Error: Unknown schema type [namespace] │ │ ╵
resource "rancher2_namespace" "rancher-project-namespace" { name = each.key project_id = rancher2_project.rancher-project[0].id description = "${each.key} namespace" depends_on = [rancher2_project.rancher-project] wait_for_cluster = true }
The wait_for_cluster argument should be taken into account
wait_for_cluster
Rancher Server Setup
Information about the Cluster
User Information
Provider Information
Describe the bug
When trying to import existing namespace from cluster that is unreachable but already had been added to the Rancher the following error occured
To Reproduce
Expected Result
The
wait_for_cluster
argument should be taken into account