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

added flexcache resource, data source and data sources. #134

Merged

Conversation

wenjun666
Copy link
Contributor

@wenjun666 wenjun666 commented Feb 15, 2024

@wenjun666 wenjun666 linked an issue Feb 15, 2024 that may be closed by this pull request
@chuyich
Copy link
Contributor

chuyich commented Feb 16, 2024

The provider.tf in examples should be a link to examples/provider/provider.tf

@chuyich
Copy link
Contributor

chuyich commented Feb 16, 2024

Missing doc and changelog.

Copy link
Contributor

@carchi8py carchi8py left a comment

Choose a reason for hiding this comment

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

You missing the documentation pages.

internal/provider/provider.go Outdated Show resolved Hide resolved
internal/provider/provider.go Outdated Show resolved Hide resolved
@suhasbshekar suhasbshekar linked an issue Feb 20, 2024 that may be closed by this pull request
Copy link
Contributor

@chuyich chuyich left a comment

Choose a reason for hiding this comment

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

@wenjun666 wenjun666 requested a review from chuyich April 2, 2024 22:49
@wenjun666 wenjun666 requested a review from carchi8py April 3, 2024 23:21
internal/provider/storage_flexcache_resource.go Dismissed Show dismissed Hide dismissed
internal/provider/storage_flexcache_resource.go Dismissed Show dismissed Hide dismissed
internal/provider/storage_flexcache_resource.go Dismissed Show dismissed Hide dismissed
internal/provider/storage_flexcache_resource.go Dismissed Show dismissed Hide dismissed
internal/provider/storage_flexcache_resource.go Dismissed Show dismissed Hide dismissed
internal/provider/storage_flexcache_resource.go Dismissed Show dismissed Hide dismissed
internal/provider/storage_flexcache_data_source.go Dismissed Show dismissed Hide dismissed
Computed: true,
Optional: true,
},
"size_unit": schema.StringAttribute{
Copy link
Contributor

Choose a reason for hiding this comment

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

line 410 to me it's required. Or should this have a default value?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

“If not specified in POST, the following default property values are assigned:
size - 10% of origin volume size or 1GB per constituent, whichever is greater.”

It should just let the API decides what to set if user didn't give a input.

Copy link
Contributor

@chuyich chuyich Apr 5, 2024

Choose a reason for hiding this comment

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

If so, then on line 410 needs to be adjusted. If the user does not provide size and size unit, it will be failed with on line 410. i would suggest to have an acc test with minimum configuration (without size, size unit,...) to see if that works.

MarkdownDescription: "Name of the svm to use",
Required: true,
},
//there could be a space not enough or storage type error if the aggreates are not set
Copy link
Contributor

Choose a reason for hiding this comment

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

Based on the comment, then aggregate should be required, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

no, it doesn't have to be. It will be auto assign it no aggregate given. But that's not guarantee to work.

@wenjun666 wenjun666 requested a review from chuyich April 5, 2024 00:04
@wenjun666 wenjun666 merged commit 887384a into integration/main Apr 5, 2024
11 checks passed
@carchi8py carchi8py deleted the 46-new-resource-storageflexcacheflexcaches branch April 24, 2024 18:23
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.

[New Data Source]: /storage/flexcache/flexcaches [New Resource]: /storage/flexcache/flexcaches
4 participants