Skip to content

Commit fc4dc6a

Browse files
k4leung4k8s-ci-robot
authored andcommitted
machinedeployment boilerplate and remove internalversion dir (kubernetes-sigs#142)
1 parent 3a8f44a commit fc4dc6a

File tree

15 files changed

+252
-366
lines changed

15 files changed

+252
-366
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
note: MachineDeployment Example
2+
sample: |
3+
apiVersion: cluster.k8s.io/v1alpha1
4+
kind: MachineDeployment
5+
metadata:
6+
name: machinedeployment-example
7+
spec:

pkg/apis/cluster/v1alpha1/zz_generated.deepcopy.go

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ func (in *ClusterNetworkingConfig) DeepCopy() *ClusterNetworkingConfig {
128128
func (in *ClusterSpec) DeepCopyInto(out *ClusterSpec) {
129129
*out = *in
130130
in.ClusterNetwork.DeepCopyInto(&out.ClusterNetwork)
131+
in.ProviderConfig.DeepCopyInto(&out.ProviderConfig)
131132
return
132133
}
133134

@@ -149,6 +150,15 @@ func (in *ClusterStatus) DeepCopyInto(out *ClusterStatus) {
149150
*out = make([]APIEndpoint, len(*in))
150151
copy(*out, *in)
151152
}
153+
if in.ProviderStatus != nil {
154+
in, out := &in.ProviderStatus, &out.ProviderStatus
155+
if *in == nil {
156+
*out = nil
157+
} else {
158+
*out = new(runtime.RawExtension)
159+
(*in).DeepCopyInto(*out)
160+
}
161+
}
152162
return
153163
}
154164

@@ -610,7 +620,7 @@ func (in *MachineStatus) DeepCopyInto(out *MachineStatus) {
610620
**out = **in
611621
}
612622
}
613-
in.LastUpdated.DeepCopyInto(&out.LastUpdated)
623+
out.LastUpdated = in.LastUpdated
614624
if in.Versions != nil {
615625
in, out := &in.Versions, &out.Versions
616626
if *in == nil {
@@ -638,6 +648,15 @@ func (in *MachineStatus) DeepCopyInto(out *MachineStatus) {
638648
**out = **in
639649
}
640650
}
651+
if in.ProviderStatus != nil {
652+
in, out := &in.ProviderStatus, &out.ProviderStatus
653+
if *in == nil {
654+
*out = nil
655+
} else {
656+
*out = new(runtime.RawExtension)
657+
(*in).DeepCopyInto(*out)
658+
}
659+
}
641660
return
642661
}
643662

pkg/apis/cluster/zz_generated.deepcopy.go

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ func (in *ClusterNetworkingConfig) DeepCopy() *ClusterNetworkingConfig {
128128
func (in *ClusterSpec) DeepCopyInto(out *ClusterSpec) {
129129
*out = *in
130130
in.ClusterNetwork.DeepCopyInto(&out.ClusterNetwork)
131+
in.ProviderConfig.DeepCopyInto(&out.ProviderConfig)
131132
return
132133
}
133134

@@ -149,6 +150,15 @@ func (in *ClusterStatus) DeepCopyInto(out *ClusterStatus) {
149150
*out = make([]APIEndpoint, len(*in))
150151
copy(*out, *in)
151152
}
153+
if in.ProviderStatus != nil {
154+
in, out := &in.ProviderStatus, &out.ProviderStatus
155+
if *in == nil {
156+
*out = nil
157+
} else {
158+
*out = new(runtime.RawExtension)
159+
(*in).DeepCopyInto(*out)
160+
}
161+
}
152162
return
153163
}
154164

@@ -610,7 +620,7 @@ func (in *MachineStatus) DeepCopyInto(out *MachineStatus) {
610620
**out = **in
611621
}
612622
}
613-
in.LastUpdated.DeepCopyInto(&out.LastUpdated)
623+
out.LastUpdated = in.LastUpdated
614624
if in.Versions != nil {
615625
in, out := &in.Versions, &out.Versions
616626
if *in == nil {
@@ -638,6 +648,15 @@ func (in *MachineStatus) DeepCopyInto(out *MachineStatus) {
638648
**out = **in
639649
}
640650
}
651+
if in.ProviderStatus != nil {
652+
in, out := &in.ProviderStatus, &out.ProviderStatus
653+
if *in == nil {
654+
*out = nil
655+
} else {
656+
*out = new(runtime.RawExtension)
657+
(*in).DeepCopyInto(*out)
658+
}
659+
}
641660
return
642661
}
643662

pkg/client/informers_generated/externalversions/factory.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ import (
2323
runtime "k8s.io/apimachinery/pkg/runtime"
2424
schema "k8s.io/apimachinery/pkg/runtime/schema"
2525
cache "k8s.io/client-go/tools/cache"
26+
reflect "reflect"
2627
clientset "sigs.k8s.io/cluster-api/pkg/client/clientset_generated/clientset"
2728
cluster "sigs.k8s.io/cluster-api/pkg/client/informers_generated/externalversions/cluster"
2829
internalinterfaces "sigs.k8s.io/cluster-api/pkg/client/informers_generated/externalversions/internalinterfaces"
29-
reflect "reflect"
3030
sync "sync"
3131
time "time"
3232
)

pkg/client/listers_generated/cluster/internalversion/BUILD

Lines changed: 0 additions & 18 deletions
This file was deleted.

pkg/client/listers_generated/cluster/internalversion/cluster.go

Lines changed: 0 additions & 94 deletions
This file was deleted.

pkg/client/listers_generated/cluster/internalversion/expansion_generated.go

Lines changed: 0 additions & 43 deletions
This file was deleted.

pkg/client/listers_generated/cluster/internalversion/machine.go

Lines changed: 0 additions & 94 deletions
This file was deleted.

0 commit comments

Comments
 (0)