mirror of
https://github.com/hanzo-ml/kuberay.git
synced 2026-10-30 19:48:47 +00:00
* Changes required make a build after update of component-base (#3004) * Update packages required for bump to component-base * Update version of controller-gen required by packages update Migrate to kube_codegen.sh * Sync CRDs post generator update * Docker and go-toolchain update * Update tests to align with package changes A in SetFeatureGateDuringTest, that stopped returning a cleanup func - https://github.com/kubernetes/kubernetes/issues/123677 Required tests update to not use `It()` while it could be `By()` as using `It()` resulted in parallel access to the feature gates. * Change enforced by golangci-lint - fieldalignment * Regenerate client code with new generator * [CI] fix locust versions (#3100) Signed-off-by: Rueian <[email protected]> * [ci] remove the test for modin because its certificate is broken (#3135) Signed-off-by: Rueian <[email protected]> --------- Signed-off-by: Rueian <[email protected]> Co-authored-by: Rueian <[email protected]>
69 lines
3.1 KiB
Go
69 lines
3.1 KiB
Go
// Code generated by applyconfiguration-gen. DO NOT EDIT.
|
|
|
|
package applyconfiguration
|
|
|
|
import (
|
|
v1 "github.com/ray-project/kuberay/ray-operator/apis/ray/v1"
|
|
internal "github.com/ray-project/kuberay/ray-operator/pkg/client/applyconfiguration/internal"
|
|
rayv1 "github.com/ray-project/kuberay/ray-operator/pkg/client/applyconfiguration/ray/v1"
|
|
runtime "k8s.io/apimachinery/pkg/runtime"
|
|
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
|
testing "k8s.io/client-go/testing"
|
|
)
|
|
|
|
// ForKind returns an apply configuration type for the given GroupVersionKind, or nil if no
|
|
// apply configuration type exists for the given GroupVersionKind.
|
|
func ForKind(kind schema.GroupVersionKind) interface{} {
|
|
switch kind {
|
|
// Group=ray.io, Version=v1
|
|
case v1.SchemeGroupVersion.WithKind("AppStatus"):
|
|
return &rayv1.AppStatusApplyConfiguration{}
|
|
case v1.SchemeGroupVersion.WithKind("AutoscalerOptions"):
|
|
return &rayv1.AutoscalerOptionsApplyConfiguration{}
|
|
case v1.SchemeGroupVersion.WithKind("GcsFaultToleranceOptions"):
|
|
return &rayv1.GcsFaultToleranceOptionsApplyConfiguration{}
|
|
case v1.SchemeGroupVersion.WithKind("HeadGroupSpec"):
|
|
return &rayv1.HeadGroupSpecApplyConfiguration{}
|
|
case v1.SchemeGroupVersion.WithKind("HeadInfo"):
|
|
return &rayv1.HeadInfoApplyConfiguration{}
|
|
case v1.SchemeGroupVersion.WithKind("RayCluster"):
|
|
return &rayv1.RayClusterApplyConfiguration{}
|
|
case v1.SchemeGroupVersion.WithKind("RayClusterSpec"):
|
|
return &rayv1.RayClusterSpecApplyConfiguration{}
|
|
case v1.SchemeGroupVersion.WithKind("RayClusterStatus"):
|
|
return &rayv1.RayClusterStatusApplyConfiguration{}
|
|
case v1.SchemeGroupVersion.WithKind("RayJob"):
|
|
return &rayv1.RayJobApplyConfiguration{}
|
|
case v1.SchemeGroupVersion.WithKind("RayJobSpec"):
|
|
return &rayv1.RayJobSpecApplyConfiguration{}
|
|
case v1.SchemeGroupVersion.WithKind("RayJobStatus"):
|
|
return &rayv1.RayJobStatusApplyConfiguration{}
|
|
case v1.SchemeGroupVersion.WithKind("RayService"):
|
|
return &rayv1.RayServiceApplyConfiguration{}
|
|
case v1.SchemeGroupVersion.WithKind("RayServiceSpec"):
|
|
return &rayv1.RayServiceSpecApplyConfiguration{}
|
|
case v1.SchemeGroupVersion.WithKind("RayServiceStatus"):
|
|
return &rayv1.RayServiceStatusApplyConfiguration{}
|
|
case v1.SchemeGroupVersion.WithKind("RayServiceStatuses"):
|
|
return &rayv1.RayServiceStatusesApplyConfiguration{}
|
|
case v1.SchemeGroupVersion.WithKind("RayServiceUpgradeStrategy"):
|
|
return &rayv1.RayServiceUpgradeStrategyApplyConfiguration{}
|
|
case v1.SchemeGroupVersion.WithKind("RedisCredential"):
|
|
return &rayv1.RedisCredentialApplyConfiguration{}
|
|
case v1.SchemeGroupVersion.WithKind("ScaleStrategy"):
|
|
return &rayv1.ScaleStrategyApplyConfiguration{}
|
|
case v1.SchemeGroupVersion.WithKind("ServeDeploymentStatus"):
|
|
return &rayv1.ServeDeploymentStatusApplyConfiguration{}
|
|
case v1.SchemeGroupVersion.WithKind("SubmitterConfig"):
|
|
return &rayv1.SubmitterConfigApplyConfiguration{}
|
|
case v1.SchemeGroupVersion.WithKind("WorkerGroupSpec"):
|
|
return &rayv1.WorkerGroupSpecApplyConfiguration{}
|
|
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func NewTypeConverter(scheme *runtime.Scheme) *testing.TypeConverter {
|
|
return &testing.TypeConverter{Scheme: scheme, TypeResolver: internal.Parser()}
|
|
}
|