Terraform version: v0.15.3
Kubernetes provider version: v2.3.1
kubernetes_config_mapkubernetes_namespaceresource "kubernetes_config_map" "example" {
metadata {
name = "my-config"
}
}
kubernetes_config_map with v2.3.0 (or earlier) of the Kubernetes providerterraform state show kubernetes_config_map.example to verify it worksterraform state show kubernetes_config_map.example will no longer work with unsupported attribute "self_link" error messageThe resource should have been output.
unsupported attribute "self_link" error message
This also causes errors if you try to open terraform console in any affected directories.
It appears to stem from https://github.com/hashicorp/terraform-provider-kubernetes/pull/1294 cc @dak1n1
Unrelated but FYI I was just notified issue_triage failed with
Error: Unable to resolve action `github/issue-labeler@v2`, unable to find version `v2`
Looks like we need a StateUpgrader to delete the self_link attribute from state for it to work with the terraform state command. I was able to reproduce and this doesn't seem to be affecting plan or apply.
A workaround here is run terraform refresh which will fix the state.
Unrelated but FYI I was just notified issue_triage failed with
Error: Unable to resolve action `github/issue-labeler@v2`, unable to find version `v2`
Thanks for letting us know! I added some fixes to my Github Workflow PR that's in progress here: https://github.com/hashicorp/terraform-provider-kubernetes/pull/1300
Most helpful comment
Looks like we need a StateUpgrader to delete the
self_linkattribute from state for it to work with theterraform statecommand. I was able to reproduce and this doesn't seem to be affecting plan or apply.A workaround here is run
terraform refreshwhich will fix the state.