Skip to content

Commit

Permalink
chore: run make reviewable fix linter and generated example
Browse files Browse the repository at this point in the history
Signed-off-by: Chloe CARAYON <[email protected]>
  • Loading branch information
Chloe-Carayon committed Jan 8, 2025
1 parent 8f0ab1e commit 9ac3895
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 24 deletions.
6 changes: 3 additions & 3 deletions config/externalname.go
Original file line number Diff line number Diff line change
Expand Up @@ -429,9 +429,9 @@ var terraformPluginSDKExternalNameConfigs = map[string]config.ExternalName{
// Imported by using the following format: projects/{{project}}/locations/{{location}}/lakes/{{lake}} roles/viewer
"google_dataplex_lake_iam_binding": config.IdentifierFromProvider,
// Imported by using the following format: projects/{{project}}/locations/{{location}}/lakes/{{lake}} roles/viewer user:[email protected]
"google_dataplex_lake_iam_member": config.IdentifierFromProvider,
// Imported by using the following format: projects/{{project}}/locations/{{location}}/lakes/{{lake}}
"google_dataplex_lake_iam_policy": config.TemplatedStringAsIdentifier("", "projects/{{ .setup.configuration.project }}/locations/{{ .parameters.location }}/lakes/{{ .external_name }}"),
"google_dataplex_lake_iam_member": config.IdentifierFromProvider,
// Imported by using the following format: projects/{{project}}/locations/{{location}}/lakes/{{lake}}
"google_dataplex_lake_iam_policy": config.TemplatedStringAsIdentifier("", "projects/{{ .setup.configuration.project }}/locations/{{ .parameters.location }}/lakes/{{ .external_name }}"),
// Imported by using the following projects/{{project}}/locations/{{location}}/lakes/{{lake}}/zones/{{dataplex_zone}}/assets/{{name}}
"google_dataplex_asset": config.TemplatedStringAsIdentifier("name", "projects/{{ .setup.configuration.project }}/locations/{{ .parameters.location }}/lakes/{{ .parameters.lake }}/zones/{{ .parameters.dataplex_zone }}/assets/{{ .external_name }}"),
// Imported by using the following projects/{{project}}/locations/{{location}}/lakes/{{lake}}/zones/{{name}}
Expand Down
28 changes: 7 additions & 21 deletions examples-generated/dataplex/v1beta1/lakeiampolicy.yaml
Original file line number Diff line number Diff line change
@@ -1,21 +1,4 @@
apiVersion: dataplex.gcp.upbound.io/v1beta1
kind: Lake
metadata:
annotations:
meta.upbound.io/example-id: dataplex/v1beta1/lake
labels:
testing.upbound.io/example-name: primary
name: primary
spec:
forProvider:
description: Lake for DCL
displayName: Lake for DCL
labels:
my-lake: exists
location: us-west1
project: my-project-name
---
apiVersion: dataplex.gcp.upbound.io/v1beta1
kind: LakeIAMPolicy
metadata:
annotations:
Expand All @@ -25,10 +8,13 @@ metadata:
name: policy
spec:
forProvider:
lake: primary
lakeSelector:
matchLabels:
testing.upbound.io/example-name: example
locationSelector:
matchLabels:
testing.upbound.io/example-name: primary
testing.upbound.io/example-name: example
policyData: ${data.google_iam_policy.admin.policy_data}
project: my-project-name
location: us-west1
projectSelector:
matchLabels:
testing.upbound.io/example-name: example

0 comments on commit 9ac3895

Please sign in to comment.