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
Update Terraform SDK to V2 #1139
Update Terraform SDK to V2 #1139
Conversation
Build failed.
|
Merge Failed. This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset. |
Build failed.
|
Build failed.
|
Build failed.
|
Build failed.
|
Build failed.
|
recheck |
Build failed.
|
d190d3f
to
0273ab7
Compare
Build failed.
|
recheck |
Build failed.
|
recheck |
Build failed.
|
recheck |
Build failed.
|
|
Related issue: theopenlab/openlab#808 |
recheck |
Build failed.
|
recheck |
Build failed.
|
b394b00
to
48e7099
Compare
Build failed.
|
48e7099
to
6c6693f
Compare
Build failed.
|
6c6693f
to
7e573e0
Compare
Build failed.
|
7e573e0
to
47ba276
Compare
Build failed.
|
recheck |
Build failed.
|
recheck |
Build failed.
|
recheck |
Build failed.
|
recheck |
Build failed.
|
47ba276
to
de10539
Compare
Build failed.
|
Use v2.7.1 version of terraform-plugin-sdk. Cleanup imports. Change `validation.SingleIP()` -> `validation.IsIPAddress`, `validation.ValidateRFC3339TimeString` -> `validation.IsRFC3339Time`. Replace `Removed` Schema property with `Deprecated`. Provide context into CustomizeDiff functions. Use functions with the new signatures to configure the Provider with Terraform SDK V2. Add context into resourceImagesImageV2UpdateComputedAttributes. Fix gofmt in pathorcontents package. Fix networking_port_v2 datasource issue: "profile: StateFunc is extraneous, value should just be changed before setting on computed-only field" by removing custom StateFunc. Fix containerinfra_cluster_v1 resource issuze: "kubeconfig: TypeMap with Elem *Resource not supported, use TypeList/TypeSet with Elem *Resource or TypeMap with Elem *Schema" by changing type to Type.Schema and updating flattenContainerInfraV1Kubeconfig function. Change the deprecated "Providers" field of resource.Test to "ProviderFactories". Use CreateContext, ReadContext, UpdateContext, DeleteContext instead of deprecated resource functions. Use diag.Diagnostics and Context for those functions. Disable `TestAccComputeV2SecGroup_self`, `TestAccComputeV2SecGroup_lowerCaseCIDR`, `TestAccNetworkingV2Subnet_allocationPool` tests since SDK V2 currently does not support indexes into TypeSet. Disable `TestAccComputeV2FloatingIPAssociate_attachToFirstNetwork` test since SDK V2 fails with collection error. Add `image_name`, `power_state` attributes to `compute_instance_v2` datasource since we try to set them just like in resource. Convert blockstorage quotaset volume types map to map of strings before calling Set. Update `TestAccBlockStorageQuotasetV3_basic` volume types quotas. Disabled flacky `TestAccNetworkingV2Trunk_trunkUpdateSubports` test since it can fail with `PortInUse` error.
de10539
to
620bcbf
Compare
Build succeeded.
|
Use v2.7.1 version of terraform-plugin-sdk.
Cleanup imports.
Change
validation.SingleIP()
->validation.IsIPAddress
,validation.ValidateRFC3339TimeString
->validation.IsRFC3339Time
.Replace
Removed
Schema property withDeprecated
.Provide context into CustomizeDiff functions.
Use functions with the new signatures to configure the Provider with
Terraform SDK V2.
Add context into resourceImagesImageV2UpdateComputedAttributes.
Fix gofmt in pathorcontents package.
Fix networking_port_v2 datasource issue: "profile: StateFunc is
extraneous, value should just be changed before setting on computed-only
field" by removing custom StateFunc.
Fix containerinfra_cluster_v1 resource issuze: "kubeconfig: TypeMap with
Elem *Resource not supported, use TypeList/TypeSet with Elem *Resource
or TypeMap with Elem *Schema" by changing type to Type.Schema and
updating flattenContainerInfraV1Kubeconfig function.
Change the deprecated "Providers" field of resource.Test to
"ProviderFactories".
Use CreateContext, ReadContext, UpdateContext, DeleteContext instead of
deprecated resource functions. Use diag.Diagnostics and Context for
those functions.
Disable
TestAccComputeV2SecGroup_self
,TestAccComputeV2SecGroup_lowerCaseCIDR
,TestAccNetworkingV2Subnet_allocationPool
tests since SDK V2 currently does not support indexes into TypeSet.
Disable
TestAccComputeV2FloatingIPAssociate_attachToFirstNetwork
testsince SDK V2 fails with collection error.
Add
image_name
,power_state
attributes tocompute_instance_v2
datasourcesince we try to set them just like in resource.
Convert blockstorage quotaset volume types map to map of strings before
calling Set.
Update
TestAccBlockStorageQuotasetV3_basic
volume types quotas.Disabled flacky
TestAccNetworkingV2Trunk_trunkUpdateSubports
test sinceit can fail with
PortInUse
error.