Skip to content

Commit 7824d17

Browse files
Merge pull request GoogleCloudPlatform#1238 from maqiuyujoyce/202402-v1beta1-promotion-instructions
Add instructions for v1alpha1 to v1beta1 promotion
2 parents 0bcf1e4 + e9964f5 commit 7824d17

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
@@ -174,6 +174,14 @@ ServiceMappings file. Add the `ResourceConfig` for your resource:
174174
similar resources, and the comments in
175175
[pkg/apis/core/v1alpha1/servicemapping_types.go](pkg/apis/core/v1alpha1/servicemapping_types.go).
176176

177+
1. If you are adding a resource that is already supported in v1alpha1, specify
178+
the following fields
179+
([example](https://github.com/GoogleCloudPlatform/k8s-config-connector/blob/8ba13a0c1e0563e0e6f9a9f6eeb8a693f9c73acf/config/servicemappings/certificatemanager.yaml#L30-L31)):
180+
1. Set `v1alpha1ToV1beta1` to `true`.
181+
1. Set `storageVersion` to `v1alpha1`.
182+
183+
1. Ensure the `autoGenerated` field is unset.
184+
177185
1. Add `resourceID` if the resource has the resource ID. The value of
178186
`targetField` should be the field name of the user-specified resource ID
179187
field (value of `metadataMapping.name`) or the field name of the

0 commit comments

Comments
 (0)