Skip to content

Commit 190ed4b

Browse files
committed
mark name required for google_cloud_quotas_quota_preference
Based on feedback from @turkenf since we are using the name parameter in the external name here, it would be a good idea to mark it as required. Signed-off-by: Jacob Straszynski <jacob.straszynski@planet.com>
1 parent 40894c6 commit 190ed4b

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

config/cloudquotas/config.go

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// SPDX-FileCopyrightText: 2024 The Crossplane Authors <https://crossplane.io>
2+
//
3+
// SPDX-License-Identifier: CC0-1.0
4+
5+
package cloudquotas
6+
7+
import (
8+
"github.com/crossplane/upjet/pkg/config"
9+
)
10+
11+
// Configure configures individual resources by adding custom
12+
// ResourceConfigurators.
13+
func Configure(p *config.Provider) {
14+
p.AddResourceConfigurator("google_cloud_quotas_quota_preference", func(r *config.Resource) {
15+
r.MarkAsRequired("name")
16+
})
17+
}

0 commit comments

Comments
 (0)