Skip to content

Commit

Permalink
CRD API conversion functions to convert between singleton list & embe…
Browse files Browse the repository at this point in the history
…dded object API versions

Signed-off-by: Alper Rifat Ulucinar <[email protected]>
  • Loading branch information
ulucinar committed Apr 18, 2024
1 parent bf9bf2a commit 8342e74
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion config/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func bumpVersionsWithEmbeddedLists(pc *ujconfig.Provider) {
for _, r := range pc.Resources {
// nothing to do if no singleton list has been converted to
// an embedded object
if len(r.ListConversionPaths()) == 0 {
if len(r.TFListConversionPaths()) == 0 {
continue
}
r.Version = "v1beta2"
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -151,4 +151,4 @@ replace github.com/hashicorp/terraform-provider-azuread => github.com/upbound/te

replace github.com/hashicorp/terraform-plugin-sdk/v2 => github.com/hashicorp/terraform-plugin-sdk/v2 v2.29.0

replace github.com/crossplane/upjet => github.com/ulucinar/upbound-upjet v0.0.0-20240417215530-f9c25a526a72
replace github.com/crossplane/upjet => github.com/ulucinar/upbound-upjet v0.0.0-20240418122441-dd403782e619
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1178,8 +1178,8 @@ github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcU
github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
github.com/tmccombs/hcl2json v0.3.3 h1:+DLNYqpWE0CsOQiEZu+OZm5ZBImake3wtITYxQ8uLFQ=
github.com/tmccombs/hcl2json v0.3.3/go.mod h1:Y2chtz2x9bAeRTvSibVRVgbLJhLJXKlUeIvjeVdnm4w=
github.com/ulucinar/upbound-upjet v0.0.0-20240417215530-f9c25a526a72 h1:F966gUbehd+x0JtPjfatWdAUWr5XdMplvH7xiAz5Zcg=
github.com/ulucinar/upbound-upjet v0.0.0-20240417215530-f9c25a526a72/go.mod h1:0bHLtnejZ9bDeyXuBb9MSOQLvKo3+aoTeUBO8N0dGSA=
github.com/ulucinar/upbound-upjet v0.0.0-20240418122441-dd403782e619 h1:qoEC0FMZWB4ufGznaYkvVIyOxjeibddg9E2dJLG2nnw=
github.com/ulucinar/upbound-upjet v0.0.0-20240418122441-dd403782e619/go.mod h1:0bHLtnejZ9bDeyXuBb9MSOQLvKo3+aoTeUBO8N0dGSA=
github.com/upbound/terraform-provider-azuread v0.0.0-20240311141618-ce1f46c21020 h1:BP26QEhnXcWxbJpbOT+e4bP+c9FTvqhGbtnkwXerOhA=
github.com/upbound/terraform-provider-azuread v0.0.0-20240311141618-ce1f46c21020/go.mod h1:iVryf2s08Hi6HLHh4W40fudtInXuK5Y1cWVOM/3szT8=
github.com/vmihailenco/msgpack v3.3.3+incompatible/go.mod h1:fy3FlTQTDXWkZ7Bh6AcGMlsjHatGryHQYUTf1ShIgkk=
Expand Down

0 comments on commit 8342e74

Please sign in to comment.