Skip to content

Commit 00d407d

Browse files
authored
Merge pull request #115 from erhancagirici/crossplane-runtime-v2-import-path
replace crossplane-runtime import path references with v2
2 parents 1a2083a + 9589068 commit 00d407d

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ Args:
9191
```
9292

9393
[Crossplane]: https://crossplane.io
94-
[`resource.Managed`]: https://godoc.org/github.com/crossplane/crossplane-runtime/pkg/resource#Managed
95-
[`ResourceSpec`]: https://godoc.org/github.com/crossplane/crossplane-runtime/apis/common/v1#ResourceSpec
96-
[`ResourceStatus`]: https://godoc.org/github.com/crossplane/crossplane-runtime/apis/common/v1#ResourceStatus
94+
[`resource.Managed`]: https://godoc.org/github.com/crossplane/crossplane-runtime/v2/pkg/resource#Managed
95+
[`ResourceSpec`]: https://godoc.org/github.com/crossplane/crossplane-runtime/v2/apis/common/v1#ResourceSpec
96+
[`ResourceStatus`]: https://godoc.org/github.com/crossplane/crossplane-runtime/v2/apis/common/v1#ResourceStatus
9797
[Provider Development Guide]: https://github.com/crossplane/crossplane/blob/master/contributing/guide-provider-development.md#defining-resource-kinds

cmd/angryjet/main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,13 @@ const (
5151
ClientImport = "sigs.k8s.io/controller-runtime/pkg/client"
5252

5353
RuntimeAlias = "xpv1"
54-
RuntimeImport = "github.com/crossplane/crossplane-runtime/apis/common/v1"
54+
RuntimeImport = "github.com/crossplane/crossplane-runtime/v2/apis/common/v1"
5555

5656
ResourceAlias = "resource"
57-
ResourceImport = "github.com/crossplane/crossplane-runtime/pkg/resource"
57+
ResourceImport = "github.com/crossplane/crossplane-runtime/v2/pkg/resource"
5858

5959
ReferenceAlias = "reference"
60-
ReferenceImport = "github.com/crossplane/crossplane-runtime/pkg/reference"
60+
ReferenceImport = "github.com/crossplane/crossplane-runtime/v2/pkg/reference"
6161
)
6262

6363
func main() {

internal/fields/fields.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,14 @@ const (
4949
TypeSuffixSpec = NameSpec
5050
TypeSuffixSpecTemplate = NameSpecTemplate
5151
TypeSuffixStatus = NameStatus
52-
TypeSuffixResourceSpec = "github.com/crossplane/crossplane-runtime/apis/common/v1.ResourceSpec"
53-
TypeSuffixResourceStatus = "github.com/crossplane/crossplane-runtime/apis/common/v1.ResourceStatus"
54-
TypeSuffixProviderConfigSpec = "github.com/crossplane/crossplane-runtime/apis/common/v1.ProviderConfigSpec"
55-
TypeSuffixProviderConfigStatus = "github.com/crossplane/crossplane-runtime/apis/common/v1.ProviderConfigStatus"
56-
TypeSuffixProviderConfigUsage = "github.com/crossplane/crossplane-runtime/apis/common/v1.ProviderConfigUsage"
57-
58-
TypeSuffixProviderConfigUsageV2 = "github.com/crossplane/crossplane-runtime/apis/common/v2.TypedProviderConfigUsage"
59-
TypeSuffixResourceV2Spec = "github.com/crossplane/crossplane-runtime/apis/common/v2.ManagedResourceSpec"
52+
TypeSuffixResourceSpec = "github.com/crossplane/crossplane-runtime/v2/apis/common/v1.ResourceSpec"
53+
TypeSuffixResourceStatus = "github.com/crossplane/crossplane-runtime/v2/apis/common/v1.ResourceStatus"
54+
TypeSuffixProviderConfigSpec = "github.com/crossplane/crossplane-runtime/v2/apis/common/v1.ProviderConfigSpec"
55+
TypeSuffixProviderConfigStatus = "github.com/crossplane/crossplane-runtime/v2/apis/common/v1.ProviderConfigStatus"
56+
TypeSuffixProviderConfigUsage = "github.com/crossplane/crossplane-runtime/v2/apis/common/v1.ProviderConfigUsage"
57+
58+
TypeSuffixProviderConfigUsageV2 = "github.com/crossplane/crossplane-runtime/v2/apis/common/v2.TypedProviderConfigUsage"
59+
TypeSuffixResourceV2Spec = "github.com/crossplane/crossplane-runtime/v2/apis/common/v2.ManagedResourceSpec"
6060
)
6161

6262
func matches(s *types.Struct, m Matcher) bool {

0 commit comments

Comments
 (0)