Skip to content

Commit

Permalink
fix: only set location in configurator
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 17, 2025
1 parent 0da584e commit 17e6bbe
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 21 deletions.
8 changes: 4 additions & 4 deletions apis/dataplex/v1beta1/zz_generated.resolvers.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 8 additions & 6 deletions apis/dataplex/v1beta1/zz_lakeiampolicy_types.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions config/dataplex/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ func Configure(p *config.Provider) {
})

p.AddResourceConfigurator("google_dataplex_lake_iam_policy", func(r *config.Resource) {
r.References["project"] = config.Reference{
TerraformName: "google_project",
}
r.MarkAsRequired("location")
})
}
12 changes: 4 additions & 8 deletions package/crds/dataplex.gcp.upbound.io_lakeiampolicies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,7 @@ spec:
If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
type: string
projectRef:
description: Reference to a Project in cloudplatform to populate
project.
description: Reference to a Lake in dataplex to populate project.
properties:
name:
description: Name of the referenced object.
Expand Down Expand Up @@ -273,8 +272,7 @@ spec:
- name
type: object
projectSelector:
description: Selector for a Project in cloudplatform to populate
project.
description: Selector for a Lake in dataplex to populate project.
properties:
matchControllerRef:
description: |-
Expand Down Expand Up @@ -340,8 +338,7 @@ spec:
If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
type: string
projectRef:
description: Reference to a Project in cloudplatform to populate
project.
description: Reference to a Lake in dataplex to populate project.
properties:
name:
description: Name of the referenced object.
Expand Down Expand Up @@ -375,8 +372,7 @@ spec:
- name
type: object
projectSelector:
description: Selector for a Project in cloudplatform to populate
project.
description: Selector for a Lake in dataplex to populate project.
properties:
matchControllerRef:
description: |-
Expand Down

0 comments on commit 17e6bbe

Please sign in to comment.