Skip to content
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

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

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. (#12777)

[upstream:efb7d4653f9f5ebfea45622b89c8b56aa8a354f1]

Signed-off-by: Modular Magician <[email protected]>
@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 70ca52a into hashicorp:main Jan 27, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant