mirror of
https://github.com/hanzo-ml/kserve.git
synced 2026-10-30 20:53:49 +00:00
1510 lines
43 KiB
Go
Generated
1510 lines
43 KiB
Go
Generated
//go:build !ignore_autogenerated
|
|
|
|
/*
|
|
Copyright 2026 The KServe Authors.
|
|
|
|
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 v1beta1
|
|
|
|
import (
|
|
"github.com/kserve/kserve/pkg/constants"
|
|
"k8s.io/api/apps/v1"
|
|
"k8s.io/api/autoscaling/v2"
|
|
corev1 "k8s.io/api/core/v1"
|
|
"k8s.io/apimachinery/pkg/runtime"
|
|
"knative.dev/pkg/apis"
|
|
duckv1 "knative.dev/pkg/apis/duck/v1"
|
|
servingv1 "knative.dev/serving/pkg/apis/serving/v1"
|
|
)
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *ARTExplainerSpec) DeepCopyInto(out *ARTExplainerSpec) {
|
|
*out = *in
|
|
in.ExplainerExtensionSpec.DeepCopyInto(&out.ExplainerExtensionSpec)
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ARTExplainerSpec.
|
|
func (in *ARTExplainerSpec) DeepCopy() *ARTExplainerSpec {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(ARTExplainerSpec)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *AuthenticationRef) DeepCopyInto(out *AuthenticationRef) {
|
|
*out = *in
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuthenticationRef.
|
|
func (in *AuthenticationRef) DeepCopy() *AuthenticationRef {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(AuthenticationRef)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *AutoScalingSpec) DeepCopyInto(out *AutoScalingSpec) {
|
|
*out = *in
|
|
if in.Metrics != nil {
|
|
in, out := &in.Metrics, &out.Metrics
|
|
*out = make([]MetricsSpec, len(*in))
|
|
for i := range *in {
|
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
|
}
|
|
}
|
|
if in.Behavior != nil {
|
|
in, out := &in.Behavior, &out.Behavior
|
|
*out = new(v2.HorizontalPodAutoscalerBehavior)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AutoScalingSpec.
|
|
func (in *AutoScalingSpec) DeepCopy() *AutoScalingSpec {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(AutoScalingSpec)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *AutoscalerConfig) DeepCopyInto(out *AutoscalerConfig) {
|
|
*out = *in
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AutoscalerConfig.
|
|
func (in *AutoscalerConfig) DeepCopy() *AutoscalerConfig {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(AutoscalerConfig)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *Batcher) DeepCopyInto(out *Batcher) {
|
|
*out = *in
|
|
if in.MaxBatchSize != nil {
|
|
in, out := &in.MaxBatchSize, &out.MaxBatchSize
|
|
*out = new(int)
|
|
**out = **in
|
|
}
|
|
if in.MaxLatency != nil {
|
|
in, out := &in.MaxLatency, &out.MaxLatency
|
|
*out = new(int)
|
|
**out = **in
|
|
}
|
|
if in.Timeout != nil {
|
|
in, out := &in.Timeout, &out.Timeout
|
|
*out = new(int)
|
|
**out = **in
|
|
}
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Batcher.
|
|
func (in *Batcher) DeepCopy() *Batcher {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(Batcher)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *ComponentExtensionSpec) DeepCopyInto(out *ComponentExtensionSpec) {
|
|
*out = *in
|
|
if in.MinReplicas != nil {
|
|
in, out := &in.MinReplicas, &out.MinReplicas
|
|
*out = new(int32)
|
|
**out = **in
|
|
}
|
|
if in.ScaleTarget != nil {
|
|
in, out := &in.ScaleTarget, &out.ScaleTarget
|
|
*out = new(int32)
|
|
**out = **in
|
|
}
|
|
if in.ScaleMetric != nil {
|
|
in, out := &in.ScaleMetric, &out.ScaleMetric
|
|
*out = new(ScaleMetric)
|
|
**out = **in
|
|
}
|
|
if in.ScaleMetricType != nil {
|
|
in, out := &in.ScaleMetricType, &out.ScaleMetricType
|
|
*out = new(MetricTargetType)
|
|
**out = **in
|
|
}
|
|
if in.AutoScaling != nil {
|
|
in, out := &in.AutoScaling, &out.AutoScaling
|
|
*out = new(AutoScalingSpec)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
if in.ContainerConcurrency != nil {
|
|
in, out := &in.ContainerConcurrency, &out.ContainerConcurrency
|
|
*out = new(int64)
|
|
**out = **in
|
|
}
|
|
if in.TimeoutSeconds != nil {
|
|
in, out := &in.TimeoutSeconds, &out.TimeoutSeconds
|
|
*out = new(int64)
|
|
**out = **in
|
|
}
|
|
if in.CanaryTrafficPercent != nil {
|
|
in, out := &in.CanaryTrafficPercent, &out.CanaryTrafficPercent
|
|
*out = new(int64)
|
|
**out = **in
|
|
}
|
|
if in.Logger != nil {
|
|
in, out := &in.Logger, &out.Logger
|
|
*out = new(LoggerSpec)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
if in.Batcher != nil {
|
|
in, out := &in.Batcher, &out.Batcher
|
|
*out = new(Batcher)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
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
|
|
}
|
|
}
|
|
if in.Annotations != nil {
|
|
in, out := &in.Annotations, &out.Annotations
|
|
*out = make(map[string]string, len(*in))
|
|
for key, val := range *in {
|
|
(*out)[key] = val
|
|
}
|
|
}
|
|
if in.DeploymentStrategy != nil {
|
|
in, out := &in.DeploymentStrategy, &out.DeploymentStrategy
|
|
*out = new(v1.DeploymentStrategy)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ComponentExtensionSpec.
|
|
func (in *ComponentExtensionSpec) DeepCopy() *ComponentExtensionSpec {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(ComponentExtensionSpec)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *ComponentStatusSpec) DeepCopyInto(out *ComponentStatusSpec) {
|
|
*out = *in
|
|
if in.Traffic != nil {
|
|
in, out := &in.Traffic, &out.Traffic
|
|
*out = make([]servingv1.TrafficTarget, len(*in))
|
|
for i := range *in {
|
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
|
}
|
|
}
|
|
if in.URL != nil {
|
|
in, out := &in.URL, &out.URL
|
|
*out = new(apis.URL)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
if in.RestURL != nil {
|
|
in, out := &in.RestURL, &out.RestURL
|
|
*out = new(apis.URL)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
if in.GrpcURL != nil {
|
|
in, out := &in.GrpcURL, &out.GrpcURL
|
|
*out = new(apis.URL)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
if in.Address != nil {
|
|
in, out := &in.Address, &out.Address
|
|
*out = new(duckv1.Addressable)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ComponentStatusSpec.
|
|
func (in *ComponentStatusSpec) DeepCopy() *ComponentStatusSpec {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(ComponentStatusSpec)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *ConfidentialSpec) DeepCopyInto(out *ConfidentialSpec) {
|
|
*out = *in
|
|
if in.ResourceId != nil {
|
|
in, out := &in.ResourceId, &out.ResourceId
|
|
*out = new(string)
|
|
**out = **in
|
|
}
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfidentialSpec.
|
|
func (in *ConfidentialSpec) DeepCopy() *ConfidentialSpec {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(ConfidentialSpec)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *CustomExplainer) DeepCopyInto(out *CustomExplainer) {
|
|
*out = *in
|
|
in.PodSpec.DeepCopyInto(&out.PodSpec)
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomExplainer.
|
|
func (in *CustomExplainer) DeepCopy() *CustomExplainer {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(CustomExplainer)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *CustomPredictor) DeepCopyInto(out *CustomPredictor) {
|
|
*out = *in
|
|
in.PodSpec.DeepCopyInto(&out.PodSpec)
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomPredictor.
|
|
func (in *CustomPredictor) DeepCopy() *CustomPredictor {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(CustomPredictor)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *CustomTransformer) DeepCopyInto(out *CustomTransformer) {
|
|
*out = *in
|
|
in.PodSpec.DeepCopyInto(&out.PodSpec)
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomTransformer.
|
|
func (in *CustomTransformer) DeepCopy() *CustomTransformer {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(CustomTransformer)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *DeploymentRolloutStrategy) DeepCopyInto(out *DeploymentRolloutStrategy) {
|
|
*out = *in
|
|
if in.DefaultRollout != nil {
|
|
in, out := &in.DefaultRollout, &out.DefaultRollout
|
|
*out = new(RolloutSpec)
|
|
**out = **in
|
|
}
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeploymentRolloutStrategy.
|
|
func (in *DeploymentRolloutStrategy) DeepCopy() *DeploymentRolloutStrategy {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(DeploymentRolloutStrategy)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *ExplainerExtensionSpec) DeepCopyInto(out *ExplainerExtensionSpec) {
|
|
*out = *in
|
|
if in.RuntimeVersion != nil {
|
|
in, out := &in.RuntimeVersion, &out.RuntimeVersion
|
|
*out = new(string)
|
|
**out = **in
|
|
}
|
|
if in.Config != nil {
|
|
in, out := &in.Config, &out.Config
|
|
*out = make(map[string]string, len(*in))
|
|
for key, val := range *in {
|
|
(*out)[key] = val
|
|
}
|
|
}
|
|
in.Container.DeepCopyInto(&out.Container)
|
|
if in.Storage != nil {
|
|
in, out := &in.Storage, &out.Storage
|
|
*out = new(ModelStorageSpec)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExplainerExtensionSpec.
|
|
func (in *ExplainerExtensionSpec) DeepCopy() *ExplainerExtensionSpec {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(ExplainerExtensionSpec)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *ExplainerSpec) DeepCopyInto(out *ExplainerSpec) {
|
|
*out = *in
|
|
if in.ART != nil {
|
|
in, out := &in.ART, &out.ART
|
|
*out = new(ARTExplainerSpec)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
in.PodSpec.DeepCopyInto(&out.PodSpec)
|
|
in.ComponentExtensionSpec.DeepCopyInto(&out.ComponentExtensionSpec)
|
|
if in.StorageUris != nil {
|
|
in, out := &in.StorageUris, &out.StorageUris
|
|
*out = make([]StorageUri, len(*in))
|
|
copy(*out, *in)
|
|
}
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExplainerSpec.
|
|
func (in *ExplainerSpec) DeepCopy() *ExplainerSpec {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(ExplainerSpec)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *ExtMetricAuthentication) DeepCopyInto(out *ExtMetricAuthentication) {
|
|
*out = *in
|
|
out.AuthenticationRef = in.AuthenticationRef
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExtMetricAuthentication.
|
|
func (in *ExtMetricAuthentication) DeepCopy() *ExtMetricAuthentication {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(ExtMetricAuthentication)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *ExternalMetricSource) DeepCopyInto(out *ExternalMetricSource) {
|
|
*out = *in
|
|
out.Metric = in.Metric
|
|
if in.Authentication != nil {
|
|
in, out := &in.Authentication, &out.Authentication
|
|
*out = new(ExtMetricAuthentication)
|
|
**out = **in
|
|
}
|
|
in.Target.DeepCopyInto(&out.Target)
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalMetricSource.
|
|
func (in *ExternalMetricSource) DeepCopy() *ExternalMetricSource {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(ExternalMetricSource)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *ExternalMetrics) DeepCopyInto(out *ExternalMetrics) {
|
|
*out = *in
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalMetrics.
|
|
func (in *ExternalMetrics) DeepCopy() *ExternalMetrics {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(ExternalMetrics)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *FailureInfo) DeepCopyInto(out *FailureInfo) {
|
|
*out = *in
|
|
if in.Time != nil {
|
|
in, out := &in.Time, &out.Time
|
|
*out = (*in).DeepCopy()
|
|
}
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FailureInfo.
|
|
func (in *FailureInfo) DeepCopy() *FailureInfo {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(FailureInfo)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *HuggingFaceRuntimeSpec) DeepCopyInto(out *HuggingFaceRuntimeSpec) {
|
|
*out = *in
|
|
in.PredictorExtensionSpec.DeepCopyInto(&out.PredictorExtensionSpec)
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HuggingFaceRuntimeSpec.
|
|
func (in *HuggingFaceRuntimeSpec) DeepCopy() *HuggingFaceRuntimeSpec {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(HuggingFaceRuntimeSpec)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *InferenceService) DeepCopyInto(out *InferenceService) {
|
|
*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 InferenceService.
|
|
func (in *InferenceService) DeepCopy() *InferenceService {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(InferenceService)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
|
func (in *InferenceService) 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 *InferenceServiceList) DeepCopyInto(out *InferenceServiceList) {
|
|
*out = *in
|
|
out.TypeMeta = in.TypeMeta
|
|
in.ListMeta.DeepCopyInto(&out.ListMeta)
|
|
if in.Items != nil {
|
|
in, out := &in.Items, &out.Items
|
|
*out = make([]InferenceService, len(*in))
|
|
for i := range *in {
|
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
|
}
|
|
}
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InferenceServiceList.
|
|
func (in *InferenceServiceList) DeepCopy() *InferenceServiceList {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(InferenceServiceList)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
|
func (in *InferenceServiceList) 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 *InferenceServiceSpec) DeepCopyInto(out *InferenceServiceSpec) {
|
|
*out = *in
|
|
in.Predictor.DeepCopyInto(&out.Predictor)
|
|
if in.Explainer != nil {
|
|
in, out := &in.Explainer, &out.Explainer
|
|
*out = new(ExplainerSpec)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
if in.Transformer != nil {
|
|
in, out := &in.Transformer, &out.Transformer
|
|
*out = new(TransformerSpec)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InferenceServiceSpec.
|
|
func (in *InferenceServiceSpec) DeepCopy() *InferenceServiceSpec {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(InferenceServiceSpec)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *InferenceServiceStatus) DeepCopyInto(out *InferenceServiceStatus) {
|
|
*out = *in
|
|
in.Status.DeepCopyInto(&out.Status)
|
|
if in.Address != nil {
|
|
in, out := &in.Address, &out.Address
|
|
*out = new(duckv1.Addressable)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
if in.URL != nil {
|
|
in, out := &in.URL, &out.URL
|
|
*out = new(apis.URL)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
if in.Components != nil {
|
|
in, out := &in.Components, &out.Components
|
|
*out = make(map[ComponentType]ComponentStatusSpec, len(*in))
|
|
for key, val := range *in {
|
|
(*out)[key] = *val.DeepCopy()
|
|
}
|
|
}
|
|
in.ModelStatus.DeepCopyInto(&out.ModelStatus)
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InferenceServiceStatus.
|
|
func (in *InferenceServiceStatus) DeepCopy() *InferenceServiceStatus {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(InferenceServiceStatus)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *LightGBMSpec) DeepCopyInto(out *LightGBMSpec) {
|
|
*out = *in
|
|
in.PredictorExtensionSpec.DeepCopyInto(&out.PredictorExtensionSpec)
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LightGBMSpec.
|
|
func (in *LightGBMSpec) DeepCopy() *LightGBMSpec {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(LightGBMSpec)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *LoggerSpec) DeepCopyInto(out *LoggerSpec) {
|
|
*out = *in
|
|
if in.URL != nil {
|
|
in, out := &in.URL, &out.URL
|
|
*out = new(string)
|
|
**out = **in
|
|
}
|
|
if in.MetadataHeaders != nil {
|
|
in, out := &in.MetadataHeaders, &out.MetadataHeaders
|
|
*out = make([]string, len(*in))
|
|
copy(*out, *in)
|
|
}
|
|
if in.MetadataAnnotations != nil {
|
|
in, out := &in.MetadataAnnotations, &out.MetadataAnnotations
|
|
*out = make([]string, len(*in))
|
|
copy(*out, *in)
|
|
}
|
|
if in.Storage != nil {
|
|
in, out := &in.Storage, &out.Storage
|
|
*out = new(LoggerStorageSpec)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
if in.MarshallerURL != nil {
|
|
in, out := &in.MarshallerURL, &out.MarshallerURL
|
|
*out = new(string)
|
|
**out = **in
|
|
}
|
|
if in.BatchSize != nil {
|
|
in, out := &in.BatchSize, &out.BatchSize
|
|
*out = new(int)
|
|
**out = **in
|
|
}
|
|
if in.BatchInterval != nil {
|
|
in, out := &in.BatchInterval, &out.BatchInterval
|
|
*out = new(string)
|
|
**out = **in
|
|
}
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoggerSpec.
|
|
func (in *LoggerSpec) DeepCopy() *LoggerSpec {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(LoggerSpec)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *LoggerStorageSpec) DeepCopyInto(out *LoggerStorageSpec) {
|
|
*out = *in
|
|
in.StorageSpec.DeepCopyInto(&out.StorageSpec)
|
|
if in.ServiceAccountName != nil {
|
|
in, out := &in.ServiceAccountName, &out.ServiceAccountName
|
|
*out = new(string)
|
|
**out = **in
|
|
}
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoggerStorageSpec.
|
|
func (in *LoggerStorageSpec) DeepCopy() *LoggerStorageSpec {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(LoggerStorageSpec)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *MetricQuantity) DeepCopyInto(out *MetricQuantity) {
|
|
clone := in.DeepCopy()
|
|
*out = *clone
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *MetricTarget) DeepCopyInto(out *MetricTarget) {
|
|
*out = *in
|
|
if in.Value != nil {
|
|
in, out := &in.Value, &out.Value
|
|
*out = (*in).DeepCopy()
|
|
}
|
|
if in.AverageValue != nil {
|
|
in, out := &in.AverageValue, &out.AverageValue
|
|
*out = (*in).DeepCopy()
|
|
}
|
|
if in.AverageUtilization != nil {
|
|
in, out := &in.AverageUtilization, &out.AverageUtilization
|
|
*out = new(int32)
|
|
**out = **in
|
|
}
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetricTarget.
|
|
func (in *MetricTarget) DeepCopy() *MetricTarget {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(MetricTarget)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *MetricsSpec) DeepCopyInto(out *MetricsSpec) {
|
|
*out = *in
|
|
if in.Resource != nil {
|
|
in, out := &in.Resource, &out.Resource
|
|
*out = new(ResourceMetricSource)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
if in.External != nil {
|
|
in, out := &in.External, &out.External
|
|
*out = new(ExternalMetricSource)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
if in.PodMetric != nil {
|
|
in, out := &in.PodMetric, &out.PodMetric
|
|
*out = new(PodMetricSource)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetricsSpec.
|
|
func (in *MetricsSpec) DeepCopy() *MetricsSpec {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(MetricsSpec)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *ModelCopies) DeepCopyInto(out *ModelCopies) {
|
|
*out = *in
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ModelCopies.
|
|
func (in *ModelCopies) DeepCopy() *ModelCopies {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(ModelCopies)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *ModelFormat) DeepCopyInto(out *ModelFormat) {
|
|
*out = *in
|
|
if in.Version != nil {
|
|
in, out := &in.Version, &out.Version
|
|
*out = new(string)
|
|
**out = **in
|
|
}
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ModelFormat.
|
|
func (in *ModelFormat) DeepCopy() *ModelFormat {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(ModelFormat)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *ModelRevisionStates) DeepCopyInto(out *ModelRevisionStates) {
|
|
*out = *in
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ModelRevisionStates.
|
|
func (in *ModelRevisionStates) DeepCopy() *ModelRevisionStates {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(ModelRevisionStates)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *ModelSpec) DeepCopyInto(out *ModelSpec) {
|
|
*out = *in
|
|
in.ModelFormat.DeepCopyInto(&out.ModelFormat)
|
|
if in.Runtime != nil {
|
|
in, out := &in.Runtime, &out.Runtime
|
|
*out = new(string)
|
|
**out = **in
|
|
}
|
|
in.PredictorExtensionSpec.DeepCopyInto(&out.PredictorExtensionSpec)
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ModelSpec.
|
|
func (in *ModelSpec) DeepCopy() *ModelSpec {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(ModelSpec)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *ModelStatus) DeepCopyInto(out *ModelStatus) {
|
|
*out = *in
|
|
if in.ModelRevisionStates != nil {
|
|
in, out := &in.ModelRevisionStates, &out.ModelRevisionStates
|
|
*out = new(ModelRevisionStates)
|
|
**out = **in
|
|
}
|
|
if in.LastFailureInfo != nil {
|
|
in, out := &in.LastFailureInfo, &out.LastFailureInfo
|
|
*out = new(FailureInfo)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
if in.ModelCopies != nil {
|
|
in, out := &in.ModelCopies, &out.ModelCopies
|
|
*out = new(ModelCopies)
|
|
**out = **in
|
|
}
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ModelStatus.
|
|
func (in *ModelStatus) DeepCopy() *ModelStatus {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(ModelStatus)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *ModelStorageSpec) DeepCopyInto(out *ModelStorageSpec) {
|
|
*out = *in
|
|
in.StorageSpec.DeepCopyInto(&out.StorageSpec)
|
|
if in.SchemaPath != nil {
|
|
in, out := &in.SchemaPath, &out.SchemaPath
|
|
*out = new(string)
|
|
**out = **in
|
|
}
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ModelStorageSpec.
|
|
func (in *ModelStorageSpec) DeepCopy() *ModelStorageSpec {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(ModelStorageSpec)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *ONNXRuntimeSpec) DeepCopyInto(out *ONNXRuntimeSpec) {
|
|
*out = *in
|
|
in.PredictorExtensionSpec.DeepCopyInto(&out.PredictorExtensionSpec)
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ONNXRuntimeSpec.
|
|
func (in *ONNXRuntimeSpec) DeepCopy() *ONNXRuntimeSpec {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(ONNXRuntimeSpec)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *OtelCollectorConfig) DeepCopyInto(out *OtelCollectorConfig) {
|
|
*out = *in
|
|
out.Resource = in.Resource
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OtelCollectorConfig.
|
|
func (in *OtelCollectorConfig) DeepCopy() *OtelCollectorConfig {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(OtelCollectorConfig)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *PMMLSpec) DeepCopyInto(out *PMMLSpec) {
|
|
*out = *in
|
|
in.PredictorExtensionSpec.DeepCopyInto(&out.PredictorExtensionSpec)
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PMMLSpec.
|
|
func (in *PMMLSpec) DeepCopy() *PMMLSpec {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(PMMLSpec)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *PaddleServerSpec) DeepCopyInto(out *PaddleServerSpec) {
|
|
*out = *in
|
|
in.PredictorExtensionSpec.DeepCopyInto(&out.PredictorExtensionSpec)
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PaddleServerSpec.
|
|
func (in *PaddleServerSpec) DeepCopy() *PaddleServerSpec {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(PaddleServerSpec)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *PodMetricSource) DeepCopyInto(out *PodMetricSource) {
|
|
*out = *in
|
|
in.Metric.DeepCopyInto(&out.Metric)
|
|
in.Target.DeepCopyInto(&out.Target)
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodMetricSource.
|
|
func (in *PodMetricSource) DeepCopy() *PodMetricSource {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(PodMetricSource)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *PodMetrics) DeepCopyInto(out *PodMetrics) {
|
|
*out = *in
|
|
if in.MetricNames != nil {
|
|
in, out := &in.MetricNames, &out.MetricNames
|
|
*out = make([]string, len(*in))
|
|
copy(*out, *in)
|
|
}
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodMetrics.
|
|
func (in *PodMetrics) DeepCopy() *PodMetrics {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(PodMetrics)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *PodSpec) DeepCopyInto(out *PodSpec) {
|
|
*out = *in
|
|
if in.Volumes != nil {
|
|
in, out := &in.Volumes, &out.Volumes
|
|
*out = make([]corev1.Volume, len(*in))
|
|
for i := range *in {
|
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
|
}
|
|
}
|
|
if in.InitContainers != nil {
|
|
in, out := &in.InitContainers, &out.InitContainers
|
|
*out = make([]corev1.Container, len(*in))
|
|
for i := range *in {
|
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
|
}
|
|
}
|
|
if in.Containers != nil {
|
|
in, out := &in.Containers, &out.Containers
|
|
*out = make([]corev1.Container, len(*in))
|
|
for i := range *in {
|
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
|
}
|
|
}
|
|
if in.EphemeralContainers != nil {
|
|
in, out := &in.EphemeralContainers, &out.EphemeralContainers
|
|
*out = make([]corev1.EphemeralContainer, len(*in))
|
|
for i := range *in {
|
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
|
}
|
|
}
|
|
if in.TerminationGracePeriodSeconds != nil {
|
|
in, out := &in.TerminationGracePeriodSeconds, &out.TerminationGracePeriodSeconds
|
|
*out = new(int64)
|
|
**out = **in
|
|
}
|
|
if in.ActiveDeadlineSeconds != nil {
|
|
in, out := &in.ActiveDeadlineSeconds, &out.ActiveDeadlineSeconds
|
|
*out = new(int64)
|
|
**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.AutomountServiceAccountToken != nil {
|
|
in, out := &in.AutomountServiceAccountToken, &out.AutomountServiceAccountToken
|
|
*out = new(bool)
|
|
**out = **in
|
|
}
|
|
if in.ShareProcessNamespace != nil {
|
|
in, out := &in.ShareProcessNamespace, &out.ShareProcessNamespace
|
|
*out = new(bool)
|
|
**out = **in
|
|
}
|
|
if in.SecurityContext != nil {
|
|
in, out := &in.SecurityContext, &out.SecurityContext
|
|
*out = new(corev1.PodSecurityContext)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
if in.ImagePullSecrets != nil {
|
|
in, out := &in.ImagePullSecrets, &out.ImagePullSecrets
|
|
*out = make([]corev1.LocalObjectReference, len(*in))
|
|
copy(*out, *in)
|
|
}
|
|
if in.Affinity != nil {
|
|
in, out := &in.Affinity, &out.Affinity
|
|
*out = new(corev1.Affinity)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
if in.Tolerations != nil {
|
|
in, out := &in.Tolerations, &out.Tolerations
|
|
*out = make([]corev1.Toleration, len(*in))
|
|
for i := range *in {
|
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
|
}
|
|
}
|
|
if in.HostAliases != nil {
|
|
in, out := &in.HostAliases, &out.HostAliases
|
|
*out = make([]corev1.HostAlias, len(*in))
|
|
for i := range *in {
|
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
|
}
|
|
}
|
|
if in.Priority != nil {
|
|
in, out := &in.Priority, &out.Priority
|
|
*out = new(int32)
|
|
**out = **in
|
|
}
|
|
if in.DNSConfig != nil {
|
|
in, out := &in.DNSConfig, &out.DNSConfig
|
|
*out = new(corev1.PodDNSConfig)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
if in.ReadinessGates != nil {
|
|
in, out := &in.ReadinessGates, &out.ReadinessGates
|
|
*out = make([]corev1.PodReadinessGate, len(*in))
|
|
copy(*out, *in)
|
|
}
|
|
if in.RuntimeClassName != nil {
|
|
in, out := &in.RuntimeClassName, &out.RuntimeClassName
|
|
*out = new(string)
|
|
**out = **in
|
|
}
|
|
if in.EnableServiceLinks != nil {
|
|
in, out := &in.EnableServiceLinks, &out.EnableServiceLinks
|
|
*out = new(bool)
|
|
**out = **in
|
|
}
|
|
if in.PreemptionPolicy != nil {
|
|
in, out := &in.PreemptionPolicy, &out.PreemptionPolicy
|
|
*out = new(corev1.PreemptionPolicy)
|
|
**out = **in
|
|
}
|
|
if in.Overhead != nil {
|
|
in, out := &in.Overhead, &out.Overhead
|
|
*out = make(corev1.ResourceList, len(*in))
|
|
for key, val := range *in {
|
|
(*out)[key] = val.DeepCopy()
|
|
}
|
|
}
|
|
if in.TopologySpreadConstraints != nil {
|
|
in, out := &in.TopologySpreadConstraints, &out.TopologySpreadConstraints
|
|
*out = make([]corev1.TopologySpreadConstraint, len(*in))
|
|
for i := range *in {
|
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
|
}
|
|
}
|
|
if in.SetHostnameAsFQDN != nil {
|
|
in, out := &in.SetHostnameAsFQDN, &out.SetHostnameAsFQDN
|
|
*out = new(bool)
|
|
**out = **in
|
|
}
|
|
if in.OS != nil {
|
|
in, out := &in.OS, &out.OS
|
|
*out = new(corev1.PodOS)
|
|
**out = **in
|
|
}
|
|
if in.HostUsers != nil {
|
|
in, out := &in.HostUsers, &out.HostUsers
|
|
*out = new(bool)
|
|
**out = **in
|
|
}
|
|
if in.SchedulingGates != nil {
|
|
in, out := &in.SchedulingGates, &out.SchedulingGates
|
|
*out = make([]corev1.PodSchedulingGate, len(*in))
|
|
copy(*out, *in)
|
|
}
|
|
if in.ResourceClaims != nil {
|
|
in, out := &in.ResourceClaims, &out.ResourceClaims
|
|
*out = make([]corev1.PodResourceClaim, len(*in))
|
|
for i := range *in {
|
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
|
}
|
|
}
|
|
if in.Resources != nil {
|
|
in, out := &in.Resources, &out.Resources
|
|
*out = new(corev1.ResourceRequirements)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
if in.HostnameOverride != nil {
|
|
in, out := &in.HostnameOverride, &out.HostnameOverride
|
|
*out = new(string)
|
|
**out = **in
|
|
}
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodSpec.
|
|
func (in *PodSpec) DeepCopy() *PodSpec {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(PodSpec)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *PredictorExtensionSpec) DeepCopyInto(out *PredictorExtensionSpec) {
|
|
*out = *in
|
|
if in.StorageURI != nil {
|
|
in, out := &in.StorageURI, &out.StorageURI
|
|
*out = new(string)
|
|
**out = **in
|
|
}
|
|
if in.RuntimeVersion != nil {
|
|
in, out := &in.RuntimeVersion, &out.RuntimeVersion
|
|
*out = new(string)
|
|
**out = **in
|
|
}
|
|
if in.ProtocolVersion != nil {
|
|
in, out := &in.ProtocolVersion, &out.ProtocolVersion
|
|
*out = new(constants.InferenceServiceProtocol)
|
|
**out = **in
|
|
}
|
|
in.Container.DeepCopyInto(&out.Container)
|
|
if in.Storage != nil {
|
|
in, out := &in.Storage, &out.Storage
|
|
*out = new(ModelStorageSpec)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
if in.Confidential != nil {
|
|
in, out := &in.Confidential, &out.Confidential
|
|
*out = new(ConfidentialSpec)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PredictorExtensionSpec.
|
|
func (in *PredictorExtensionSpec) DeepCopy() *PredictorExtensionSpec {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(PredictorExtensionSpec)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *PredictorSpec) DeepCopyInto(out *PredictorSpec) {
|
|
*out = *in
|
|
if in.SKLearn != nil {
|
|
in, out := &in.SKLearn, &out.SKLearn
|
|
*out = new(SKLearnSpec)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
if in.XGBoost != nil {
|
|
in, out := &in.XGBoost, &out.XGBoost
|
|
*out = new(XGBoostSpec)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
if in.Tensorflow != nil {
|
|
in, out := &in.Tensorflow, &out.Tensorflow
|
|
*out = new(TFServingSpec)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
if in.PyTorch != nil {
|
|
in, out := &in.PyTorch, &out.PyTorch
|
|
*out = new(TorchServeSpec)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
if in.Triton != nil {
|
|
in, out := &in.Triton, &out.Triton
|
|
*out = new(TritonSpec)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
if in.ONNX != nil {
|
|
in, out := &in.ONNX, &out.ONNX
|
|
*out = new(ONNXRuntimeSpec)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
if in.HuggingFace != nil {
|
|
in, out := &in.HuggingFace, &out.HuggingFace
|
|
*out = new(HuggingFaceRuntimeSpec)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
if in.PMML != nil {
|
|
in, out := &in.PMML, &out.PMML
|
|
*out = new(PMMLSpec)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
if in.LightGBM != nil {
|
|
in, out := &in.LightGBM, &out.LightGBM
|
|
*out = new(LightGBMSpec)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
if in.Paddle != nil {
|
|
in, out := &in.Paddle, &out.Paddle
|
|
*out = new(PaddleServerSpec)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
if in.Model != nil {
|
|
in, out := &in.Model, &out.Model
|
|
*out = new(ModelSpec)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
if in.StorageUris != nil {
|
|
in, out := &in.StorageUris, &out.StorageUris
|
|
*out = make([]StorageUri, len(*in))
|
|
copy(*out, *in)
|
|
}
|
|
if in.StorageContainerName != nil {
|
|
in, out := &in.StorageContainerName, &out.StorageContainerName
|
|
*out = new(string)
|
|
**out = **in
|
|
}
|
|
if in.WorkerSpec != nil {
|
|
in, out := &in.WorkerSpec, &out.WorkerSpec
|
|
*out = new(WorkerSpec)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
in.PodSpec.DeepCopyInto(&out.PodSpec)
|
|
in.ComponentExtensionSpec.DeepCopyInto(&out.ComponentExtensionSpec)
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PredictorSpec.
|
|
func (in *PredictorSpec) DeepCopy() *PredictorSpec {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(PredictorSpec)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *ResourceMetricSource) DeepCopyInto(out *ResourceMetricSource) {
|
|
*out = *in
|
|
in.Target.DeepCopyInto(&out.Target)
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceMetricSource.
|
|
func (in *ResourceMetricSource) DeepCopy() *ResourceMetricSource {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(ResourceMetricSource)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *RolloutSpec) DeepCopyInto(out *RolloutSpec) {
|
|
*out = *in
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RolloutSpec.
|
|
func (in *RolloutSpec) DeepCopy() *RolloutSpec {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(RolloutSpec)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *SKLearnSpec) DeepCopyInto(out *SKLearnSpec) {
|
|
*out = *in
|
|
in.PredictorExtensionSpec.DeepCopyInto(&out.PredictorExtensionSpec)
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SKLearnSpec.
|
|
func (in *SKLearnSpec) DeepCopy() *SKLearnSpec {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(SKLearnSpec)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *StorageSpec) DeepCopyInto(out *StorageSpec) {
|
|
*out = *in
|
|
if in.Path != nil {
|
|
in, out := &in.Path, &out.Path
|
|
*out = new(string)
|
|
**out = **in
|
|
}
|
|
if in.Parameters != nil {
|
|
in, out := &in.Parameters, &out.Parameters
|
|
*out = new(map[string]string)
|
|
if **in != nil {
|
|
in, out := *in, *out
|
|
*out = make(map[string]string, len(*in))
|
|
for key, val := range *in {
|
|
(*out)[key] = val
|
|
}
|
|
}
|
|
}
|
|
if in.StorageKey != nil {
|
|
in, out := &in.StorageKey, &out.StorageKey
|
|
*out = new(string)
|
|
**out = **in
|
|
}
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageSpec.
|
|
func (in *StorageSpec) DeepCopy() *StorageSpec {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(StorageSpec)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *StorageUri) DeepCopyInto(out *StorageUri) {
|
|
*out = *in
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageUri.
|
|
func (in *StorageUri) DeepCopy() *StorageUri {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(StorageUri)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *TFServingSpec) DeepCopyInto(out *TFServingSpec) {
|
|
*out = *in
|
|
in.PredictorExtensionSpec.DeepCopyInto(&out.PredictorExtensionSpec)
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TFServingSpec.
|
|
func (in *TFServingSpec) DeepCopy() *TFServingSpec {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(TFServingSpec)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *TorchServeSpec) DeepCopyInto(out *TorchServeSpec) {
|
|
*out = *in
|
|
in.PredictorExtensionSpec.DeepCopyInto(&out.PredictorExtensionSpec)
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TorchServeSpec.
|
|
func (in *TorchServeSpec) DeepCopy() *TorchServeSpec {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(TorchServeSpec)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *TransformerSpec) DeepCopyInto(out *TransformerSpec) {
|
|
*out = *in
|
|
in.PodSpec.DeepCopyInto(&out.PodSpec)
|
|
in.ComponentExtensionSpec.DeepCopyInto(&out.ComponentExtensionSpec)
|
|
if in.StorageUris != nil {
|
|
in, out := &in.StorageUris, &out.StorageUris
|
|
*out = make([]StorageUri, len(*in))
|
|
copy(*out, *in)
|
|
}
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransformerSpec.
|
|
func (in *TransformerSpec) DeepCopy() *TransformerSpec {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(TransformerSpec)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *TritonSpec) DeepCopyInto(out *TritonSpec) {
|
|
*out = *in
|
|
in.PredictorExtensionSpec.DeepCopyInto(&out.PredictorExtensionSpec)
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TritonSpec.
|
|
func (in *TritonSpec) DeepCopy() *TritonSpec {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(TritonSpec)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *WorkerSpec) DeepCopyInto(out *WorkerSpec) {
|
|
*out = *in
|
|
in.PodSpec.DeepCopyInto(&out.PodSpec)
|
|
if in.PipelineParallelSize != nil {
|
|
in, out := &in.PipelineParallelSize, &out.PipelineParallelSize
|
|
*out = new(int)
|
|
**out = **in
|
|
}
|
|
if in.TensorParallelSize != nil {
|
|
in, out := &in.TensorParallelSize, &out.TensorParallelSize
|
|
*out = new(int)
|
|
**out = **in
|
|
}
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkerSpec.
|
|
func (in *WorkerSpec) DeepCopy() *WorkerSpec {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(WorkerSpec)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *XGBoostSpec) DeepCopyInto(out *XGBoostSpec) {
|
|
*out = *in
|
|
in.PredictorExtensionSpec.DeepCopyInto(&out.PredictorExtensionSpec)
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new XGBoostSpec.
|
|
func (in *XGBoostSpec) DeepCopy() *XGBoostSpec {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(XGBoostSpec)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|