Skip to content

Commit

Permalink
add metadata info
Browse files Browse the repository at this point in the history
Signed-off-by: ocobleseqx <[email protected]>
  • Loading branch information
ocobleseqx committed Mar 6, 2024
1 parent 04c28e3 commit 0fd4327
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions provider/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ import (
"strings"
"unicode"

// embed is used to store bridge-metadata.json in the compiled binary
_ "embed"

"github.com/equinix/pulumi-equinix/provider/pkg/version"
equinixShim "github.com/equinix/terraform-provider-equinix/shim"
pfbridge "github.com/pulumi/pulumi-terraform-bridge/pf/tfbridge"
Expand Down Expand Up @@ -128,6 +131,7 @@ func Provider() tfbridge.ProviderInfo {
GitHubOrg: "equinix",
UpstreamRepoPath: "./upstream",
Version: version.Version,
MetadataInfo: tfbridge.NewProviderMetadata(metadata),
Config: map[string]*tfbridge.SchemaInfo{},
PreConfigureCallback: preConfigureCallback,
// IgnoreMappings is a list of TF resources and data sources to ignore in mappings errors
Expand Down Expand Up @@ -1602,3 +1606,6 @@ func Provider() tfbridge.ProviderInfo {

return prov
}

//go:embed cmd/pulumi-resource-equinix/bridge-metadata.json
var metadata []byte

0 comments on commit 0fd4327

Please sign in to comment.