Skip to content

Commit 59d83f3

Browse files
committed
Add instructions for v1alpha1 to v1beta1 promotion
1 parent fc9432d commit 59d83f3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.NewResourceFromTerraform.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,14 @@ ServiceMappings file. Add the `ResourceConfig` for your resource:
236236

237237
1. Fill out the `resourceAvailableInAssetInventory`. Set to false.
238238

239+
1. If you are adding a resource that is already supported in v1alpha1, specify
240+
the following fields
241+
([example](https://github.com/GoogleCloudPlatform/k8s-config-connector/blob/8ba13a0c1e0563e0e6f9a9f6eeb8a693f9c73acf/config/servicemappings/certificatemanager.yaml#L30-L31)):
242+
1. Set `v1alpha1ToV1beta1` to `true`.
243+
1. Set `storageVersion` to `v1alpha1`.
244+
245+
1. Ensure the `autoGenerated` field is unset.
246+
239247
1. Add `hierarchicalReferences` if they exist. Determine if the corresonding
240248
Terraform resource exposes one or more parent resources through top-level
241249
fields. These fields can have names like `org_id`, `parent_org_id`,

0 commit comments

Comments
 (0)