1145 lines
30 KiB
Go
1145 lines
30 KiB
Go
//go:build !ignore_autogenerated
|
|
|
|
/*
|
|
Copyright 2026.
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
*/
|
|
|
|
// Code generated by controller-gen. DO NOT EDIT.
|
|
|
|
package v1alpha1
|
|
|
|
import (
|
|
"k8s.io/api/core/v1"
|
|
apiextensionsv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
|
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
|
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 *BlendSpec) DeepCopyInto(out *BlendSpec) {
|
|
*out = *in
|
|
if in.CheckLayer != nil {
|
|
in, out := &in.CheckLayer, &out.CheckLayer
|
|
*out = new(int32)
|
|
**out = **in
|
|
}
|
|
if in.RecompRatio != nil {
|
|
in, out := &in.RecompRatio, &out.RecompRatio
|
|
*out = new(float64)
|
|
**out = **in
|
|
}
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BlendSpec.
|
|
func (in *BlendSpec) DeepCopy() *BlendSpec {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(BlendSpec)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *CacheBlendEngine) DeepCopyInto(out *CacheBlendEngine) {
|
|
*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 CacheBlendEngine.
|
|
func (in *CacheBlendEngine) DeepCopy() *CacheBlendEngine {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(CacheBlendEngine)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
|
func (in *CacheBlendEngine) 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 *CacheBlendEngineList) DeepCopyInto(out *CacheBlendEngineList) {
|
|
*out = *in
|
|
out.TypeMeta = in.TypeMeta
|
|
in.ListMeta.DeepCopyInto(&out.ListMeta)
|
|
if in.Items != nil {
|
|
in, out := &in.Items, &out.Items
|
|
*out = make([]CacheBlendEngine, len(*in))
|
|
for i := range *in {
|
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
|
}
|
|
}
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CacheBlendEngineList.
|
|
func (in *CacheBlendEngineList) DeepCopy() *CacheBlendEngineList {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(CacheBlendEngineList)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
|
func (in *CacheBlendEngineList) 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 *CacheBlendEngineSpec) DeepCopyInto(out *CacheBlendEngineSpec) {
|
|
*out = *in
|
|
if in.GPUVendor != nil {
|
|
in, out := &in.GPUVendor, &out.GPUVendor
|
|
*out = new(string)
|
|
**out = **in
|
|
}
|
|
if in.Image != nil {
|
|
in, out := &in.Image, &out.Image
|
|
*out = new(ImageSpec)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
if in.ImagePullSecrets != nil {
|
|
in, out := &in.ImagePullSecrets, &out.ImagePullSecrets
|
|
*out = make([]v1.LocalObjectReference, len(*in))
|
|
copy(*out, *in)
|
|
}
|
|
if in.Server != nil {
|
|
in, out := &in.Server, &out.Server
|
|
*out = new(ServerSpec)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
out.L1 = in.L1
|
|
if in.Eviction != nil {
|
|
in, out := &in.Eviction, &out.Eviction
|
|
*out = new(EvictionSpec)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
if in.Prometheus != nil {
|
|
in, out := &in.Prometheus, &out.Prometheus
|
|
*out = new(PrometheusSpec)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
if in.L2Backend != nil {
|
|
in, out := &in.L2Backend, &out.L2Backend
|
|
*out = new(L2BackendSpec)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
if in.Coordinator != nil {
|
|
in, out := &in.Coordinator, &out.Coordinator
|
|
*out = new(CoordinatorConnectionSpec)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
if in.Blend != nil {
|
|
in, out := &in.Blend, &out.Blend
|
|
*out = new(BlendSpec)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
if in.Injection != nil {
|
|
in, out := &in.Injection, &out.Injection
|
|
*out = new(InjectionSpec)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
if in.ResourceOverrides != nil {
|
|
in, out := &in.ResourceOverrides, &out.ResourceOverrides
|
|
*out = new(v1.ResourceRequirements)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
if in.LogLevel != nil {
|
|
in, out := &in.LogLevel, &out.LogLevel
|
|
*out = new(string)
|
|
**out = **in
|
|
}
|
|
if in.NodeSelector != nil {
|
|
in, out := &in.NodeSelector, &out.NodeSelector
|
|
*out = make(map[string]string, len(*in))
|
|
for key, val := range *in {
|
|
(*out)[key] = val
|
|
}
|
|
}
|
|
if in.Affinity != nil {
|
|
in, out := &in.Affinity, &out.Affinity
|
|
*out = new(v1.Affinity)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
if in.Tolerations != nil {
|
|
in, out := &in.Tolerations, &out.Tolerations
|
|
*out = make([]v1.Toleration, len(*in))
|
|
for i := range *in {
|
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
|
}
|
|
}
|
|
if in.Env != nil {
|
|
in, out := &in.Env, &out.Env
|
|
*out = make([]v1.EnvVar, len(*in))
|
|
for i := range *in {
|
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
|
}
|
|
}
|
|
if in.Volumes != nil {
|
|
in, out := &in.Volumes, &out.Volumes
|
|
*out = make([]v1.Volume, len(*in))
|
|
for i := range *in {
|
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
|
}
|
|
}
|
|
if in.VolumeMounts != nil {
|
|
in, out := &in.VolumeMounts, &out.VolumeMounts
|
|
*out = make([]v1.VolumeMount, len(*in))
|
|
for i := range *in {
|
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
|
}
|
|
}
|
|
if in.PodAnnotations != nil {
|
|
in, out := &in.PodAnnotations, &out.PodAnnotations
|
|
*out = make(map[string]string, len(*in))
|
|
for key, val := range *in {
|
|
(*out)[key] = val
|
|
}
|
|
}
|
|
if in.PodLabels != nil {
|
|
in, out := &in.PodLabels, &out.PodLabels
|
|
*out = make(map[string]string, len(*in))
|
|
for key, val := range *in {
|
|
(*out)[key] = val
|
|
}
|
|
}
|
|
if in.Privileged != nil {
|
|
in, out := &in.Privileged, &out.Privileged
|
|
*out = new(bool)
|
|
**out = **in
|
|
}
|
|
if in.ExtraArgs != nil {
|
|
in, out := &in.ExtraArgs, &out.ExtraArgs
|
|
*out = make([]string, len(*in))
|
|
copy(*out, *in)
|
|
}
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CacheBlendEngineSpec.
|
|
func (in *CacheBlendEngineSpec) DeepCopy() *CacheBlendEngineSpec {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(CacheBlendEngineSpec)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *CacheBlendEngineStatus) DeepCopyInto(out *CacheBlendEngineStatus) {
|
|
*out = *in
|
|
if in.Endpoints != nil {
|
|
in, out := &in.Endpoints, &out.Endpoints
|
|
*out = make([]EndpointStatus, len(*in))
|
|
copy(*out, *in)
|
|
}
|
|
if in.Conditions != nil {
|
|
in, out := &in.Conditions, &out.Conditions
|
|
*out = make([]metav1.Condition, len(*in))
|
|
for i := range *in {
|
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
|
}
|
|
}
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CacheBlendEngineStatus.
|
|
func (in *CacheBlendEngineStatus) DeepCopy() *CacheBlendEngineStatus {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(CacheBlendEngineStatus)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *CoordinatorConnectionSpec) DeepCopyInto(out *CoordinatorConnectionSpec) {
|
|
*out = *in
|
|
if in.Ref != nil {
|
|
in, out := &in.Ref, &out.Ref
|
|
*out = new(v1.LocalObjectReference)
|
|
**out = **in
|
|
}
|
|
if in.URL != nil {
|
|
in, out := &in.URL, &out.URL
|
|
*out = new(string)
|
|
**out = **in
|
|
}
|
|
if in.AdvertiseIP != nil {
|
|
in, out := &in.AdvertiseIP, &out.AdvertiseIP
|
|
*out = new(string)
|
|
**out = **in
|
|
}
|
|
if in.HeartbeatInterval != nil {
|
|
in, out := &in.HeartbeatInterval, &out.HeartbeatInterval
|
|
*out = new(float64)
|
|
**out = **in
|
|
}
|
|
if in.L2EventReporting != nil {
|
|
in, out := &in.L2EventReporting, &out.L2EventReporting
|
|
*out = new(bool)
|
|
**out = **in
|
|
}
|
|
if in.L2EventFlushInterval != nil {
|
|
in, out := &in.L2EventFlushInterval, &out.L2EventFlushInterval
|
|
*out = new(float64)
|
|
**out = **in
|
|
}
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CoordinatorConnectionSpec.
|
|
func (in *CoordinatorConnectionSpec) DeepCopy() *CoordinatorConnectionSpec {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(CoordinatorConnectionSpec)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *EndpointStatus) DeepCopyInto(out *EndpointStatus) {
|
|
*out = *in
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EndpointStatus.
|
|
func (in *EndpointStatus) DeepCopy() *EndpointStatus {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(EndpointStatus)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *EvictionSpec) DeepCopyInto(out *EvictionSpec) {
|
|
*out = *in
|
|
if in.Policy != nil {
|
|
in, out := &in.Policy, &out.Policy
|
|
*out = new(string)
|
|
**out = **in
|
|
}
|
|
if in.TriggerWatermark != nil {
|
|
in, out := &in.TriggerWatermark, &out.TriggerWatermark
|
|
*out = new(float64)
|
|
**out = **in
|
|
}
|
|
if in.EvictionRatio != nil {
|
|
in, out := &in.EvictionRatio, &out.EvictionRatio
|
|
*out = new(float64)
|
|
**out = **in
|
|
}
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EvictionSpec.
|
|
func (in *EvictionSpec) DeepCopy() *EvictionSpec {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(EvictionSpec)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *ImageSpec) DeepCopyInto(out *ImageSpec) {
|
|
*out = *in
|
|
if in.Repository != nil {
|
|
in, out := &in.Repository, &out.Repository
|
|
*out = new(string)
|
|
**out = **in
|
|
}
|
|
if in.Tag != nil {
|
|
in, out := &in.Tag, &out.Tag
|
|
*out = new(string)
|
|
**out = **in
|
|
}
|
|
if in.PullPolicy != nil {
|
|
in, out := &in.PullPolicy, &out.PullPolicy
|
|
*out = new(string)
|
|
**out = **in
|
|
}
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageSpec.
|
|
func (in *ImageSpec) DeepCopy() *ImageSpec {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(ImageSpec)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *InjectionSpec) DeepCopyInto(out *InjectionSpec) {
|
|
*out = *in
|
|
if in.PayloadImage != nil {
|
|
in, out := &in.PayloadImage, &out.PayloadImage
|
|
*out = new(ImageSpec)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
if in.ImagePullSecrets != nil {
|
|
in, out := &in.ImagePullSecrets, &out.ImagePullSecrets
|
|
*out = make([]v1.LocalObjectReference, len(*in))
|
|
copy(*out, *in)
|
|
}
|
|
if in.TargetContainer != nil {
|
|
in, out := &in.TargetContainer, &out.TargetContainer
|
|
*out = new(string)
|
|
**out = **in
|
|
}
|
|
if in.Cudagraph != nil {
|
|
in, out := &in.Cudagraph, &out.Cudagraph
|
|
*out = new(string)
|
|
**out = **in
|
|
}
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InjectionSpec.
|
|
func (in *InjectionSpec) DeepCopy() *InjectionSpec {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(InjectionSpec)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *L1BackendSpec) DeepCopyInto(out *L1BackendSpec) {
|
|
*out = *in
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new L1BackendSpec.
|
|
func (in *L1BackendSpec) DeepCopy() *L1BackendSpec {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(L1BackendSpec)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *L2BackendSpec) DeepCopyInto(out *L2BackendSpec) {
|
|
*out = *in
|
|
if in.RESP != nil {
|
|
in, out := &in.RESP, &out.RESP
|
|
*out = new(RESPL2AdapterSpec)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
if in.Raw != nil {
|
|
in, out := &in.Raw, &out.Raw
|
|
*out = new(RawL2AdapterSpec)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
if in.StorePolicy != nil {
|
|
in, out := &in.StorePolicy, &out.StorePolicy
|
|
*out = new(string)
|
|
**out = **in
|
|
}
|
|
if in.PrefetchPolicy != nil {
|
|
in, out := &in.PrefetchPolicy, &out.PrefetchPolicy
|
|
*out = new(string)
|
|
**out = **in
|
|
}
|
|
if in.PrefetchMaxInFlight != nil {
|
|
in, out := &in.PrefetchMaxInFlight, &out.PrefetchMaxInFlight
|
|
*out = new(int32)
|
|
**out = **in
|
|
}
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new L2BackendSpec.
|
|
func (in *L2BackendSpec) DeepCopy() *L2BackendSpec {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(L2BackendSpec)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *LMCacheCoordinator) DeepCopyInto(out *LMCacheCoordinator) {
|
|
*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 LMCacheCoordinator.
|
|
func (in *LMCacheCoordinator) DeepCopy() *LMCacheCoordinator {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(LMCacheCoordinator)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
|
func (in *LMCacheCoordinator) 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 *LMCacheCoordinatorList) DeepCopyInto(out *LMCacheCoordinatorList) {
|
|
*out = *in
|
|
out.TypeMeta = in.TypeMeta
|
|
in.ListMeta.DeepCopyInto(&out.ListMeta)
|
|
if in.Items != nil {
|
|
in, out := &in.Items, &out.Items
|
|
*out = make([]LMCacheCoordinator, len(*in))
|
|
for i := range *in {
|
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
|
}
|
|
}
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LMCacheCoordinatorList.
|
|
func (in *LMCacheCoordinatorList) DeepCopy() *LMCacheCoordinatorList {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(LMCacheCoordinatorList)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
|
func (in *LMCacheCoordinatorList) 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 *LMCacheCoordinatorSpec) DeepCopyInto(out *LMCacheCoordinatorSpec) {
|
|
*out = *in
|
|
if in.Image != nil {
|
|
in, out := &in.Image, &out.Image
|
|
*out = new(ImageSpec)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
if in.ImagePullSecrets != nil {
|
|
in, out := &in.ImagePullSecrets, &out.ImagePullSecrets
|
|
*out = make([]v1.LocalObjectReference, len(*in))
|
|
copy(*out, *in)
|
|
}
|
|
if in.Replicas != nil {
|
|
in, out := &in.Replicas, &out.Replicas
|
|
*out = new(int32)
|
|
**out = **in
|
|
}
|
|
if in.Host != nil {
|
|
in, out := &in.Host, &out.Host
|
|
*out = new(string)
|
|
**out = **in
|
|
}
|
|
if in.Port != nil {
|
|
in, out := &in.Port, &out.Port
|
|
*out = new(int32)
|
|
**out = **in
|
|
}
|
|
if in.InstanceTimeout != nil {
|
|
in, out := &in.InstanceTimeout, &out.InstanceTimeout
|
|
*out = new(float64)
|
|
**out = **in
|
|
}
|
|
if in.HealthCheckInterval != nil {
|
|
in, out := &in.HealthCheckInterval, &out.HealthCheckInterval
|
|
*out = new(float64)
|
|
**out = **in
|
|
}
|
|
if in.EvictionCheckInterval != nil {
|
|
in, out := &in.EvictionCheckInterval, &out.EvictionCheckInterval
|
|
*out = new(float64)
|
|
**out = **in
|
|
}
|
|
if in.EvictionRatio != nil {
|
|
in, out := &in.EvictionRatio, &out.EvictionRatio
|
|
*out = new(float64)
|
|
**out = **in
|
|
}
|
|
if in.TriggerWatermark != nil {
|
|
in, out := &in.TriggerWatermark, &out.TriggerWatermark
|
|
*out = new(float64)
|
|
**out = **in
|
|
}
|
|
if in.BlendChunkSize != nil {
|
|
in, out := &in.BlendChunkSize, &out.BlendChunkSize
|
|
*out = new(int32)
|
|
**out = **in
|
|
}
|
|
if in.BlendProbeStride != nil {
|
|
in, out := &in.BlendProbeStride, &out.BlendProbeStride
|
|
*out = new(int32)
|
|
**out = **in
|
|
}
|
|
if in.Prometheus != nil {
|
|
in, out := &in.Prometheus, &out.Prometheus
|
|
*out = new(PrometheusSpec)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
if in.ResourceOverrides != nil {
|
|
in, out := &in.ResourceOverrides, &out.ResourceOverrides
|
|
*out = new(v1.ResourceRequirements)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
if in.LogLevel != nil {
|
|
in, out := &in.LogLevel, &out.LogLevel
|
|
*out = new(string)
|
|
**out = **in
|
|
}
|
|
if in.NodeSelector != nil {
|
|
in, out := &in.NodeSelector, &out.NodeSelector
|
|
*out = make(map[string]string, len(*in))
|
|
for key, val := range *in {
|
|
(*out)[key] = val
|
|
}
|
|
}
|
|
if in.Affinity != nil {
|
|
in, out := &in.Affinity, &out.Affinity
|
|
*out = new(v1.Affinity)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
if in.Tolerations != nil {
|
|
in, out := &in.Tolerations, &out.Tolerations
|
|
*out = make([]v1.Toleration, len(*in))
|
|
for i := range *in {
|
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
|
}
|
|
}
|
|
if in.Env != nil {
|
|
in, out := &in.Env, &out.Env
|
|
*out = make([]v1.EnvVar, len(*in))
|
|
for i := range *in {
|
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
|
}
|
|
}
|
|
if in.Volumes != nil {
|
|
in, out := &in.Volumes, &out.Volumes
|
|
*out = make([]v1.Volume, len(*in))
|
|
for i := range *in {
|
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
|
}
|
|
}
|
|
if in.VolumeMounts != nil {
|
|
in, out := &in.VolumeMounts, &out.VolumeMounts
|
|
*out = make([]v1.VolumeMount, len(*in))
|
|
for i := range *in {
|
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
|
}
|
|
}
|
|
if in.PodAnnotations != nil {
|
|
in, out := &in.PodAnnotations, &out.PodAnnotations
|
|
*out = make(map[string]string, len(*in))
|
|
for key, val := range *in {
|
|
(*out)[key] = val
|
|
}
|
|
}
|
|
if in.PodLabels != nil {
|
|
in, out := &in.PodLabels, &out.PodLabels
|
|
*out = make(map[string]string, len(*in))
|
|
for key, val := range *in {
|
|
(*out)[key] = val
|
|
}
|
|
}
|
|
if in.ExtraArgs != nil {
|
|
in, out := &in.ExtraArgs, &out.ExtraArgs
|
|
*out = make([]string, len(*in))
|
|
copy(*out, *in)
|
|
}
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LMCacheCoordinatorSpec.
|
|
func (in *LMCacheCoordinatorSpec) DeepCopy() *LMCacheCoordinatorSpec {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(LMCacheCoordinatorSpec)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *LMCacheCoordinatorStatus) DeepCopyInto(out *LMCacheCoordinatorStatus) {
|
|
*out = *in
|
|
if in.Conditions != nil {
|
|
in, out := &in.Conditions, &out.Conditions
|
|
*out = make([]metav1.Condition, len(*in))
|
|
for i := range *in {
|
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
|
}
|
|
}
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LMCacheCoordinatorStatus.
|
|
func (in *LMCacheCoordinatorStatus) DeepCopy() *LMCacheCoordinatorStatus {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(LMCacheCoordinatorStatus)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *LMCacheEngine) DeepCopyInto(out *LMCacheEngine) {
|
|
*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 LMCacheEngine.
|
|
func (in *LMCacheEngine) DeepCopy() *LMCacheEngine {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(LMCacheEngine)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
|
func (in *LMCacheEngine) 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 *LMCacheEngineList) DeepCopyInto(out *LMCacheEngineList) {
|
|
*out = *in
|
|
out.TypeMeta = in.TypeMeta
|
|
in.ListMeta.DeepCopyInto(&out.ListMeta)
|
|
if in.Items != nil {
|
|
in, out := &in.Items, &out.Items
|
|
*out = make([]LMCacheEngine, len(*in))
|
|
for i := range *in {
|
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
|
}
|
|
}
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LMCacheEngineList.
|
|
func (in *LMCacheEngineList) DeepCopy() *LMCacheEngineList {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(LMCacheEngineList)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
|
func (in *LMCacheEngineList) 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 *LMCacheEngineSpec) DeepCopyInto(out *LMCacheEngineSpec) {
|
|
*out = *in
|
|
if in.GPUVendor != nil {
|
|
in, out := &in.GPUVendor, &out.GPUVendor
|
|
*out = new(string)
|
|
**out = **in
|
|
}
|
|
if in.Image != nil {
|
|
in, out := &in.Image, &out.Image
|
|
*out = new(ImageSpec)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
if in.ImagePullSecrets != nil {
|
|
in, out := &in.ImagePullSecrets, &out.ImagePullSecrets
|
|
*out = make([]v1.LocalObjectReference, len(*in))
|
|
copy(*out, *in)
|
|
}
|
|
if in.Server != nil {
|
|
in, out := &in.Server, &out.Server
|
|
*out = new(ServerSpec)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
out.L1 = in.L1
|
|
if in.Eviction != nil {
|
|
in, out := &in.Eviction, &out.Eviction
|
|
*out = new(EvictionSpec)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
if in.Prometheus != nil {
|
|
in, out := &in.Prometheus, &out.Prometheus
|
|
*out = new(PrometheusSpec)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
if in.L2Backend != nil {
|
|
in, out := &in.L2Backend, &out.L2Backend
|
|
*out = new(L2BackendSpec)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
if in.Coordinator != nil {
|
|
in, out := &in.Coordinator, &out.Coordinator
|
|
*out = new(CoordinatorConnectionSpec)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
if in.Injection != nil {
|
|
in, out := &in.Injection, &out.Injection
|
|
*out = new(LMCacheInjectionSpec)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
if in.ResourceOverrides != nil {
|
|
in, out := &in.ResourceOverrides, &out.ResourceOverrides
|
|
*out = new(v1.ResourceRequirements)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
if in.LogLevel != nil {
|
|
in, out := &in.LogLevel, &out.LogLevel
|
|
*out = new(string)
|
|
**out = **in
|
|
}
|
|
if in.NodeSelector != nil {
|
|
in, out := &in.NodeSelector, &out.NodeSelector
|
|
*out = make(map[string]string, len(*in))
|
|
for key, val := range *in {
|
|
(*out)[key] = val
|
|
}
|
|
}
|
|
if in.Affinity != nil {
|
|
in, out := &in.Affinity, &out.Affinity
|
|
*out = new(v1.Affinity)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
if in.Tolerations != nil {
|
|
in, out := &in.Tolerations, &out.Tolerations
|
|
*out = make([]v1.Toleration, len(*in))
|
|
for i := range *in {
|
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
|
}
|
|
}
|
|
if in.Env != nil {
|
|
in, out := &in.Env, &out.Env
|
|
*out = make([]v1.EnvVar, len(*in))
|
|
for i := range *in {
|
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
|
}
|
|
}
|
|
if in.Volumes != nil {
|
|
in, out := &in.Volumes, &out.Volumes
|
|
*out = make([]v1.Volume, len(*in))
|
|
for i := range *in {
|
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
|
}
|
|
}
|
|
if in.VolumeMounts != nil {
|
|
in, out := &in.VolumeMounts, &out.VolumeMounts
|
|
*out = make([]v1.VolumeMount, len(*in))
|
|
for i := range *in {
|
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
|
}
|
|
}
|
|
if in.PodAnnotations != nil {
|
|
in, out := &in.PodAnnotations, &out.PodAnnotations
|
|
*out = make(map[string]string, len(*in))
|
|
for key, val := range *in {
|
|
(*out)[key] = val
|
|
}
|
|
}
|
|
if in.PodLabels != nil {
|
|
in, out := &in.PodLabels, &out.PodLabels
|
|
*out = make(map[string]string, len(*in))
|
|
for key, val := range *in {
|
|
(*out)[key] = val
|
|
}
|
|
}
|
|
if in.HostNetwork != nil {
|
|
in, out := &in.HostNetwork, &out.HostNetwork
|
|
*out = new(bool)
|
|
**out = **in
|
|
}
|
|
if in.Privileged != nil {
|
|
in, out := &in.Privileged, &out.Privileged
|
|
*out = new(bool)
|
|
**out = **in
|
|
}
|
|
if in.ExtraArgs != nil {
|
|
in, out := &in.ExtraArgs, &out.ExtraArgs
|
|
*out = make([]string, len(*in))
|
|
copy(*out, *in)
|
|
}
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LMCacheEngineSpec.
|
|
func (in *LMCacheEngineSpec) DeepCopy() *LMCacheEngineSpec {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(LMCacheEngineSpec)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *LMCacheEngineStatus) DeepCopyInto(out *LMCacheEngineStatus) {
|
|
*out = *in
|
|
if in.Endpoints != nil {
|
|
in, out := &in.Endpoints, &out.Endpoints
|
|
*out = make([]EndpointStatus, len(*in))
|
|
copy(*out, *in)
|
|
}
|
|
if in.Conditions != nil {
|
|
in, out := &in.Conditions, &out.Conditions
|
|
*out = make([]metav1.Condition, len(*in))
|
|
for i := range *in {
|
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
|
}
|
|
}
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LMCacheEngineStatus.
|
|
func (in *LMCacheEngineStatus) DeepCopy() *LMCacheEngineStatus {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(LMCacheEngineStatus)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *LMCacheInjectionSpec) DeepCopyInto(out *LMCacheInjectionSpec) {
|
|
*out = *in
|
|
if in.PayloadImage != nil {
|
|
in, out := &in.PayloadImage, &out.PayloadImage
|
|
*out = new(ImageSpec)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
if in.ImagePullSecrets != nil {
|
|
in, out := &in.ImagePullSecrets, &out.ImagePullSecrets
|
|
*out = make([]v1.LocalObjectReference, len(*in))
|
|
copy(*out, *in)
|
|
}
|
|
if in.TargetContainer != nil {
|
|
in, out := &in.TargetContainer, &out.TargetContainer
|
|
*out = new(string)
|
|
**out = **in
|
|
}
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LMCacheInjectionSpec.
|
|
func (in *LMCacheInjectionSpec) DeepCopy() *LMCacheInjectionSpec {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(LMCacheInjectionSpec)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *PrometheusSpec) DeepCopyInto(out *PrometheusSpec) {
|
|
*out = *in
|
|
if in.Enabled != nil {
|
|
in, out := &in.Enabled, &out.Enabled
|
|
*out = new(bool)
|
|
**out = **in
|
|
}
|
|
if in.Port != nil {
|
|
in, out := &in.Port, &out.Port
|
|
*out = new(int32)
|
|
**out = **in
|
|
}
|
|
if in.ServiceMonitor != nil {
|
|
in, out := &in.ServiceMonitor, &out.ServiceMonitor
|
|
*out = new(ServiceMonitorSpec)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PrometheusSpec.
|
|
func (in *PrometheusSpec) DeepCopy() *PrometheusSpec {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(PrometheusSpec)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *RESPL2AdapterSpec) DeepCopyInto(out *RESPL2AdapterSpec) {
|
|
*out = *in
|
|
if in.NumWorkers != nil {
|
|
in, out := &in.NumWorkers, &out.NumWorkers
|
|
*out = new(int32)
|
|
**out = **in
|
|
}
|
|
if in.MaxCapacityGB != nil {
|
|
in, out := &in.MaxCapacityGB, &out.MaxCapacityGB
|
|
*out = new(float64)
|
|
**out = **in
|
|
}
|
|
if in.AuthSecretRef != nil {
|
|
in, out := &in.AuthSecretRef, &out.AuthSecretRef
|
|
*out = new(SecretReference)
|
|
**out = **in
|
|
}
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RESPL2AdapterSpec.
|
|
func (in *RESPL2AdapterSpec) DeepCopy() *RESPL2AdapterSpec {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(RESPL2AdapterSpec)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *RawL2AdapterSpec) DeepCopyInto(out *RawL2AdapterSpec) {
|
|
*out = *in
|
|
if in.Config != nil {
|
|
in, out := &in.Config, &out.Config
|
|
*out = make(map[string]apiextensionsv1.JSON, len(*in))
|
|
for key, val := range *in {
|
|
(*out)[key] = *val.DeepCopy()
|
|
}
|
|
}
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RawL2AdapterSpec.
|
|
func (in *RawL2AdapterSpec) DeepCopy() *RawL2AdapterSpec {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(RawL2AdapterSpec)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *SecretReference) DeepCopyInto(out *SecretReference) {
|
|
*out = *in
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretReference.
|
|
func (in *SecretReference) DeepCopy() *SecretReference {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(SecretReference)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *ServerSpec) DeepCopyInto(out *ServerSpec) {
|
|
*out = *in
|
|
if in.Port != nil {
|
|
in, out := &in.Port, &out.Port
|
|
*out = new(int32)
|
|
**out = **in
|
|
}
|
|
if in.ChunkSize != nil {
|
|
in, out := &in.ChunkSize, &out.ChunkSize
|
|
*out = new(int32)
|
|
**out = **in
|
|
}
|
|
if in.MaxWorkers != nil {
|
|
in, out := &in.MaxWorkers, &out.MaxWorkers
|
|
*out = new(int32)
|
|
**out = **in
|
|
}
|
|
if in.HashAlgorithm != nil {
|
|
in, out := &in.HashAlgorithm, &out.HashAlgorithm
|
|
*out = new(string)
|
|
**out = **in
|
|
}
|
|
if in.HTTPPort != nil {
|
|
in, out := &in.HTTPPort, &out.HTTPPort
|
|
*out = new(int32)
|
|
**out = **in
|
|
}
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServerSpec.
|
|
func (in *ServerSpec) DeepCopy() *ServerSpec {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(ServerSpec)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *ServiceMonitorSpec) DeepCopyInto(out *ServiceMonitorSpec) {
|
|
*out = *in
|
|
if in.Enabled != nil {
|
|
in, out := &in.Enabled, &out.Enabled
|
|
*out = new(bool)
|
|
**out = **in
|
|
}
|
|
if in.Interval != nil {
|
|
in, out := &in.Interval, &out.Interval
|
|
*out = new(string)
|
|
**out = **in
|
|
}
|
|
if in.Labels != nil {
|
|
in, out := &in.Labels, &out.Labels
|
|
*out = make(map[string]string, len(*in))
|
|
for key, val := range *in {
|
|
(*out)[key] = val
|
|
}
|
|
}
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceMonitorSpec.
|
|
func (in *ServiceMonitorSpec) DeepCopy() *ServiceMonitorSpec {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(ServiceMonitorSpec)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|