Merge pull request #115 from erhancagirici/crossplane-runtime-v2-import-path
replace crossplane-runtime import path references with v2
This commit is contained in:
commit
00d407d8b7
|
@ -91,7 +91,7 @@ Args:
|
||||||
```
|
```
|
||||||
|
|
||||||
[Crossplane]: https://crossplane.io
|
[Crossplane]: https://crossplane.io
|
||||||
[`resource.Managed`]: https://godoc.org/github.com/crossplane/crossplane-runtime/pkg/resource#Managed
|
[`resource.Managed`]: https://godoc.org/github.com/crossplane/crossplane-runtime/v2/pkg/resource#Managed
|
||||||
[`ResourceSpec`]: https://godoc.org/github.com/crossplane/crossplane-runtime/apis/common/v1#ResourceSpec
|
[`ResourceSpec`]: https://godoc.org/github.com/crossplane/crossplane-runtime/v2/apis/common/v1#ResourceSpec
|
||||||
[`ResourceStatus`]: https://godoc.org/github.com/crossplane/crossplane-runtime/apis/common/v1#ResourceStatus
|
[`ResourceStatus`]: https://godoc.org/github.com/crossplane/crossplane-runtime/v2/apis/common/v1#ResourceStatus
|
||||||
[Provider Development Guide]: https://github.com/crossplane/crossplane/blob/master/contributing/guide-provider-development.md#defining-resource-kinds
|
[Provider Development Guide]: https://github.com/crossplane/crossplane/blob/master/contributing/guide-provider-development.md#defining-resource-kinds
|
|
@ -51,13 +51,13 @@ const (
|
||||||
ClientImport = "sigs.k8s.io/controller-runtime/pkg/client"
|
ClientImport = "sigs.k8s.io/controller-runtime/pkg/client"
|
||||||
|
|
||||||
RuntimeAlias = "xpv1"
|
RuntimeAlias = "xpv1"
|
||||||
RuntimeImport = "github.com/crossplane/crossplane-runtime/apis/common/v1"
|
RuntimeImport = "github.com/crossplane/crossplane-runtime/v2/apis/common/v1"
|
||||||
|
|
||||||
ResourceAlias = "resource"
|
ResourceAlias = "resource"
|
||||||
ResourceImport = "github.com/crossplane/crossplane-runtime/pkg/resource"
|
ResourceImport = "github.com/crossplane/crossplane-runtime/v2/pkg/resource"
|
||||||
|
|
||||||
ReferenceAlias = "reference"
|
ReferenceAlias = "reference"
|
||||||
ReferenceImport = "github.com/crossplane/crossplane-runtime/pkg/reference"
|
ReferenceImport = "github.com/crossplane/crossplane-runtime/v2/pkg/reference"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
|
@ -49,14 +49,14 @@ const (
|
||||||
TypeSuffixSpec = NameSpec
|
TypeSuffixSpec = NameSpec
|
||||||
TypeSuffixSpecTemplate = NameSpecTemplate
|
TypeSuffixSpecTemplate = NameSpecTemplate
|
||||||
TypeSuffixStatus = NameStatus
|
TypeSuffixStatus = NameStatus
|
||||||
TypeSuffixResourceSpec = "github.com/crossplane/crossplane-runtime/apis/common/v1.ResourceSpec"
|
TypeSuffixResourceSpec = "github.com/crossplane/crossplane-runtime/v2/apis/common/v1.ResourceSpec"
|
||||||
TypeSuffixResourceStatus = "github.com/crossplane/crossplane-runtime/apis/common/v1.ResourceStatus"
|
TypeSuffixResourceStatus = "github.com/crossplane/crossplane-runtime/v2/apis/common/v1.ResourceStatus"
|
||||||
TypeSuffixProviderConfigSpec = "github.com/crossplane/crossplane-runtime/apis/common/v1.ProviderConfigSpec"
|
TypeSuffixProviderConfigSpec = "github.com/crossplane/crossplane-runtime/v2/apis/common/v1.ProviderConfigSpec"
|
||||||
TypeSuffixProviderConfigStatus = "github.com/crossplane/crossplane-runtime/apis/common/v1.ProviderConfigStatus"
|
TypeSuffixProviderConfigStatus = "github.com/crossplane/crossplane-runtime/v2/apis/common/v1.ProviderConfigStatus"
|
||||||
TypeSuffixProviderConfigUsage = "github.com/crossplane/crossplane-runtime/apis/common/v1.ProviderConfigUsage"
|
TypeSuffixProviderConfigUsage = "github.com/crossplane/crossplane-runtime/v2/apis/common/v1.ProviderConfigUsage"
|
||||||
|
|
||||||
TypeSuffixProviderConfigUsageV2 = "github.com/crossplane/crossplane-runtime/apis/common/v2.TypedProviderConfigUsage"
|
TypeSuffixProviderConfigUsageV2 = "github.com/crossplane/crossplane-runtime/v2/apis/common/v2.TypedProviderConfigUsage"
|
||||||
TypeSuffixResourceV2Spec = "github.com/crossplane/crossplane-runtime/apis/common/v2.ManagedResourceSpec"
|
TypeSuffixResourceV2Spec = "github.com/crossplane/crossplane-runtime/v2/apis/common/v2.ManagedResourceSpec"
|
||||||
)
|
)
|
||||||
|
|
||||||
func matches(s *types.Struct, m Matcher) bool {
|
func matches(s *types.Struct, m Matcher) bool {
|
||||||
|
|
Loading…
Reference in New Issue