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

Service fabric cluster upgrade policy #6273

Closed

Conversation

JSchenken
Copy link
Contributor

Address #6152

Add upgrade_description property, and necessary other blocks, to service_fabric_cluster resource. Documentation also added.

@JSchenken

This comment has been minimized.

Copy link
Collaborator

@katbyte katbyte left a comment

Choose a reason for hiding this comment

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

Hey @JSchenken - thank your for this PR and we're really sorry its taken this long to give it a review, it seems to have fallen through the cracks 😞

I've given the schema a look at and i left some suggestions inline to clean it up and improve the UX, let me know what you think

@@ -273,6 +273,123 @@ func resourceArmServiceFabricCluster() *schema.Resource {
},
},

"upgrade_description": {
Copy link
Collaborator

Choose a reason for hiding this comment

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

description doesn't make sense, could we chanege thi to

Suggested change
"upgrade_description": {
"upgrade_policy": {

MaxItems: 1,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"force_restart": {
Copy link
Collaborator

Choose a reason for hiding this comment

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

we usually put enabled in the name on booleans

Suggested change
"force_restart": {
"force_restart_enabled": {

Type: schema.TypeBool,
Optional: true,
},
"health_check_retry_timeout": {
Copy link
Collaborator

Choose a reason for hiding this comment

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

could we add the units here?

Suggested change
"health_check_retry_timeout": {
"health_check_retry_timeout_min|hours|seccons": {

Optional: true,
},
"health_check_retry_timeout": {
Type: schema.TypeString,
Copy link
Collaborator

Choose a reason for hiding this comment

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

should this be an int instead of a string?

"health_check_retry_timeout": {
Type: schema.TypeString,
Optional: true,
},
Copy link
Collaborator

Choose a reason for hiding this comment

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

could we validate this property?

Optional: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"application_type": {
Copy link
Collaborator

Choose a reason for hiding this comment

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

and remove application here

Suggested change
"application_type": {
"type": {

Type: schema.TypeString,
Required: true,
},
"default_service_type_delta_health_policy": {
Copy link
Collaborator

Choose a reason for hiding this comment

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

same goes here

Suggested change
"default_service_type_delta_health_policy": {
"default_service_policy": {

},
},
},
"service_type_delta_health_policy": {
Copy link
Collaborator

Choose a reason for hiding this comment

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

and here

Suggested change
"service_type_delta_health_policy": {
"service_policy": {

Optional: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"service_type": {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
"service_type": {
"type": {

Type: schema.TypeString,
Required: true,
},
"max_percent_delta_unhealthy_services": {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
"max_percent_delta_unhealthy_services": {
"max_unhealthy_services_percent": {

@ghost ghost added size/XXL and removed size/XL labels Feb 24, 2021
@katbyte
Copy link
Collaborator

katbyte commented Mar 1, 2021

closing as this was superseded by #10713

@katbyte katbyte closed this Mar 1, 2021
@katbyte katbyte modified the milestones: v2.50.0, v2.49.0 Mar 1, 2021
@ghost
Copy link

ghost commented Mar 31, 2021

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!

@ghost ghost locked as resolved and limited conversation to collaborators Mar 31, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants