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 |
lonegunmanb
left a comment
There was a problem hiding this comment.
Thanks @CiucurDaniel for opening this pr! One comment on the variable's type.
| } | ||
|
|
||
| variable "max_surge" { | ||
| type = number |
There was a problem hiding this comment.
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.
Yes, I will update it as well. Having string makes perfect sense so we can use both number or percentage.
| description = "Minimum number of nodes in a pool" | ||
| } | ||
|
|
||
| variable "max_surge" { |
There was a problem hiding this comment.
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.
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 |
lonegunmanb
left a comment
There was a problem hiding this comment.
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.mdfile