Repository: crossplane-contrib/provider-helm
Pull request #74 (2020-12-12 06:09:55)

Bump crossplane-runtime to v0.12.0
<!--
Thank you for helping to improve Crossplane!

Please read through https://git.io/fj2m9 if this is your first time opening a
Crossplane pull request. Find us in https://slack.crossplane.io/messages/dev if
you need any help contributing.
-->

### Description of your changes

<!--
Briefly describe what this pull request does. Be sure to direct your reviewers'
attention to anything that needs special consideration.

We love pull requests that resolve an open Crossplane issue. If yours does, you
can uncomment the below line to indicate which issue your PR fixes, for example
"Fixes #500":

-->

I have:

- [x] Read and followed Crossplane's [contribution process].
- [x] Run `make reviewable test` to ensure this PR is ready for review.

### How has this code been tested

<!--
Before reviewers can be confident in the correctness of this pull request, it
needs to tested and shown to be correct. Briefly describe the testing that has
already been done or which is planned for this change.
-->

It has not - it's a very mechanical change.

[contribution process]: https://git.io/fj2m9



Patch:
diff --git a/apis/release/v1alpha1/types.go b/apis/release/v1alpha1/types.go
index 08d34f5..e4cf49b 100644
--- a/apis/release/v1alpha1/types.go
+++ b/apis/release/v1alpha1/types.go
@@ -21,15 +21,15 @@ import (
 	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
 	runtime "k8s.io/apimachinery/pkg/runtime"
 
-	runtimev1alpha1 "github.com/crossplane/crossplane-runtime/apis/core/v1alpha1"
+	xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1"
 )
 
 // A ChartSpec defines the chart spec for a Release
 type ChartSpec struct {
-	Repository    string                          `json:"repository"`
-	Name          string                          `json:"name"`
-	Version       string                          `json:"version"`
-	PullSecretRef runtimev1alpha1.SecretReference `json:"pullSecretRef,omitempty"`
+	Repository    string               `json:"repository"`
+	Name          string               `json:"name"`
+	Version       string               `json:"version"`
+	PullSecretRef xpv1.SecretReference `json:"pullSecretRef,omitempty"`
 }
 
 // NamespacedName represents a namespaced object name
