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

Terraform Support for Satellite Storage Configurations & Assignments #4775

Merged
merged 3 commits into from
Sep 15, 2023

Conversation

aayushsss1
Copy link
Contributor

Now allow users to create and manage the lifecycle of storage configurations and assignments through terraform.

Data sources added

  • ibm_satellite_storage_configuration
  • ibm_satellite_storage_assignment

Resources added

  • ibm_satellite_storage_configuration
  • ibm_satellite_storage_assignment

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

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

Relates OR Closes #0000

Output from acceptance testing:

$ make testacc TESTARGS='-run=TestAccXXX'

...

@aayushsss1 aayushsss1 force-pushed the satellite-storage-terraform branch from 36287bc to 9c2295f Compare August 31, 2023 06:17
@aayushsss1 aayushsss1 marked this pull request as ready for review September 5, 2023 05:29
},
"storage_class_parameters": {
Type: schema.TypeList,
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.

In datasource is this optional or computed?

Copy link
Contributor Author

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": {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same as below

Copy link
Contributor Author

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

Copy link
Collaborator

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

Copy link
Contributor Author

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
Copy link
Collaborator

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

@aayushsss1 aayushsss1 force-pushed the satellite-storage-terraform branch from 82021ce to 1172ac9 Compare September 14, 2023 13:30
@hkantare
Copy link
Collaborator

Fix the conflict files

@aayushsss1 aayushsss1 force-pushed the satellite-storage-terraform branch from 6111e25 to c01d262 Compare September 14, 2023 15:06
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
Copy link
Collaborator

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

Copy link
Contributor Author

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
@aayushsss1 aayushsss1 force-pushed the satellite-storage-terraform branch from 87f417c to 7dc3743 Compare September 15, 2023 02:55
@hkantare hkantare merged commit 0a7ebd9 into IBM-Cloud:master Sep 15, 2023
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