-
Notifications
You must be signed in to change notification settings - Fork 476
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
Add upgrade_settings block for default nodepool #391
Add upgrade_settings block for default nodepool #391
Conversation
@microsoft-github-policy-service agree |
@lonegunmanb please can we enable the CI for this PR ? @CiucurDaniel Have you tested locally the |
@zioproto I added a second commit with the updated readme after |
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.
Thanks @CiucurDaniel for opening this pr! One comment on the variable's type.
variables.tf
Outdated
@@ -57,6 +57,12 @@ variable "agents_min_count" { | |||
description = "Minimum number of nodes in a pool" | |||
} | |||
|
|||
variable "max_surge" { | |||
type = number |
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.
Since we can set a percentage value to this variable, should we use string
as type?
Thanks to your pr, I found that the current variable's type for additional node pool is also incorrect, would you please correct it in this pr for us? Thanks!
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.
Yes, I will update it as well. Having string makes perfect sense so we can use both number or percentage.
variables.tf
Outdated
@@ -57,6 +57,12 @@ variable "agents_min_count" { | |||
description = "Minimum number of nodes in a pool" | |||
} | |||
|
|||
variable "max_surge" { |
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.
Another thought, since this variable is used for default node pool, and other variables for this default node pool all have "agents_pool_" as name's prefix, could we rename this variable to agents_pool_max_surge
?
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.
Sure, I totally agree.
I updated the type on both node pools and I did ran both |
Potential Breaking Changes in 0273da6: |
I tested it and it is not a breaking change. I first applied this change to our existing example, and I applied the Terraform example:
and then I applied again with this module change:
The second |
How may I be of further help here? @zioproto |
@lonegunmanb the e2e tests failed here:
It this failure related to the change we are testing ? |
I am running the end to end tests on my laptop on
|
Thanks @CiucurDaniel and @zioproto, the error was triggered by incorrect test code, I'm curious why we didn't find it at the first place. The incorrect test code: func TestExamples_differentLocationForLogAnalyticsSolution(t *testing.T) {
var vars map[string]any
managedIdentityId := os.Getenv("MSI_ID")
if managedIdentityId != "" {
vars = map[string]any{
"managed_identity_principal_id": managedIdentityId,
}
}
vars["log_analytics_workspace_location"] = "eastus2"
test_helper.RunE2ETest(t, "../../", "examples/named_cluster", terraform.Options{
Upgrade: true,
Vars: vars,
}, nil)
} We need init |
I believe it's an occasional error, we used |
It seems
|
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.
Thanks @CiucurDaniel for the update, LGTM! 🚀
* Add upgrade_settings block for default nodepool
Describe your changes
This PR gives the user the option to configure upgrade_settings block on the default node pool. Until now this was only possible on the additional node pools.
Issue number
#388
Checklist before requesting a review
CHANGELOG.md
file