Rename KubernetesInstanceKind to KubernetesClusterKind

The actual type is KubernetesCluster, not KubernetesInstance.

Signed-off-by: Nic Cope <negz@rk0n.org>
This commit is contained in:
Nic Cope 2019-04-18 16:07:56 -07:00
parent 5f556c7b50
commit cf93b26ee6
2 changed files with 9 additions and 9 deletions

View File

@ -31,13 +31,13 @@ import (
// Kubernetes Group, Version, and Kind metadata.
const (
Group = "compute.crossplane.io"
Version = "v1alpha1"
APIVersion = Group + "/" + Version
KubernetesInstanceKind = "kubernetescluster"
KubernetesInstanceKindAPIVersion = KubernetesInstanceKind + "." + APIVersion
WorkloadKind = "workload"
WorkloadKindAPIVersion = WorkloadKind + "." + APIVersion
Group = "compute.crossplane.io"
Version = "v1alpha1"
APIVersion = Group + "/" + Version
KubernetesClusterKind = "kubernetescluster"
KubernetesClusterKindAPIVersion = KubernetesClusterKind + "." + APIVersion
WorkloadKind = "workload"
WorkloadKindAPIVersion = WorkloadKind + "." + APIVersion
)
var (

View File

@ -64,7 +64,7 @@ type KubernetesClusterList struct {
// ObjectReference to using this object as a reference
func (kc *KubernetesCluster) ObjectReference() *corev1.ObjectReference {
if kc.Kind == "" {
kc.Kind = KubernetesInstanceKind
kc.Kind = KubernetesClusterKind
}
if kc.APIVersion == "" {
kc.APIVersion = APIVersion
@ -177,7 +177,7 @@ type WorkloadList struct {
// ObjectReference to using this object as a reference
func (kc *Workload) ObjectReference() *corev1.ObjectReference {
if kc.Kind == "" {
kc.Kind = KubernetesInstanceKind
kc.Kind = KubernetesClusterKind
}
if kc.APIVersion == "" {
kc.APIVersion = APIVersion