Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the ray v1 config group +kubebuilder:object:generate=true +groupName=config.ray.io
Index ¶
Constants ¶
View Source
const ( DefaultMetricsAddr = ":8080" DefaultProbeAddr = ":8082" DefaultEnableLeaderElection = true DefaultReconcileConcurrency = 1 )
Variables ¶
View Source
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "config.ray.io", Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
View Source
var SchemeGroupVersion = GroupVersion
SchemeGroupVersion is group version used to register these objects.
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
func SetDefaults_Configuration ¶
func SetDefaults_Configuration(cfg *Configuration)
SetDefaults_Configuration sets default values for ComponentConfig.
Types ¶
type Configuration ¶
type Configuration struct { metav1.TypeMeta `json:",inline"` // MetricsAddr is the address the metrics endpoint binds to. MetricsAddr string `json:"metricsAddr,omitempty"` // ProbeAddr is the address the probe endpoint binds to. ProbeAddr string `json:"probeAddr,omitempty"` // EnableLeaderElection enables leader election. Enabling this will ensure // there is only one active instance of the operator. EnableLeaderElection *bool `json:"enableLeaderElection,omitempty"` // LeaderElectionNamespace is the namespace where the leader election // resources live. Defaults to the pod namesapce if not set. LeaderElectionNamespace string `json:"leaderElectionNamespace,omitempty"` // ReconcileConcurrency is the max concurrency for each reconciler. ReconcileConcurrency int `json:"reconcileConcurrency,omitempty"` // WatchNamespace specifies a list of namespaces to watch for custom resources, separated by commas. // If empty, all namespaces will be watched. WatchNamespace string `json:"watchNamespace,omitempty"` // ForcedClusterUpgrade enables force upgrading clusters. ForcedClusterUpgrade bool `json:"forcedClusterUpgrade,omitempty"` // LogFile is a path to a local file for synchronizing logs. LogFile string `json:"logFile,omitempty"` // LogFileEncoder is the encoder to use when logging to a file. Valid values are "json" and "console". // Defaults to `json` if empty. LogFileEncoder string `json:"logFileEncoder,omitempty"` // LogFileEncoder is the encoder to use when logging to a file. Valid values are "json" and "console". // Defaults to `json` if empty. LogStdoutEncoder string `json:"logStdoutEncoder,omitempty"` // EnableBatchScheduler enables the batch scheduler. Currently this is supported // by Volcano to support gang scheduling. EnableBatchScheduler bool `json:"enableBatchScheduler,omitempty"` // HeadSidecarContainers includes specification for a sidecar container // to inject into every Head pod. HeadSidecarContainers []corev1.Container `json:"headSidecarContainers,omitempty"` // WorkerSidecarContainers includes specification for a sidecar container // to inject into every Worker pod. WorkerSidecarContainers []corev1.Container `json:"workerSidecarContainers,omitempty"` }
Configuration is the Schema for Ray operator config.
func (*Configuration) DeepCopy ¶
func (in *Configuration) DeepCopy() *Configuration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Configuration.
func (*Configuration) DeepCopyInto ¶
func (in *Configuration) DeepCopyInto(out *Configuration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Configuration) DeepCopyObject ¶
func (in *Configuration) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
Click to show internal directories.
Click to hide internal directories.