Skip to content

Commit

Permalink
Merge pull request #196 from XXXLutz/Instance_Use-selflink-instead-of…
Browse files Browse the repository at this point in the history
…-resourceId

Instance - Use selflink instead of resourceId
  • Loading branch information
sergenyalcin authored Feb 7, 2023
2 parents 5e9926d + 689a7d4 commit 20d91ee
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions apis/compute/v1beta1/zz_generated.resolvers.go

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

2 changes: 2 additions & 0 deletions apis/compute/v1beta1/zz_instance_types.go

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

6 changes: 4 additions & 2 deletions config/compute/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,12 @@ func Configure(p *config.Provider) { //nolint: gocyclo
Schema["labels"].Elem = schema.TypeString

r.References["network_interface.network"] = config.Reference{
Type: "Network",
Type: "Network",
Extractor: common.PathSelfLinkExtractor,
}
r.References["network_interface.subnetwork"] = config.Reference{
Type: "Subnetwork",
Type: "Subnetwork",
Extractor: common.PathSelfLinkExtractor,
}
r.References["boot_disk.initialize_params.image"] = config.Reference{
Type: "Image",
Expand Down

0 comments on commit 20d91ee

Please sign in to comment.