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

[Resource] Refactor ibm_pi_placement_group resource #116

Closed
wants to merge 12 commits into from

Conversation

ismirlia
Copy link
Collaborator

@ismirlia ismirlia commented Apr 26, 2024

Test:

--- PASS: TestAccIBMPIPlacementGroupBasic (3601.37s)
PASS

Comment on lines 960 to 961
Pending: []string{"notdone"},
Target: []string{"done"},
Copy link
Collaborator

Choose a reason for hiding this comment

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

We can have them as adding and added for pending and target.

@ismirlia ismirlia requested a review from michaelkad May 1, 2024 17:39
Required: true,
Type: schema.TypeString,
ValidateFunc: validate.ValidateAllowedStringValues([]string{"affinity", "anti-affinity"}),
Copy link
Collaborator

Choose a reason for hiding this comment

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

I have added allowed value in the constant file for those two as:

// Allowed Values
	Affinity                  = "affinity"
	AntiAffinity              = "anti-affinity"

Copy link
Collaborator

@michaelkad michaelkad left a comment

Choose a reason for hiding this comment

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

I missed those earlier

@@ -944,12 +953,76 @@ func isPIInstanceRefreshFunc(client *st.IBMPIInstanceClient, id, instanceReadySt
}
}

func isWaitForPIInstancePlacementGroupAdd(ctx context.Context, client *st.IBMPIPlacementGroupClient, pgID string, id string) (interface{}, error) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could you add constant for the one you just added ? adding, added, 'deleting', 'deleted'

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Updated

@ismirlia
Copy link
Collaborator Author

ismirlia commented May 6, 2024

Opened in main terraform repo: IBM-Cloud#5335

@ismirlia ismirlia closed this May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants