Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fixed cluster resource limits maximum to be marked as required in docs. #21051

Conversation

modular-magician
Copy link
Collaborator

This PR patches parameter cluster. cluster_autoscaling.resource_limits.maximum to be marked as required and sets a minimum value for it.

Current docs indicate that users are able to configure resource limits like so:

resource_limits {
    resource_type = "cpu"
}

This is not a valid configuration and it's getting rejected while attempting to create a cluster with the following error:

Error: googleapi: Error 400: Resource_limit.maximum must be greater than 0.

Release Note Template for Downstream PRs (will be copied)

See Write release notes for guidance.

container: marked `cluster_autoscaling.resource_limits.maximum` as required as requests would fail if it was not set

Derived from GoogleCloudPlatform/magic-modules#12777

…s. (hashicorp#12777)

[upstream:efb7d4653f9f5ebfea45622b89c8b56aa8a354f1]

Signed-off-by: Modular Magician <magic-modules@google.com>
@modular-magician modular-magician requested a review from a team as a code owner January 27, 2025 14:50
@modular-magician modular-magician merged commit bb230c1 into hashicorp:main Jan 27, 2025
4 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant