You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
resource"kubernetes_priority_class""monitoring_critical" {
metadata {
name="monitoring-critical"
}
value=1900000description="Used for pods that are critical for monitoring workloads."
}
Expected Behavior
The existing PriorityClass should be imported.
Actual Behavior
The provider errored on import, requesting a namespace to be included:
$ terraform import kubernetes_priority_class.monitoring_critical monitoring-critical
kubernetes_priority_class.monitoring_critical: Importing from ID "monitoring-critical"...
kubernetes_priority_class.monitoring_critical: Import complete!
Imported kubernetes_priority_class (ID: monitoring-critical)
kubernetes_priority_class.monitoring_critical: Refreshing state... (ID: monitoring-critical)
Error: kubernetes_priority_class.monitoring_critical (import id: monitoring-critical): 1 error occurred:
* import kubernetes_priority_class.monitoring_critical result: monitoring-critical: kubernetes_priority_class.monitoring_critical: Unexpected ID format ("monitoring-critical"), expected "namespace/name".
Releasing state lock. This may take a few moments...
Steps to Reproduce
Create a PriorityClass outside of Terraform
Set up the configuration as above
Run terraform import kubernetes_priority_class.monitoring_critical monitoring-critical
I tried importing with default/monitoring-critical just in case, but as expected, the resource could not be found ('Terraform detected a resource with this ID doesn't exist. Please verify the ID is correct. You cannot import non-existent resources using Terraform import.')
Terraform Version
Affected Resource(s)
Please list the resources as a list, for example:
Terraform Configuration Files
Expected Behavior
The existing
PriorityClass
should be imported.Actual Behavior
The provider errored on import, requesting a namespace to be included:
Steps to Reproduce
terraform import kubernetes_priority_class.monitoring_critical monitoring-critical
Important Factoids
default/monitoring-critical
just in case, but as expected, the resource could not be found ('Terraform detected a resource with this ID doesn't exist. Please verify the ID is correct. You cannot import non-existent resources using Terraform import.')kubernetes_priority_class
was just recently released in v1.10.0The text was updated successfully, but these errors were encountered: