Skip to content

Commit

Permalink
Upgrade terraform provider google beta to v5.20.0 (#1824)
Browse files Browse the repository at this point in the history
Fixes #1816

The automated upgrade-provider job failed because several new resources
did not have docs auto-discovered. These are now workaround by listing
these resources as OK to proceed without docs.

```
error: failed to gather package metadata: problem gathering resources: 3 errors occurred:
	* could not find docs for resource 'google_clouddeploy_custom_target_type_iam_binding'. Override the Docs property in the resource mapping. See type tfbridge.DocInfo for details.
	* could not find docs for resource 'google_clouddeploy_custom_target_type_iam_member'. Override the Docs property in the resource mapping. See type tfbridge.DocInfo for details.
	* could not find docs for resource 'google_clouddeploy_custom_target_type_iam_policy'. Override the Docs property in the resource mapping. See type tfbridge.DocInfo for details.
	
```

Diving a bit deeper there is a strange pattern where three resources are
documented in a single markdown file (and shown on a single page in TF
registry), this one:


./upstream/website/docs/r/clouddeploy_custom_target_type_iam.html.markdown

The file itself does not correspond to any one of these resources but to
all three together. We don't yet support this pattern but we could
experiment with broadcasting this file as the "source" for every three
resources and see how that projects into the docs.
  • Loading branch information
t0yv0 committed Mar 13, 2024
1 parent 6918cf0 commit 62d279c
Show file tree
Hide file tree
Showing 166 changed files with 13,310 additions and 516 deletions.
81 changes: 80 additions & 1 deletion provider/cmd/pulumi-resource-gcp/bridge-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -4016,6 +4016,31 @@
}
}
},
"google_clouddeploy_custom_target_type_iam_binding": {
"current": "gcp:clouddeploy/customTargetTypeIamBinding:CustomTargetTypeIamBinding",
"majorVersion": 7,
"fields": {
"condition": {
"maxItemsOne": true
},
"members": {
"maxItemsOne": false
}
}
},
"google_clouddeploy_custom_target_type_iam_member": {
"current": "gcp:clouddeploy/customTargetTypeIamMember:CustomTargetTypeIamMember",
"majorVersion": 7,
"fields": {
"condition": {
"maxItemsOne": true
}
}
},
"google_clouddeploy_custom_target_type_iam_policy": {
"current": "gcp:clouddeploy/customTargetTypeIamPolicy:CustomTargetTypeIamPolicy",
"majorVersion": 7
},
"google_clouddeploy_delivery_pipeline": {
"current": "gcp:clouddeploy/deliveryPipeline:DeliveryPipeline",
"majorVersion": 7,
Expand Down Expand Up @@ -15937,6 +15962,29 @@
"maxItemsOne": true,
"elem": {
"fields": {
"deployment_configs": {
"maxItemsOne": false,
"elem": {
"fields": {
"container_resources": {
"maxItemsOne": true,
"elem": {
"fields": {
"limits": {
"maxItemsOne": true
},
"requests": {
"maxItemsOne": true
}
}
}
},
"pod_tolerations": {
"maxItemsOne": false
}
}
}
},
"exemptable_namespaces": {
"maxItemsOne": false
},
Expand All @@ -15954,6 +16002,16 @@
"maxItemsOne": true,
"elem": {
"fields": {
"bundles": {
"maxItemsOne": false,
"elem": {
"fields": {
"exempted_namespaces": {
"maxItemsOne": false
}
}
}
},
"template_library": {
"maxItemsOne": true
}
Expand Down Expand Up @@ -17873,7 +17931,20 @@
"elem": {
"fields": {
"cert_chains": {
"maxItemsOne": true
"maxItemsOne": true,
"elem": {
"fields": {
"cavium_certs": {
"maxItemsOne": false
},
"google_card_certs": {
"maxItemsOne": false
},
"google_partition_certs": {
"maxItemsOne": false
}
}
}
},
"external_protection_level_options": {
"maxItemsOne": true
Expand Down Expand Up @@ -24960,6 +25031,10 @@
"current": "gcp:cloudbuildv2/getConnectionIamPolicy:getConnectionIamPolicy",
"majorVersion": 7
},
"google_clouddeploy_custom_target_type_iam_policy": {
"current": "gcp:clouddeploy/getCustomTargetTypeIamPolicy:getCustomTargetTypeIamPolicy",
"majorVersion": 7
},
"google_clouddeploy_delivery_pipeline_iam_policy": {
"current": "gcp:clouddeploy/getDeliveryPipelineIamPolicy:getDeliveryPipelineIamPolicy",
"majorVersion": 7
Expand Down Expand Up @@ -29903,6 +29978,9 @@
"gcp:cloudbuildv2/repository:Repository": 0,
"gcp:clouddeploy/automation:Automation": 0,
"gcp:clouddeploy/customTargetType:CustomTargetType": 0,
"gcp:clouddeploy/customTargetTypeIamBinding:CustomTargetTypeIamBinding": 0,
"gcp:clouddeploy/customTargetTypeIamMember:CustomTargetTypeIamMember": 0,
"gcp:clouddeploy/customTargetTypeIamPolicy:CustomTargetTypeIamPolicy": 0,
"gcp:clouddeploy/deliveryPipeline:DeliveryPipeline": 0,
"gcp:clouddeploy/deliveryPipelineIamBinding:DeliveryPipelineIamBinding": 0,
"gcp:clouddeploy/deliveryPipelineIamMember:DeliveryPipelineIamMember": 0,
Expand Down Expand Up @@ -30663,6 +30741,7 @@
"gcp:cloudasset/getResourcesSearchAll:getResourcesSearchAll": 0,
"gcp:cloudbuild/getTrigger:getTrigger": 0,
"gcp:cloudbuildv2/getConnectionIamPolicy:getConnectionIamPolicy": 0,
"gcp:clouddeploy/getCustomTargetTypeIamPolicy:getCustomTargetTypeIamPolicy": 0,
"gcp:clouddeploy/getDeliveryPipelineIamPolicy:getDeliveryPipelineIamPolicy": 0,
"gcp:clouddeploy/getTargetIamPolicy:getTargetIamPolicy": 0,
"gcp:cloudfunctions/getFunction:getFunction": 0,
Expand Down

0 comments on commit 62d279c

Please sign in to comment.