Skip to content

Commit

Permalink
Rename pkg/meta module as pkg/registry
Browse files Browse the repository at this point in the history
Signed-off-by: Alper Rifat Ulucinar <[email protected]>
  • Loading branch information
ulucinar committed Jun 23, 2022
1 parent d5053ea commit 0751a88
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions pkg/config/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
tfjson "github.com/hashicorp/terraform-json"
"github.com/pkg/errors"

"github.com/upbound/upjet/pkg/meta"
"github.com/upbound/upjet/pkg/registry"
conversiontfjson "github.com/upbound/upjet/pkg/types/conversion/tfjson"
)

Expand Down Expand Up @@ -221,7 +221,7 @@ func (p *Provider) loadMetadata() error {
return nil
}
metadataPath := filepath.Join(p.RootDir, p.ProviderMetadataPath)
providerMetadata, err := meta.NewProviderMetadataFromFile(metadataPath)
providerMetadata, err := registry.NewProviderMetadataFromFile(metadataPath)
if err != nil {
return errors.Wrapf(err, "cannot load provider metadata from file: %s", metadataPath)
}
Expand Down
4 changes: 2 additions & 2 deletions pkg/config/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"github.com/crossplane/crossplane-runtime/pkg/reconciler/managed"
xpresource "github.com/crossplane/crossplane-runtime/pkg/resource"

"github.com/upbound/upjet/pkg/meta"
"github.com/upbound/upjet/pkg/registry"
)

// SetIdentifierArgumentsFn sets the name of the resource in Terraform attributes map,
Expand Down Expand Up @@ -295,5 +295,5 @@ type Resource struct {

// MetaResource is the metadata associated with the resource scraped from
// the Terraform registry.
MetaResource *meta.Resource
MetaResource *registry.Resource
}
2 changes: 1 addition & 1 deletion pkg/meta/resource.go → pkg/registry/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Copyright 2022 Upbound Inc.
*/

package meta
package registry

import (
"io/ioutil"
Expand Down

0 comments on commit 0751a88

Please sign in to comment.