-
Notifications
You must be signed in to change notification settings - Fork 36
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
feat: support granular aggressive mode config #458
feat: support granular aggressive mode config #458
Conversation
b07ca31
to
83e6dd1
Compare
"ignoreLocalPersistentVolumes": true | ||
"ignoreLocalPersistentVolumes": true, | ||
"ignoreProblemJobPods": true, | ||
"ignoreProblemRemovalDisabledPods": true, | ||
"ignoreProblemPodsWithoutController": true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you fix indentation here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I’ll make the changes you've suggested in a separate PR, since this one has already been merged. Sounds fair?
resource.TestCheckResourceAttr("castai_rebalancing_schedule.test", "launch_configuration.0.aggressive_mode", "true"), | ||
resource.TestCheckResourceAttr("castai_rebalancing_schedule.test", "launch_configuration.0.aggressive_mode_config.0.ignore_local_persistent_volumes", "true"), | ||
resource.TestCheckResourceAttr("castai_rebalancing_schedule.test", "launch_configuration.0.aggressive_mode_config.0.ignore_problem_job_pods", "true"), | ||
resource.TestCheckResourceAttr("castai_rebalancing_schedule.test", "launch_configuration.0.aggressive_mode_config.0.ignore_problem_removal_disabled_pods", "true"), | ||
resource.TestCheckResourceAttr("castai_rebalancing_schedule.test", "launch_configuration.0.aggressive_mode_config.0.ignore_problem_pods_without_controller", "true"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you move ImportState test cases to the end? That way they will test new fields you added plus verify that after import the terraform plan
has empty output.
This PR adds support for an updated granular aggressive mode config in scheduled rebalancing. We intend to replace the legacy bool-based
aggressiveMode
flag by this config.