Move embedded API types to v1

Moves the core embedded API types out of the core/v1alpha1 directory and
into common/v1. These types are used by many mature APIs and are now
recognized as stable. This new package should be imported with alias
xpv1 by convention.

Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
This commit is contained in:
hasheddan 2020-11-19 20:01:01 -06:00
parent 1b691efff4
commit 52cc9b82b7
No known key found for this signature in database
GPG Key ID: BD68BC686A14C271
6 changed files with 9 additions and 11 deletions

View File

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
package v1alpha1
package v1
import (
"sort"

View File

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
package v1alpha1
package v1
import (
"testing"

View File

@ -14,8 +14,6 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
// Package v1alpha1 contains core API types used by most Crossplane resources.
// Package v1 contains core API types used by most Crossplane resources.
// +kubebuilder:object:generate=true
// +groupName=core.crossplane.io
// +versionName=v1alpha1
package v1alpha1
package v1

View File

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
package v1alpha1
package v1
// A DeletionPolicy determines what should happen to the underlying external
// resource when a managed resource is deleted.

View File

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
package v1alpha1
package v1
import (
corev1 "k8s.io/api/core/v1"

View File

@ -18,10 +18,10 @@ limitations under the License.
// Code generated by controller-gen. DO NOT EDIT.
package v1alpha1
package v1
import (
"k8s.io/api/core/v1"
corev1 "k8s.io/api/core/v1"
)
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
@ -295,7 +295,7 @@ func (in *TargetSpec) DeepCopyInto(out *TargetSpec) {
}
if in.ResourceReference != nil {
in, out := &in.ResourceReference, &out.ResourceReference
*out = new(v1.ObjectReference)
*out = new(corev1.ObjectReference)
**out = **in
}
}