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

Feature: Add autoscaling profiles #456

Merged
merged 9 commits into from
Mar 27, 2020
Merged

Feature: Add autoscaling profiles #456

merged 9 commits into from
Mar 27, 2020

Conversation

bharathkkb
Copy link
Member

Fixes #455

  • Adds autoscaling_profile to the cluster_autoscaling obj
  • Added test

@@ -68,7 +68,8 @@ resource "google_container_cluster" "primary" {

{% if beta_cluster %}
cluster_autoscaling {
enabled = var.cluster_autoscaling.enabled
enabled = var.cluster_autoscaling.enabled
autoscaling_profile = var.cluster_autoscaling.autoscaling_profile
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we set a default here (BALANCED)?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have the default in the cluster_autoscaling to BALANCED.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, but that default will only be applied if cluster_autoscaling is omitted entirely. I should be able to specify autoscaling_profile = null to get a sane default (or should the default be disabled?).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, yes good point; will update :)

@bharathkkb bharathkkb requested a review from morgante March 27, 2020 05:37
@morgante morgante merged commit 1ac2c5c into terraform-google-modules:master Mar 27, 2020
CPL-markus pushed a commit to WALTER-GROUP/terraform-google-kubernetes-engine that referenced this pull request Jul 15, 2024
…_autoscaling (terraform-google-modules#456)

* add autoscaling_profile

* default to balanced if autoscaling_profile is null

* default to balanced if autoscaling_profile is null
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.

Add support for autoscaling_profile
2 participants