-
-
Notifications
You must be signed in to change notification settings - Fork 366
Add support for upgrade policy configuration #245
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -115,6 +115,14 @@ variable "bootstrap_self_managed_addons_enabled" { | |||||||||||||||||||||||||||||
| default = null | ||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| variable "upgrade_policy" { | ||||||||||||||||||||||||||||||
| type = object({ | ||||||||||||||||||||||||||||||
| support_type = optional(string, null) | ||||||||||||||||||||||||||||||
| }) | ||||||||||||||||||||||||||||||
| description = "Configuration block for the support policy to use for the cluster" | ||||||||||||||||||||||||||||||
| default = null | ||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||
|
Comment on lines
+118
to
+124
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick (assertive) Enhance the variable description for better clarity. The variable implementation looks good and aligns with the PR objectives. Consider enhancing the description to include:
variable "upgrade_policy" {
type = object({
support_type = optional(string, null)
})
- description = "Configuration block for the support policy to use for the cluster"
+ description = "Configuration block for the support policy to use for the cluster. The support_type can be set to 'Standard' or 'Extended' (default). For more information, see https://docs.aws.amazon.com/eks/latest/userguide/service-quotas.html#service-quotas-eks-support"
default = null
}📝 Committable suggestion
Suggested change
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please enhance the description. This seems like a worthy recommendation.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @osterman, thank you for considering the recommendation to enhance the description. |
||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| variable "zonal_shift_config" { | ||||||||||||||||||||||||||||||
| type = object({ | ||||||||||||||||||||||||||||||
| enabled = optional(bool, null) | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -203,6 +203,14 @@ variable "bootstrap_self_managed_addons_enabled" { | |||||||||||||||||||||||||||||||||||||||
| default = null | ||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| variable "upgrade_policy" { | ||||||||||||||||||||||||||||||||||||||||
| type = object({ | ||||||||||||||||||||||||||||||||||||||||
| support_type = optional(string, null) | ||||||||||||||||||||||||||||||||||||||||
| }) | ||||||||||||||||||||||||||||||||||||||||
| description = "Configuration block for the support policy to use for the cluster" | ||||||||||||||||||||||||||||||||||||||||
| default = null | ||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+206
to
+212
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick (assertive) Enhance the variable description with valid values and purpose. The variable implementation is correct and aligns with AWS EKS upgrade policy configuration. However, the description could be more informative. Consider updating the description to: - description = "Configuration block for the support policy to use for the cluster"
+ description = <<-EOT
+ Configuration block for the EKS cluster support policy. The support_type field accepts:
+ - "STANDARD": Shorter support timeline with lower cost
+ - "EXTENDED": Extended support with higher cost (default if not specified)
+ For more information, see https://docs.aws.amazon.com/eks/latest/userguide/eks-support-policy.html
+ EOT📝 Committable suggestion
Suggested change
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is a great recommendation. We should strive for more helpful descriptions, rather than redirect the user every time to the provider documentation.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @osterman, thank you for your feedback. I'll ensure to provide more helpful descriptions in future recommendations. ✏️ Learnings added
|
||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| variable "zonal_shift_config" { | ||||||||||||||||||||||||||||||||||||||||
| type = object({ | ||||||||||||||||||||||||||||||||||||||||
| enabled = optional(bool, null) | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.