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
Update the hpa directly in the cluster using kubectl edit to something like (note: target:)
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
metrics:
- type: Resource
resource:
name: cpu
target:
averageValue: 100m
type: AverageValue
terraform apply
Expected Behavior
It should override the hpa with the configured spec in kuberenetes_manifest resource
Actual Behavior
Apply failed with the following error
╷
│ Error: Provider produced inconsistent result after apply
│
│ When applying changes to
│ module.service.kubernetes_manifest.service_components["autoscale.yaml"],
│ provider "provider[\"registry.terraform.io/hashicorp/kubernetes\"]"
│ produced an unexpected new value:
│ .object.spec.metrics[1].resource.target.type: was
│ cty.StringVal("Utilization"), but now cty.StringVal("AverageValue").
│
│ This is a bug in the provider, which should be reported in the provider's
│ own issue tracker
Important Factoids
References
Community Note
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
The text was updated successfully, but these errors were encountered:
│ Error: Provider produced inconsistent result after apply
│
│ When applying changes to
│ kubernetes_manifest.deployment_kafka_strimzi_cluster_operator, provider
│ "provider[\"registry.terraform.io/hashicorp/kubernetes\"]" produced an
│ unexpected new value:
│ .object.spec.template.spec.containers[0].resources.limits["cpu"]: was
│ cty.StringVal("1000m"), but now cty.StringVal("1").
│
│ This is a bug in the provider, which should be reported in the provider's
│ own issue tracker.
Expected Behavior
It should override the hpa with the configured spec in kuberenetes_manifest resource
Actual Behavior
Apply failed with the following error
╷
│ Error: Provider produced inconsistent result after apply
│
│ When applying changes to
│ module.service.kubernetes_manifest.service_components["autoscale.yaml"],
│ provider "provider[\"registry.terraform.io/hashicorp/kubernetes\"]"
│ produced an unexpected new value:
│ .object.metadata.annotations["analysis.scaleops.io/original-metrics"]: was
│ cty.StringVal("[{\"type\":\"Resource\",\"resource\":{\"name\":\"cpu\",\"target\":{\"type\":\"Utilization\",\"averageUtilization\":55}}},{\"type\":\"Pods\",\"pods\":{\"metric\":{\"name\":\"istio_requests_pod_per_second\"},\"target\":{\"type\":\"AverageValue\",\"averageValue\":\"300\"}}}]"),
│ but now
│ cty.StringVal("[{\"type\":\"Resource\",\"resource\":{\"name\":\"cpu\",\"target\":{\"type\":\"Utilization\",\"averageUtilization\":58}}},{\"type\":\"Pods\",\"pods\":{\"metric\":{\"name\":\"istio_requests_pod_per_second\"},\"target\":{\"type\":\"AverageValue\",\"averageValue\":\"300\"}}}]").
│
│ This is a bug in the provider, which should be reported in the provider's
│ own issue tracker.
╵
Note: The changes get applied. Running terraform plan again shows no infrastructure changes.
@alexsomesan Whenever you get a chance, it'd be great if you can share some thoughts on this. Thanks!
Terraform Version, Provider Version and Kubernetes Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
Panic Output
Steps to Reproduce
Eg.
kubectl edit
to something like (note:target:
)Expected Behavior
It should override the hpa with the configured spec in kuberenetes_manifest resource
Actual Behavior
Apply failed with the following error
Important Factoids
References
Community Note
The text was updated successfully, but these errors were encountered: