-
Notifications
You must be signed in to change notification settings - Fork 2
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
Conversation
Pending: []string{"notdone"}, | ||
Target: []string{"done"}, |
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.
We can have them as adding
and added
for pending and target.
…m into resource-placement-group
Required: true, | ||
Type: schema.TypeString, | ||
ValidateFunc: validate.ValidateAllowedStringValues([]string{"affinity", "anti-affinity"}), |
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.
I have added allowed value in the constant file for those two as:
// Allowed Values
Affinity = "affinity"
AntiAffinity = "anti-affinity"
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.
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) { |
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.
Could you add constant for the one you just added ? adding
, added
, 'deleting', 'deleted'
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.
Updated
…m into resource-placement-group
…raform-provider-ibm into resource-placement-group
Opened in main terraform repo: IBM-Cloud#5335 |
Test: