Installation option (Docker install/Helm Chart): Helmchart on RKE1
Information about the Cluster
Kubernetes version: 1.20
Cluster Type (Local/Downstream): downstream, imported
User Information
Cluster Owner
Provider Information
What is the version of the Rancher v2 Terraform Provider in use? 3.2.0
What is the version of Terraform in use? 1.4.6
Describe the bug
resource "rancher2_secret" "keycloak_admin" {
project_id = data.rancher2_project.default.id
namespace_id = rancher2_namespace.keycloak.id
name = "keycloak-admin"
data = {
...
$ kubectl get secret keycloak-admin -n keycloak
NAME TYPE DATA AGE
keycloak-admin Opaque 1 77d
$ terraform import rancher2_secret.keycloak_admin "keycloak.$clusterid:$projectid.keycloak-admin"
...
│ Error: nil entry in ImportState results. This is always a bug with
│ the resource that is being imported. Please report this as
│ a bug to Terraform.
Actual Result
See above
Expected Result
rancher2_recret imported
Additional context
According to the documentation the import syntax should be
Rancher Server Setup
Information about the Cluster
User Information
Provider Information
Describe the bug
Actual Result
See above
Expected Result
rancher2_recret imported
Additional context
According to the documentation the import syntax should be
terraform plan
outputs:so I seem to be using correct values for the ids