-
Notifications
You must be signed in to change notification settings - Fork 673
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
Terraform Support for Satellite Storage Configurations & Assignments #4775
Terraform Support for Satellite Storage Configurations & Assignments #4775
Conversation
36287bc
to
9c2295f
Compare
}, | ||
"storage_class_parameters": { | ||
Type: schema.TypeList, | ||
Optional: true, |
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.
In datasource is this optional or computed?
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.
Sorry I'll make it computed
Computed: true, | ||
Description: "The storage configuration parameters depending on the storage template.", | ||
}, | ||
"user_secret_parameters": { |
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.
Same as below
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.
This because we're unable to get the secrets from the server side, I take it as an input through terraform and store it in the state file
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.
Generally users may not send them in tf files for datasources. You can completed remove this from schema
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.
okay done
} | ||
result, _, err := satClient.GetStorageConfiguration(getStorageConfigurationOptions) | ||
if err != nil { | ||
return err |
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.
As per the code I see location and config_name only as inputes
Remaining all shd be computed
82021ce
to
1172ac9
Compare
Fix the conflict files |
6111e25
to
c01d262
Compare
go.mod
Outdated
github.com/IBM-Cloud/container-services-go-sdk v0.0.0-20230118060037-101bda076037 | ||
github.com/IBM-Cloud/power-go-client v1.2.4 | ||
github.com/IBM-Cloud/container-services-go-sdk v0.0.0-20230822142550-30562e113de9 | ||
github.com/IBM-Cloud/power-go-client v1.2.2 |
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.
You are rolling back the changed of this PR
https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4766/files
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
create & validate create and validate Read & Create Function Satellite Config Terraform satellite storage final assignment-creation read function assignment complete sat-storage create changed read changed update & delete modified review comments regex changed final changes delete assignments param added storage configuration final add assignments to groups data sources for config and assignment added storage configuration enhancements storage configuration design updated storage configuration data source updated storage configuration data source updated - 1 satellite-storage docs added comments added secrets updated sensitive attribute added changed storage class param to computed secrets baseline updated secrets updated removed user secret parameters from config data source
87f417c
to
7dc3743
Compare
Now allow users to create and manage the lifecycle of storage configurations and assignments through terraform.
Data sources added
Resources added
Documentation, Unit Tests and the Website changes are added as per
With this you can create storage configurations that can be consistently assigned, updated, and managed across the clusters, service clusters, and cluster groups in your satellite location.
Community Note
Relates OR Closes #0000
Output from acceptance testing: