mirror of
https://github.com/hanzo-ml/kuberay.git
synced 2026-10-30 19:48:47 +00:00
* Bump k8s version to 1.19.x and golang to 1.15 Bump the dependency versions - Golang 1.15 - Kubernetes 1.19.14 - controller-runtime 0.7.2 - controller-tools 0.5.0 Signed-off-by: Jiaxin Shan <[email protected]> * Update v1alpha1 RayCluster CRD - Rename `WorkerGroupsSpec` to `WorkerGroupSpecs` - Remove HeadService and add ServiceType and EnableIngressin headGroupSpec - Add EnableInTreeAutoscaling field - Add rich information in RayClusterStatus Signed-off-by: Jiaxin Shan <[email protected]> * Update raycluster controller 1. Refactor some internal methods to make invoking chains clear 2. Clean up some stale codes Signed-off-by: Jiaxin Shan <[email protected]> * Update deploy manifests and examples Signed-off-by: Jiaxin Shan <[email protected]> * Address review comments
205 lines
5.6 KiB
Go
205 lines
5.6 KiB
Go
// +build !ignore_autogenerated
|
|
|
|
// Code generated by controller-gen. DO NOT EDIT.
|
|
|
|
package v1alpha1
|
|
|
|
import (
|
|
runtime "k8s.io/apimachinery/pkg/runtime"
|
|
)
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *HeadGroupSpec) DeepCopyInto(out *HeadGroupSpec) {
|
|
*out = *in
|
|
if in.EnableIngress != nil {
|
|
in, out := &in.EnableIngress, &out.EnableIngress
|
|
*out = new(bool)
|
|
**out = **in
|
|
}
|
|
if in.Replicas != nil {
|
|
in, out := &in.Replicas, &out.Replicas
|
|
*out = new(int32)
|
|
**out = **in
|
|
}
|
|
if in.RayStartParams != nil {
|
|
in, out := &in.RayStartParams, &out.RayStartParams
|
|
*out = make(map[string]string, len(*in))
|
|
for key, val := range *in {
|
|
(*out)[key] = val
|
|
}
|
|
}
|
|
in.Template.DeepCopyInto(&out.Template)
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HeadGroupSpec.
|
|
func (in *HeadGroupSpec) DeepCopy() *HeadGroupSpec {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(HeadGroupSpec)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *RayCluster) DeepCopyInto(out *RayCluster) {
|
|
*out = *in
|
|
out.TypeMeta = in.TypeMeta
|
|
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
|
|
in.Spec.DeepCopyInto(&out.Spec)
|
|
in.Status.DeepCopyInto(&out.Status)
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RayCluster.
|
|
func (in *RayCluster) DeepCopy() *RayCluster {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(RayCluster)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
|
func (in *RayCluster) DeepCopyObject() runtime.Object {
|
|
if c := in.DeepCopy(); c != nil {
|
|
return c
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *RayClusterList) DeepCopyInto(out *RayClusterList) {
|
|
*out = *in
|
|
out.TypeMeta = in.TypeMeta
|
|
in.ListMeta.DeepCopyInto(&out.ListMeta)
|
|
if in.Items != nil {
|
|
in, out := &in.Items, &out.Items
|
|
*out = make([]RayCluster, len(*in))
|
|
for i := range *in {
|
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
|
}
|
|
}
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RayClusterList.
|
|
func (in *RayClusterList) DeepCopy() *RayClusterList {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(RayClusterList)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
|
func (in *RayClusterList) DeepCopyObject() runtime.Object {
|
|
if c := in.DeepCopy(); c != nil {
|
|
return c
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *RayClusterSpec) DeepCopyInto(out *RayClusterSpec) {
|
|
*out = *in
|
|
in.HeadGroupSpec.DeepCopyInto(&out.HeadGroupSpec)
|
|
if in.WorkerGroupSpecs != nil {
|
|
in, out := &in.WorkerGroupSpecs, &out.WorkerGroupSpecs
|
|
*out = make([]WorkerGroupSpec, len(*in))
|
|
for i := range *in {
|
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
|
}
|
|
}
|
|
if in.EnableInTreeAutoscaling != nil {
|
|
in, out := &in.EnableInTreeAutoscaling, &out.EnableInTreeAutoscaling
|
|
*out = new(bool)
|
|
**out = **in
|
|
}
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RayClusterSpec.
|
|
func (in *RayClusterSpec) DeepCopy() *RayClusterSpec {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(RayClusterSpec)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *RayClusterStatus) DeepCopyInto(out *RayClusterStatus) {
|
|
*out = *in
|
|
in.LastUpdateTime.DeepCopyInto(&out.LastUpdateTime)
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RayClusterStatus.
|
|
func (in *RayClusterStatus) DeepCopy() *RayClusterStatus {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(RayClusterStatus)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *ScaleStrategy) DeepCopyInto(out *ScaleStrategy) {
|
|
*out = *in
|
|
if in.WorkersToDelete != nil {
|
|
in, out := &in.WorkersToDelete, &out.WorkersToDelete
|
|
*out = make([]string, len(*in))
|
|
copy(*out, *in)
|
|
}
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScaleStrategy.
|
|
func (in *ScaleStrategy) DeepCopy() *ScaleStrategy {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(ScaleStrategy)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *WorkerGroupSpec) DeepCopyInto(out *WorkerGroupSpec) {
|
|
*out = *in
|
|
if in.Replicas != nil {
|
|
in, out := &in.Replicas, &out.Replicas
|
|
*out = new(int32)
|
|
**out = **in
|
|
}
|
|
if in.MinReplicas != nil {
|
|
in, out := &in.MinReplicas, &out.MinReplicas
|
|
*out = new(int32)
|
|
**out = **in
|
|
}
|
|
if in.MaxReplicas != nil {
|
|
in, out := &in.MaxReplicas, &out.MaxReplicas
|
|
*out = new(int32)
|
|
**out = **in
|
|
}
|
|
if in.RayStartParams != nil {
|
|
in, out := &in.RayStartParams, &out.RayStartParams
|
|
*out = make(map[string]string, len(*in))
|
|
for key, val := range *in {
|
|
(*out)[key] = val
|
|
}
|
|
}
|
|
in.Template.DeepCopyInto(&out.Template)
|
|
in.ScaleStrategy.DeepCopyInto(&out.ScaleStrategy)
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkerGroupSpec.
|
|
func (in *WorkerGroupSpec) DeepCopy() *WorkerGroupSpec {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(WorkerGroupSpec)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|