@@ -84,19 +84,19 @@ type ReleaseObservation struct {
 
 // A ReleaseSpec defines the desired state of a Release.
 type ReleaseSpec struct {
-	runtimev1alpha1.ResourceSpec `json:",inline"`
-	ForProvider                  ReleaseParameters `json:"forProvider"`
+	xpv1.ResourceSpec `json:",inline"`
+	ForProvider       ReleaseParameters `json:"forProvider"`
 	// RollbackRetriesLimit is max number of attempts to retry Helm deployment by rolling back the release.
 	RollbackRetriesLimit *int32 `json:"rollbackLimit,omitempty"`
 }
 
 // A ReleaseStatus represents the observed state of a Release.
 type ReleaseStatus struct {
-	runtimev1alpha1.ResourceStatus `json:",inline"`
-	AtProvider                     ReleaseObservation `json:"atProvider,omitempty"`
-	PatchesSha                     string             `json:"patchesSha,omitempty"`
-	Failed                         int32              `json:"failed,omitempty"`
-	Synced                         bool               `json:"synced,omitempty"`
+	xpv1.ResourceStatus `json:",inline"`
+	AtProvider          ReleaseObservation `json:"atProvider,omitempty"`
+	PatchesSha          string             `json:"patchesSha,omitempty"`
+	Failed              int32              `json:"failed,omitempty"`
+	Synced              bool               `json:"synced,omitempty"`
 }
 
 // +kubebuilder:object:root=true
diff --git a/apis/release/v1alpha1/zz_generated.managed.go b/apis/release/v1alpha1/zz_generated.managed.go
index 78e0b5a..a643b77 100644
--- a/apis/release/v1alpha1/zz_generated.managed.go
+++ b/apis/release/v1alpha1/zz_generated.managed.go
@@ -17,20 +17,20 @@ limitations under the License.
 
 package v1alpha1
 
-import runtimev1alpha1 "github.com/crossplane/crossplane-runtime/apis/core/v1alpha1"
+import xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1"
 
 // GetCondition of this Release.
-func (mg *Release) GetCondition(ct runtimev1alpha1.ConditionType) runtimev1alpha1.Condition {
+func (mg *Release) GetCondition(ct xpv1.ConditionType) xpv1.Condition {
 	return mg.Status.GetCondition(ct)
 }
 
 // GetDeletionPolicy of this Release.
-func (mg *Release) GetDeletionPolicy() runtimev1alpha1.DeletionPolicy {
+func (mg *Release) GetDeletionPolicy() xpv1.DeletionPolicy {
 	return mg.Spec.DeletionPolicy
 }
 
 // GetProviderConfigReference of this Release.
-func (mg *Release) GetProviderConfigReference() *runtimev1alpha1.Reference {
+func (mg *Release) GetProviderConfigReference() *xpv1.Reference {
 	return mg.Spec.ProviderConfigReference
 }
 
@@ -38,27 +38,27 @@ func (mg *Release) GetProviderConfigReference() *runtimev1alpha1.Reference {
 GetProviderReference of this Release.
 Deprecated: Use GetProviderConfigReference.
 */
-func (mg *Release) GetProviderReference() *runtimev1alpha1.Reference {
+func (mg *Release) GetProviderReference() *xpv1.Reference {
 	return mg.Spec.ProviderReference
 }
 
 // GetWriteConnectionSecretToReference of this Release.
-func (mg *Release) GetWriteConnectionSecretToReference() *runtimev1alpha1.SecretReference {
+func (mg *Release) GetWriteConnectionSecretToReference() *xpv1.SecretReference {
 	return mg.Spec.WriteConnectionSecretToReference
 }
 
 // SetConditions of this Release.
-func (mg *Release) SetConditions(c ...runtimev1alpha1.Condition) {
+func (mg *Release) SetConditions(c ...xpv1.Condition) {
 	mg.Status.SetConditions(c...)
 }
 
 // SetDeletionPolicy of this Release.
-func (mg *Release) SetDeletionPolicy(r runtimev1alpha1.DeletionPolicy) {
+func (mg *Release) SetDeletionPolicy(r xpv1.DeletionPolicy) {
 	mg.Spec.DeletionPolicy = r
 }
 
 // SetProviderConfigReference of this Release.
-func (mg *Release) SetProviderConfigReference(r *runtimev1alpha1.Reference) {
+func (mg *Release) SetProviderConfigReference(r *xpv1.Reference) {
 	mg.Spec.ProviderConfigReference = r
 }
 
@@ -66,11 +66,11 @@ func (mg *Release) SetProviderConfigReference(r *runtimev1alpha1.Reference) {
 SetProviderReference of this Release.
 Deprecated: Use SetProviderConfigReference.
 */
-func (mg *Release) SetProviderReference(r *runtimev1alpha1.Reference) {
+func (mg *Release) SetProviderReference(r *xpv1.Reference) {
 	mg.Spec.ProviderReference = r
 }
 
 // SetWriteConnectionSecretToReference of this Release.
-func (mg *Release) SetWriteConnectionSecretToReference(r *runtimev1alpha1.SecretReference) {
+func (mg *Release) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) {
 	mg.Spec.WriteConnectionSecretToReference = r
 }
diff --git a/apis/release/v1beta1/types.go b/apis/release/v1beta1/types.go
index 9322078..f95c26c 100644
--- a/apis/release/v1beta1/types.go
+++ b/apis/release/v1beta1/types.go
@@ -22,15 +22,15 @@ import (
 	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
 	runtime "k8s.io/apimachinery/pkg/runtime"
 
-	runtimev1alpha1 "github.com/crossplane/crossplane-runtime/apis/core/v1alpha1"
+	xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1"
 )
 
 // A ChartSpec defines the chart spec for a Release
 type ChartSpec struct {
-	Repository    string                          `json:"repository"`
-	Name          string                          `json:"name"`
-	Version       string                          `json:"version"`
-	PullSecretRef runtimev1alpha1.SecretReference `json:"pullSecretRef,omitempty"`
+	Repository    string               `json:"repository"`
+	Name          string               `json:"name"`
+	Version       string               `json:"version"`
+	PullSecretRef xpv1.SecretReference `json:"pullSecretRef,omitempty"`
 }
 
 // NamespacedName represents a namespaced object name
@@ -85,20 +85,20 @@ type ReleaseObservation struct {
 
 // A ReleaseSpec defines the desired state of a Release.
 type ReleaseSpec struct {
-	runtimev1alpha1.ResourceSpec `json:",inline"`
-	ConnectionDetails            []ConnectionDetail `json:"connectionDetails,omitempty"`
-	ForProvider                  ReleaseParameters  `json:"forProvider"`
+	xpv1.ResourceSpec `json:",inline"`
+	ConnectionDetails []ConnectionDetail `json:"connectionDetails,omitempty"`
+	ForProvider       ReleaseParameters  `json:"forProvider"`
 	// RollbackRetriesLimit is max number of attempts to retry Helm deployment by rolling back the release.
 	RollbackRetriesLimit *int32 `json:"rollbackLimit,omitempty"`
 }
 
 // A ReleaseStatus represents the observed state of a Release.
 type ReleaseStatus struct {
-	runtimev1alpha1.ResourceStatus `json:",inline"`
-	AtProvider                     ReleaseObservation `json:"atProvider,omitempty"`
-	PatchesSha                     string             `json:"patchesSha,omitempty"`
-	Failed                         int32              `json:"failed,omitempty"`
-	Synced                         bool               `json:"synced,omitempty"`
+	xpv1.ResourceStatus `json:",inline"`
+	AtProvider          ReleaseObservation `json:"atProvider,omitempty"`
+	PatchesSha          string             `json:"patchesSha,omitempty"`
+	Failed              int32              `json:"failed,omitempty"`
+	Synced              bool               `json:"synced,omitempty"`
 }
 
 // ConnectionDetail todo
diff --git a/apis/release/v1beta1/zz_generated.managed.go b/apis/release/v1beta1/zz_generated.managed.go
index b1f423a..2bd7ef6 100644
--- a/apis/release/v1beta1/zz_generated.managed.go
+++ b/apis/release/v1beta1/zz_generated.managed.go
@@ -17,20 +17,20 @@ limitations under the License.
 
 package v1beta1
 
-import runtimev1alpha1 "github.com/crossplane/crossplane-runtime/apis/core/v1alpha1"
+import xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1"
 
 // GetCondition of this Release.
-func (mg *Release) GetCondition(ct runtimev1alpha1.ConditionType) runtimev1alpha1.Condition {
+func (mg *Release) GetCondition(ct xpv1.ConditionType) xpv1.Condition {
 	return mg.Status.GetCondition(ct)
 }
 
 // GetDeletionPolicy of this Release.
-func (mg *Release) GetDeletionPolicy() runtimev1alpha1.DeletionPolicy {
+func (mg *Release) GetDeletionPolicy() xpv1.DeletionPolicy {
 	return mg.Spec.DeletionPolicy
 }
 
 // GetProviderConfigReference of this Release.
-func (mg *Release) GetProviderConfigReference() *runtimev1alpha1.Reference {
+func (mg *Release) GetProviderConfigReference() *xpv1.Reference {
 	return mg.Spec.ProviderConfigReference
 }
 
@@ -38,27 +38,27 @@ func (mg *Release) GetProviderConfigReference() *runtimev1alpha1.Reference {
 GetProviderReference of this Release.
 Deprecated: Use GetProviderConfigReference.
 */
-func (mg *Release) GetProviderReference() *runtimev1alpha1.Reference {
+func (mg *Release) GetProviderReference() *xpv1.Reference {
 	return mg.Spec.ProviderReference
 }
 
 // GetWriteConnectionSecretToReference of this Release.
-func (mg *Release) GetWriteConnectionSecretToReference() *runtimev1alpha1.SecretReference {
+func (mg *Release) GetWriteConnectionSecretToReference() *xpv1.SecretReference {
 	return mg.Spec.WriteConnectionSecretToReference
 }
 
 // SetConditions of this Release.
-func (mg *Release) SetConditions(c ...runtimev1alpha1.Condition) {
+func (mg *Release) SetConditions(c ...xpv1.Condition) {
 	mg.Status.SetConditions(c...)
 }
 
 // SetDeletionPolicy of this Release.
-func (mg *Release) SetDeletionPolicy(r runtimev1alpha1.DeletionPolicy) {
+func (mg *Release) SetDeletionPolicy(r xpv1.DeletionPolicy) {
 	mg.Spec.DeletionPolicy = r
 }
 
 // SetProviderConfigReference of this Release.
-func (mg *Release) SetProviderConfigReference(r *runtimev1alpha1.Reference) {
+func (mg *Release) SetProviderConfigReference(r *xpv1.Reference) {
 	mg.Spec.ProviderConfigReference = r
 }
 
@@ -66,11 +66,11 @@ func (mg *Release) SetProviderConfigReference(r *runtimev1alpha1.Reference) {
 SetProviderReference of this Release.
 Deprecated: Use SetProviderConfigReference.
 */
-func (mg *Release) SetProviderReference(r *runtimev1alpha1.Reference) {
+func (mg *Release) SetProviderReference(r *xpv1.Reference) {
 	mg.Spec.ProviderReference = r
 }
 
 // SetWriteConnectionSecretToReference of this Release.
-func (mg *Release) SetWriteConnectionSecretToReference(r *runtimev1alpha1.SecretReference) {
+func (mg *Release) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) {
 	mg.Spec.WriteConnectionSecretToReference = r
 }
diff --git a/apis/v1alpha1/types.go b/apis/v1alpha1/types.go
index f3d5534..b4d7aac 100644
--- a/apis/v1alpha1/types.go
+++ b/apis/v1alpha1/types.go
@@ -19,17 +19,17 @@ package v1alpha1
 import (
 	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
 
-	runtimev1alpha1 "github.com/crossplane/crossplane-runtime/apis/core/v1alpha1"
+	xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1"
 )
 
 // A ProviderConfigSpec defines the desired state of a Provider.
 type ProviderConfigSpec struct {
-	runtimev1alpha1.ProviderConfigSpec `json:",inline"`
+	xpv1.ProviderConfigSpec `json:",inline"`
 }
 
 // A ProviderConfigStatus defines the status of a Provider.
 type ProviderConfigStatus struct {
-	runtimev1alpha1.ProviderConfigStatus `json:",inline"`
+	xpv1.ProviderConfigStatus `json:",inline"`
 }
 
 // +kubebuilder:object:root=true
@@ -68,7 +68,7 @@ type ProviderConfigUsage struct {
 	metav1.TypeMeta   `json:",inline"`
 	metav1.ObjectMeta `json:"metadata,omitempty"`
 
-	runtimev1alpha1.ProviderConfigUsage `json:",inline"`
+	xpv1.ProviderConfigUsage `json:",inline"`
 }
 
 // +kubebuilder:object:root=true
diff --git a/apis/v1alpha1/zz_generated.pc.go b/apis/v1alpha1/zz_generated.pc.go
index bb1443c..28fad33 100644
--- a/apis/v1alpha1/zz_generated.pc.go
+++ b/apis/v1alpha1/zz_generated.pc.go
@@ -17,10 +17,10 @@ limitations under the License.
 
 package v1alpha1
 
-import runtimev1alpha1 "github.com/crossplane/crossplane-runtime/apis/core/v1alpha1"
+import xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1"
 
 // GetCondition of this ProviderConfig.
-func (p *ProviderConfig) GetCondition(ct runtimev1alpha1.ConditionType) runtimev1alpha1.Condition {
+func (p *ProviderConfig) GetCondition(ct xpv1.ConditionType) xpv1.Condition {
 	return p.Status.GetCondition(ct)
 }
 
@@ -30,7 +30,7 @@ func (p *ProviderConfig) GetUsers() int64 {
 }
 
 // SetConditions of this ProviderConfig.
-func (p *ProviderConfig) SetConditions(c ...runtimev1alpha1.Condition) {
+func (p *ProviderConfig) SetConditions(c ...xpv1.Condition) {
 	p.Status.SetConditions(c...)
 }
 
diff --git a/apis/v1alpha1/zz_generated.pcu.go b/apis/v1alpha1/zz_generated.pcu.go
index c9b2127..710c6c6 100644
--- a/apis/v1alpha1/zz_generated.pcu.go
+++ b/apis/v1alpha1/zz_generated.pcu.go
@@ -17,24 +17,24 @@ limitations under the License.
 
 package v1alpha1
 
-import runtimev1alpha1 "github.com/crossplane/crossplane-runtime/apis/core/v1alpha1"
+import xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1"
 
 // GetProviderConfigReference of this ProviderConfigUsage.
-func (p *ProviderConfigUsage) GetProviderConfigReference() runtimev1alpha1.Reference {
+func (p *ProviderConfigUsage) GetProviderConfigReference() xpv1.Reference {
 	return p.ProviderConfigReference
 }
 
 // GetResourceReference of this ProviderConfigUsage.
-func (p *ProviderConfigUsage) GetResourceReference() runtimev1alpha1.TypedReference {
+func (p *ProviderConfigUsage) GetResourceReference() xpv1.TypedReference {
 	return p.ResourceReference
 }
 
 // SetProviderConfigReference of this ProviderConfigUsage.
-func (p *ProviderConfigUsage) SetProviderConfigReference(r runtimev1alpha1.Reference) {
+func (p *ProviderConfigUsage) SetProviderConfigReference(r xpv1.Reference) {
 	p.ProviderConfigReference = r
 }
 
 // SetResourceReference of this ProviderConfigUsage.
-func (p *ProviderConfigUsage) SetResourceReference(r runtimev1alpha1.TypedReference) {
+func (p *ProviderConfigUsage) SetResourceReference(r xpv1.TypedReference) {
 	p.ResourceReference = r
 }
diff --git a/apis/v1beta1/types.go b/apis/v1beta1/types.go
index 82773d1..777b450 100644
--- a/apis/v1beta1/types.go
+++ b/apis/v1beta1/types.go
@@ -19,17 +19,17 @@ package v1beta1
 import (
 	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
 
-	runtimev1alpha1 "github.com/crossplane/crossplane-runtime/apis/core/v1alpha1"
+	xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1"
 )
 
 // A ProviderConfigSpec defines the desired state of a Provider.
 type ProviderConfigSpec struct {
-	runtimev1alpha1.ProviderConfigSpec `json:",inline"`
+	xpv1.ProviderConfigSpec `json:",inline"`
 }
 
 // A ProviderConfigStatus defines the status of a Provider.
 type ProviderConfigStatus struct {
-	runtimev1alpha1.ProviderConfigStatus `json:",inline"`
+	xpv1.ProviderConfigStatus `json:",inline"`
 }
 
 // +kubebuilder:object:root=true
@@ -70,7 +70,7 @@ type ProviderConfigUsage struct {
 	metav1.TypeMeta   `json:",inline"`
 	metav1.ObjectMeta `json:"metadata,omitempty"`
 
-	runtimev1alpha1.ProviderConfigUsage `json:",inline"`
+	xpv1.ProviderConfigUsage `json:",inline"`
 }
 
 // +kubebuilder:object:root=true
diff --git a/apis/v1beta1/zz_generated.pc.go b/apis/v1beta1/zz_generated.pc.go
index 66008af..83a7b07 100644
--- a/apis/v1beta1/zz_generated.pc.go
+++ b/apis/v1beta1/zz_generated.pc.go
@@ -17,10 +17,10 @@ limitations under the License.
 
 package v1beta1
 
-import runtimev1alpha1 "github.com/crossplane/crossplane-runtime/apis/core/v1alpha1"
+import xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1"
 
 // GetCondition of this ProviderConfig.
-func (p *ProviderConfig) GetCondition(ct runtimev1alpha1.ConditionType) runtimev1alpha1.Condition {
+func (p *ProviderConfig) GetCondition(ct xpv1.ConditionType) xpv1.Condition {
 	return p.Status.GetCondition(ct)
 }
 
@@ -30,7 +30,7 @@ func (p *ProviderConfig) GetUsers() int64 {
 }
 
 // SetConditions of this ProviderConfig.
-func (p *ProviderConfig) SetConditions(c ...runtimev1alpha1.Condition) {
+func (p *ProviderConfig) SetConditions(c ...xpv1.Condition) {
 	p.Status.SetConditions(c...)
 }
 
diff --git a/apis/v1beta1/zz_generated.pcu.go b/apis/v1beta1/zz_generated.pcu.go
index e9fd7d7..a45c12b 100644
--- a/apis/v1beta1/zz_generated.pcu.go
+++ b/apis/v1beta1/zz_generated.pcu.go
@@ -17,24 +17,24 @@ limitations under the License.
 
 package v1beta1
 
-import runtimev1alpha1 "github.com/crossplane/crossplane-runtime/apis/core/v1alpha1"
+import xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1"
 
 // GetProviderConfigReference of this ProviderConfigUsage.
-func (p *ProviderConfigUsage) GetProviderConfigReference() runtimev1alpha1.Reference {
+func (p *ProviderConfigUsage) GetProviderConfigReference() xpv1.Reference {
 	return p.ProviderConfigReference
 }
 
 // GetResourceReference of this ProviderConfigUsage.
-func (p *ProviderConfigUsage) GetResourceReference() runtimev1alpha1.TypedReference {
+func (p *ProviderConfigUsage) GetResourceReference() xpv1.TypedReference {
 	return p.ResourceReference
 }
 
 // SetProviderConfigReference of this ProviderConfigUsage.
-func (p *ProviderConfigUsage) SetProviderConfigReference(r runtimev1alpha1.Reference) {
+func (p *ProviderConfigUsage) SetProviderConfigReference(r xpv1.Reference) {
 	p.ProviderConfigReference = r
 }
 
 // SetResourceReference of this ProviderConfigUsage.
-func (p *ProviderConfigUsage) SetResourceReference(r runtimev1alpha1.TypedReference) {
+func (p *ProviderConfigUsage) SetResourceReference(r xpv1.TypedReference) {
 	p.ResourceReference = r
 }
diff --git a/go.mod b/go.mod
index ee7e354..0ae35db 100644
--- a/go.mod
+++ b/go.mod
@@ -3,7 +3,7 @@ module github.com/crossplane-contrib/provider-helm
 go 1.13
 
 require (
-	github.com/crossplane/crossplane-runtime v0.11.0
+	github.com/crossplane/crossplane-runtime v0.12.0
 	github.com/crossplane/crossplane-tools v0.0.0-20201007233256-88b291e145bb
 	github.com/go-logr/zapr v0.1.1 // indirect
 	github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6 // indirect
diff --git a/go.sum b/go.sum
index 87548d5..d2607f0 100644
--- a/go.sum
+++ b/go.sum
@@ -137,8 +137,8 @@ github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f/go.mod h1:E3G3o1h8I7cfc
 github.com/cpuguy83/go-md2man v1.0.10/go.mod h1:SmD6nW6nTyfqj6ABTjUi3V3JVMnlJmwcJI5acqYI6dE=
 github.com/cpuguy83/go-md2man/v2 v2.0.0/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU=
 github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7DoTY=
-github.com/crossplane/crossplane-runtime v0.11.0 h1:hLDWsGYhU/CUVQ1sU7NHF5bnP6WT6wA6Nu2SaBSSe6w=
-github.com/crossplane/crossplane-runtime v0.11.0/go.mod h1:cJl5ZZONisre4v6wTmbrC8Jh3AI+erq/lNaxZzv9tnU=
+github.com/crossplane/crossplane-runtime v0.12.0 h1:GB1Pq5vVBNStPrfiEJNat56gHCQiuliidgr7pNs/FQA=
+github.com/crossplane/crossplane-runtime v0.12.0/go.mod h1:cJl5ZZONisre4v6wTmbrC8Jh3AI+erq/lNaxZzv9tnU=
 github.com/crossplane/crossplane-tools v0.0.0-20201007233256-88b291e145bb h1:j09j/Gk1qH64HUtf/fcTjMAxLxUdOuQXySWu46WTVTU=
 github.com/crossplane/crossplane-tools v0.0.0-20201007233256-88b291e145bb/go.mod h1:C735A9X0x0lR8iGVOOxb49Mt70Ua4EM2b7PGaRPBLd4=
 github.com/cyphar/filepath-securejoin v0.2.2 h1:jCwT2GTP+PY5nBz3c/YL5PAIbusElVrPujOBSCj8xRg=
diff --git a/pkg/controller/release/chart.go b/pkg/controller/release/chart.go
index ea17f49..fa6de02 100644
--- a/pkg/controller/release/chart.go
+++ b/pkg/controller/release/chart.go
@@ -19,11 +19,12 @@ package release
 import (
 	"context"
 
-	runtimev1alpha1 "github.com/crossplane/crossplane-runtime/apis/core/v1alpha1"
 	"github.com/pkg/errors"
 	"k8s.io/apimachinery/pkg/types"
 	"sigs.k8s.io/controller-runtime/pkg/client"
 
+	xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1"
+
 	helmClient "github.com/crossplane-contrib/provider-helm/pkg/clients/helm"
 )
 
@@ -39,7 +40,7 @@ const (
 	errChartPullSecretMissingPassword  = "password missing in chart pull secret"
 )
 
-func repoCredsFromSecret(ctx context.Context, kube client.Client, secretRef runtimev1alpha1.SecretReference) (*helmClient.RepoCreds, error) {
+func repoCredsFromSecret(ctx context.Context, kube client.Client, secretRef xpv1.SecretReference) (*helmClient.RepoCreds, error) {
 	repoUser := ""
 	repoPass := ""
 	if secretRef.Name != "" {
diff --git a/pkg/controller/release/release.go b/pkg/controller/release/release.go
index cf0ca1a..2a45167 100644
--- a/pkg/controller/release/release.go
+++ b/pkg/controller/release/release.go
@@ -20,12 +20,6 @@ import (
 	"context"
 	"time"
 
-	runtimev1alpha1 "github.com/crossplane/crossplane-runtime/apis/core/v1alpha1"
-	"github.com/crossplane/crossplane-runtime/pkg/event"
-	"github.com/crossplane/crossplane-runtime/pkg/logging"
-	"github.com/crossplane/crossplane-runtime/pkg/meta"
-	"github.com/crossplane/crossplane-runtime/pkg/reconciler/managed"
-	"github.com/crossplane/crossplane-runtime/pkg/resource"
 	"github.com/pkg/errors"
 	"helm.sh/helm/v3/pkg/chart"
 	"helm.sh/helm/v3/pkg/release"
@@ -37,6 +31,13 @@ import (
 	"sigs.k8s.io/controller-runtime/pkg/controller"
 	ktype "sigs.k8s.io/kustomize/api/types"
 
+	xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1"
+	"github.com/crossplane/crossplane-runtime/pkg/event"
+	"github.com/crossplane/crossplane-runtime/pkg/logging"
+	"github.com/crossplane/crossplane-runtime/pkg/meta"
+	"github.com/crossplane/crossplane-runtime/pkg/reconciler/managed"
+	"github.com/crossplane/crossplane-runtime/pkg/resource"
+
 	"github.com/crossplane-contrib/provider-helm/apis/release/v1beta1"
 	helmv1beta1 "github.com/crossplane-contrib/provider-helm/apis/v1beta1"
 	"github.com/crossplane-contrib/provider-helm/pkg/clients"
@@ -143,12 +144,12 @@ func (c *connector) Connect(ctx context.Context, mg resource.Managed) (managed.E
 
 	s := p.Spec.Credentials.Source
 	switch s { //nolint:exhaustive
-	case runtimev1alpha1.CredentialsSourceInjectedIdentity:
+	case xpv1.CredentialsSourceInjectedIdentity:
 		rc, err = rest.InClusterConfig()
 		if err != nil {
 			return nil, errors.Wrap(err, errFailedToCreateRestConfig)
 		}
-	case runtimev1alpha1.CredentialsSourceSecret:
+	case xpv1.CredentialsSourceSecret:
 		ref := p.Spec.Credentials.SecretRef
 		if ref == nil {
 			return nil, errors.New(errCredSecretNotSet)
@@ -240,14 +241,14 @@ func (e *helmExternal) Observe(ctx context.Context, mg resource.Managed) (manage
 	cd := managed.ConnectionDetails{}
 	if cr.Status.AtProvider.State == release.StatusDeployed && s {
 		cr.Status.Failed = 0
-		cr.Status.SetConditions(runtimev1alpha1.Available())
+		cr.Status.SetConditions(xpv1.Available())
 
 		cd, err = connectionDetails(ctx, e.kube, cr.Spec.ConnectionDetails, rel.Name, rel.Namespace)
 		if err != nil {
 			return managed.ExternalObservation{}, errors.Wrap(err, "cannot get connection details")
 		}
 	} else {
-		cr.Status.SetConditions(runtimev1alpha1.Unavailable())
+		cr.Status.SetConditions(xpv1.Unavailable())
 	}
 
 	return managed.ExternalObservation{
@@ -302,7 +303,7 @@ func (e *helmExternal) deploy(ctx context.Context, cr *v1beta1.Release, action d
 	}
 	cr.Status.PatchesSha = sha
 	cr.Status.AtProvider = generateObservation(rel)
-	cr.Status.SetConditions(runtimev1alpha1.Available())
+	cr.Status.SetConditions(xpv1.Available())
 
 	return nil
 }


Test patch:
diff --git a/pkg/controller/release/chart_test.go b/pkg/controller/release/chart_test.go
index 71c5d47..214d0c0 100644
--- a/pkg/controller/release/chart_test.go
+++ b/pkg/controller/release/chart_test.go
@@ -5,8 +5,6 @@ import (
 	"fmt"
 	"testing"
 
-	runtimev1alpha1 "github.com/crossplane/crossplane-runtime/apis/core/v1alpha1"
-	"github.com/crossplane/crossplane-runtime/pkg/test"
 	"github.com/google/go-cmp/cmp"
 	"github.com/pkg/errors"
 	corev1 "k8s.io/api/core/v1"
@@ -15,6 +13,9 @@ import (
 	"k8s.io/apimachinery/pkg/runtime/schema"
 	"sigs.k8s.io/controller-runtime/pkg/client"
 
+	xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1"
+	"github.com/crossplane/crossplane-runtime/pkg/test"
+
 	"github.com/crossplane-contrib/provider-helm/pkg/clients/helm"
 )
 
@@ -34,7 +35,7 @@ var (
 func Test_userInfoFromSecret(t *testing.T) {
 	type args struct {
 		kube      client.Client
-		secretRef runtimev1alpha1.SecretReference
+		secretRef xpv1.SecretReference
 	}
 	type want struct {
 		out *helm.RepoCreds
@@ -72,7 +73,7 @@ func Test_userInfoFromSecret(t *testing.T) {
 						return errBoom
 					},
 				},
-				secretRef: runtimev1alpha1.SecretReference{
+				secretRef: xpv1.SecretReference{
 					Name: testPullSecretName,
 				},
 			},
@@ -90,7 +91,7 @@ func Test_userInfoFromSecret(t *testing.T) {
 						return errBoom
 					},
 				},
-				secretRef: runtimev1alpha1.SecretReference{
+				secretRef: xpv1.SecretReference{
 					Name:      testPullSecretName,
 					Namespace: testPullSecretNamespace,
 				},
@@ -117,7 +118,7 @@ func Test_userInfoFromSecret(t *testing.T) {
 						return errBoom
 					},
 				},
-				secretRef: runtimev1alpha1.SecretReference{
+				secretRef: xpv1.SecretReference{
 					Name:      testPullSecretName,
 					Namespace: testPullSecretNamespace,
 				},
@@ -143,7 +144,7 @@ func Test_userInfoFromSecret(t *testing.T) {
 						return errBoom
 					},
 				},
-				secretRef: runtimev1alpha1.SecretReference{
+				secretRef: xpv1.SecretReference{
 					Name:      testPullSecretName,
 					Namespace: testPullSecretNamespace,
 				},
@@ -169,7 +170,7 @@ func Test_userInfoFromSecret(t *testing.T) {
 						return errBoom
 					},
 				},
-				secretRef: runtimev1alpha1.SecretReference{
+				secretRef: xpv1.SecretReference{
 					Name:      testPullSecretName,
 					Namespace: testPullSecretNamespace,
 				},
diff --git a/pkg/controller/release/release_test.go b/pkg/controller/release/release_test.go
index 0ad6374..02c100f 100644
--- a/pkg/controller/release/release_test.go
+++ b/pkg/controller/release/release_test.go
@@ -5,11 +5,6 @@ import (
 	"fmt"
 	"testing"
 
-	runtimev1alpha1 "github.com/crossplane/crossplane-runtime/apis/core/v1alpha1"
-	"github.com/crossplane/crossplane-runtime/pkg/logging"
-	"github.com/crossplane/crossplane-runtime/pkg/reconciler/managed"
-	"github.com/crossplane/crossplane-runtime/pkg/resource"
-	"github.com/crossplane/crossplane-runtime/pkg/test"
 	"github.com/google/go-cmp/cmp"
 	"github.com/pkg/errors"
 	"helm.sh/helm/v3/pkg/chart"
@@ -22,6 +17,12 @@ import (
 	"sigs.k8s.io/controller-runtime/pkg/client"
 	"sigs.k8s.io/kustomize/api/types"
 
+	xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1"
+	"github.com/crossplane/crossplane-runtime/pkg/logging"
+	"github.com/crossplane/crossplane-runtime/pkg/reconciler/managed"
+	"github.com/crossplane/crossplane-runtime/pkg/resource"
+	"github.com/crossplane/crossplane-runtime/pkg/test"
+
 	"github.com/crossplane-contrib/provider-helm/apis/release/v1beta1"
 	helmv1beta1 "github.com/crossplane-contrib/provider-helm/apis/v1beta1"
 	helmClient "github.com/crossplane-contrib/provider-helm/pkg/clients/helm"
@@ -47,8 +48,8 @@ func helmRelease(rm ...helmReleaseModifier) *v1beta1.Release {
 			Namespace: testNamespace,
 		},
 		Spec: v1beta1.ReleaseSpec{
-			ResourceSpec: runtimev1alpha1.ResourceSpec{
-				ProviderConfigReference: &runtimev1alpha1.Reference{
+			ResourceSpec: xpv1.ResourceSpec{
+				ProviderConfigReference: &xpv1.Reference{
 					Name: providerName,
 				},
 			},
@@ -120,11 +121,11 @@ func Test_connector_Connect(t *testing.T) {
 	providerConfig := helmv1beta1.ProviderConfig{
 		ObjectMeta: metav1.ObjectMeta{Name: providerName},
 		Spec: helmv1beta1.ProviderConfigSpec{
-			ProviderConfigSpec: runtimev1alpha1.ProviderConfigSpec{
-				Credentials: runtimev1alpha1.ProviderCredentials{
-					Source: runtimev1alpha1.CredentialsSourceSecret,
-					SecretRef: &runtimev1alpha1.SecretKeySelector{
-						SecretReference: runtimev1alpha1.SecretReference{
+			ProviderConfigSpec: xpv1.ProviderConfigSpec{
+				Credentials: xpv1.ProviderCredentials{
+					Source: xpv1.CredentialsSourceSecret,
+					SecretRef: &xpv1.SecretKeySelector{
+						SecretReference: xpv1.SecretReference{
 							Name:      providerSecretName,
 							Namespace: providerSecretNamespace,
 						},
@@ -196,7 +197,7 @@ func Test_connector_Connect(t *testing.T) {
 					MockGet: func(ctx context.Context, key client.ObjectKey, obj runtime.Object) error {
 						if key.Name == providerName {
 							pc := providerConfig.DeepCopy()
-							pc.Spec.Credentials.Source = runtimev1alpha1.CredentialsSource("wat")
+							pc.Spec.Credentials.Source = xpv1.CredentialsSource("wat")
 							*obj.(*helmv1beta1.ProviderConfig) = *pc
 							return nil
 						}