Rename KubernetesInstanceKind to KubernetesClusterKind
The actual type is KubernetesCluster, not KubernetesInstance. Signed-off-by: Nic Cope <negz@rk0n.org>
This commit is contained in:
parent
5f556c7b50
commit
cf93b26ee6
|
|
@ -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 (
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue