Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( SchemeGroupVersion = schema.GroupVersion{Group: "codeflare.codeflare.dev", Version: "v1alpha1"} SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource.
Types ¶
type InstaScale ¶
type InstaScale struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec InstaScaleSpec `json:"spec,omitempty"`
Status InstaScaleStatus `json:"status,omitempty"`
}
InstaScale is the Schema for the instascales API +operator-sdk:csv:customresourcedefinitions:displayName="InstaScale"
func (*InstaScale) DeepCopy ¶
func (in *InstaScale) DeepCopy() *InstaScale
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstaScale.
func (*InstaScale) DeepCopyInto ¶
func (in *InstaScale) DeepCopyInto(out *InstaScale)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*InstaScale) DeepCopyObject ¶
func (in *InstaScale) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type InstaScaleList ¶
type InstaScaleList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []InstaScale `json:"items"`
}
InstaScaleList contains a list of InstaScale
func (*InstaScaleList) DeepCopy ¶
func (in *InstaScaleList) DeepCopy() *InstaScaleList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstaScaleList.
func (*InstaScaleList) DeepCopyInto ¶
func (in *InstaScaleList) DeepCopyInto(out *InstaScaleList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*InstaScaleList) DeepCopyObject ¶
func (in *InstaScaleList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type InstaScaleSpec ¶
type InstaScaleSpec struct {
// enableMonitoring determines if monitoring artifacts are deployed for the InstaScale instance.
// +kubebuilder:default=true
EnableMonitoring bool `json:"enableMonitoring,omitempty"`
// maxScaleoutAllowed determines the max number of machines that can be scaled up by InstaScale
// +kubebuilder:default=15
MaxScaleoutAllowed int `json:"maxScaleoutAllowed,omitempty"`
// useMachinePools determines whether InstaScale should use MachineSets or MachinePools for scaling
// +kubebuilder:default=false
UseMachinePools bool `json:"useMachinePools,omitempty"`
// controllerResources determines the container resources for the InstaScale controller deployment
ControllerResources *v1.ResourceRequirements `json:"controllerResources,omitempty"`
// The container image for the InstaScale controller deployment.
// If specified, the provided container image must be compatible with the running CodeFlare operator.
// Using an incompatible, or unrelated container image, will result in an undefined behavior.
// A CodeFlare operator upgrade will not upgrade the InstaScale controller, that'll keep running this
// specified container image.
// If not specified, the latest version compatible with the running CodeFlare operator is used.
// A CodeFlare operator upgrade may upgrade the InstaScale controller to a newer container image.
//
// +optional
ControllerImage string `json:"controllerImage,omitempty"`
}
InstaScaleSpec defines the desired state of InstaScale
func (*InstaScaleSpec) DeepCopy ¶
func (in *InstaScaleSpec) DeepCopy() *InstaScaleSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstaScaleSpec.
func (*InstaScaleSpec) DeepCopyInto ¶
func (in *InstaScaleSpec) DeepCopyInto(out *InstaScaleSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type InstaScaleStatus ¶
type InstaScaleStatus struct {
// +kubebuilder:default=false
Ready bool `json:"ready"`
}
InstaScaleStatus defines the observed state of InstaScale
func (*InstaScaleStatus) DeepCopy ¶
func (in *InstaScaleStatus) DeepCopy() *InstaScaleStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstaScaleStatus.
func (*InstaScaleStatus) DeepCopyInto ¶
func (in *InstaScaleStatus) DeepCopyInto(out *InstaScaleStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MCAD ¶
type MCAD struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec MCADSpec `json:"spec,omitempty"`
Status MCADStatus `json:"status,omitempty"`
}
MCAD is the Schema for the mcads API
func (*MCAD) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MCAD.
func (*MCAD) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MCAD) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MCADList ¶
type MCADList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []MCAD `json:"items"`
}
MCADList contains a list of MCAD
func (*MCADList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MCADList.
func (*MCADList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MCADList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MCADSpec ¶
type MCADSpec struct {
// EnableMonitoring determines if monitoring artifacts are deployed for the MCAD instance.
// +kubebuilder:default=true
EnableMonitoring bool `json:"enableMonitoring,omitempty"`
// MultiCluster determines if MCAD will be routing traffic to multiple clusters.
// +kubebuilder:default=false
MultiCluster bool `json:"multiCluster,omitempty"`
// DispatcherMode determines whether the MCAD Controller should be launched in Dispatcher mode.
// +kubebuilder:default=false
DispatcherMode bool `json:"dispatcherMode,omitempty"`
// PreemptionEnabled determines if scheduled jobs can be preempted for others
// +kubebuilder:default=false
PreemptionEnabled bool `json:"preemptionEnabled,omitempty"`
// AgentConfigs determine paths to agent config file:deploymentName separated by commas(,).
AgentConfigs string `json:"agentConfigs,omitempty"`
// QuotaRestURL determines URL for Rest quota management.
QuotaRestURL string `json:"quotaRestURL,omitempty"`
// PodCreationTimeout determines timeout in milliseconds for pods to be created after dispatching job.
// +kubebuilder:default=-1
PodCreationTimeout int `json:"podCreationTimeout,omitempty"`
// ControllerResources defines the cpu and memory resource requirements for the MCAD Controller
// +kubebuilder:default={}
ControllerResources v1.ResourceRequirements `json:"controllerResources,omitempty" protobuf:"bytes,8,opt"`
// The container image for the MCAD controller deployment.
// If specified, the provided container image must be compatible with the running CodeFlare operator.
// Using an incompatible, or unrelated container image, will result in an undefined behavior.
// A CodeFlare operator upgrade will not upgrade the MCAD controller, that'll keep running this
// specified container image.
// If not specified, the latest version compatible with the running CodeFlare operator is used.
// A CodeFlare operator upgrade may upgrade the MCAD controller to a newer container image.
//
// +optional
ControllerImage string `json:"controllerImage,omitempty"`
}
MCADSpec defines the desired state of MCAD
func (*MCADSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MCADSpec.
func (*MCADSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MCADStatus ¶
type MCADStatus struct {
// Ready indicates whether the application is ready to serve requests
Ready bool `json:"ready"`
}
MCADStatus defines the observed state of MCAD
func (*MCADStatus) DeepCopy ¶
func (in *MCADStatus) DeepCopy() *MCADStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MCADStatus.
func (*MCADStatus) DeepCopyInto ¶
func (in *MCADStatus) DeepCopyInto(out *MCADStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.