-
Notifications
You must be signed in to change notification settings - Fork 975
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it intentional that order of metrics matter on HPAs? #1188
Comments
It looks like the metrics do come back from the API in a different sort order – so we're missing a diff suppress function here. Workaround is to reverse the order in the Terraform config. |
@jrhouston it doesn't look like reversing the order in the Terraform config so that memory is listed first and cpu is listed second makes a difference for me. One possible difference is that I am calling the |
@jrhouston is there any update on this? We are still experiencing the noise. Is this something where we could open a PR ourselves and get it reviewed? Is it literally just changing https://github.com/hashicorp/terraform-provider-kubernetes/blob/main/kubernetes/resource_kubernetes_horizontal_pod_autoscaler.go#L40 from |
I also noticed there is no way to put the api_version that suppports multiple metrics |
Marking this issue as stale due to inactivity. If this issue receives no comments in the next 30 days it will automatically be closed. If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. This helps our maintainers find and focus on the active issues. Maintainers may also remove the stale label at their discretion. Thank you! |
This issue is still a big problem, please address remove the stale label and address @jrhouston |
…der_to_hotfix_issue TD-590 Reverse order to temp fix issue hashicorp/terraform-provider-kubernetes#1188
Marking this issue as stale due to inactivity. If this issue receives no comments in the next 30 days it will automatically be closed. If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. This helps our maintainers find and focus on the active issues. Maintainers may also remove the stale label at their discretion. Thank you! |
This issue is still a big problem, please address remove the stale label and address @jrhouston |
This is currently Blocked after discussing this issue further with @alexsomesan. I attempted to solve this issue by switching to using Set instead of Lists, however this introduced another problem where an empty metric value gets added when attempting to Patch. We discovered that the extra empty metric value comes from d.Get("metrics").(*Schema.Set) which comes from the terraform-plugin-sdk repo. Several issues are open that sound similar to the one being seen here, we'll come back to this issue once it has been addressed there. hashicorp/terraform-plugin-sdk#588 |
Marking this issue as stale due to inactivity. If this issue receives no comments in the next 30 days it will automatically be closed. If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. This helps our maintainers find and focus on the active issues. Maintainers may also remove the stale label at their discretion. Thank you! |
I don't have the ability to check this at the moment, but I can't find anything about it in the change logs so I assume this is still an issue. |
Terraform Version, Provider Version and Kubernetes Version
Affected Resource(s)
Using this with AWS, not sure if that matters.
Terraform Configuration Files
Steps to Reproduce
terraform apply
(type yes)terraform apply
again without changing configExpected Behavior
No changes should be listed as the config is unchanged.
Actual Behavior
Even though config is unchanged the actions below are listed on every
terraform apply
. If i change the order of metrics in the above config the changes to list memory above cpu, this does not happen.Community Note
The text was updated successfully, but these errors were encountered: