Documentation
¶
Overview ¶
Package v1 contains API Schema definitions for the eraser.sh v1 API group +kubebuilder:object:generate=true +groupName=eraser.sh
+kubebuilder:skip
+kubebuilder:skip
Index ¶
- Constants
- Variables
- type Components
- type ContainerConfig
- type Duration
- type EraserConfig
- type Image
- type ImageJob
- type ImageJobCleanupConfig
- type ImageJobConfig
- type ImageJobList
- type ImageJobStatus
- type ImageList
- type ImageListList
- type ImageListSpec
- type ImageListStatus
- type JobPhase
- type ManagerConfig
- type NodeFilterConfig
- type OptionalContainerConfig
- type ProfileConfig
- type RepoTag
- type ResourceRequirements
- type Runtime
- type RuntimeSpec
- type ScheduleConfig
Constants ¶
const ( RuntimeContainerd Runtime = "containerd" RuntimeDockerShim Runtime = "dockershim" RuntimeCrio Runtime = "crio" RuntimeNotProvided Runtime = "" ContainerdPath = "/run/containerd/containerd.sock" DockerPath = "/run/dockershim.sock" CrioPath = "/run/crio/crio.sock" )
Variables ¶
var ( // GroupVersion is group version used to register these objects. GroupVersion = schema.GroupVersion{Group: "eraser.sh", Version: "unversioned"} // 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 )
Functions ¶
This section is empty.
Types ¶
type Components ¶
type Components struct {
Collector OptionalContainerConfig `json:"collector,omitempty"`
Scanner OptionalContainerConfig `json:"scanner,omitempty"`
Remover ContainerConfig `json:"remover,omitempty"`
}
func (*Components) DeepCopy ¶
func (in *Components) DeepCopy() *Components
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Components.
func (*Components) DeepCopyInto ¶
func (in *Components) DeepCopyInto(out *Components)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ContainerConfig ¶
type ContainerConfig struct {
Image RepoTag `json:"image,omitempty"`
Request ResourceRequirements `json:"request,omitempty"`
Limit ResourceRequirements `json:"limit,omitempty"`
Config *string `json:"config,omitempty"`
Volumes []corev1.Volume `json:"volumes,omitempty"`
}
func (*ContainerConfig) DeepCopy ¶
func (in *ContainerConfig) DeepCopy() *ContainerConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContainerConfig.
func (*ContainerConfig) DeepCopyInto ¶
func (in *ContainerConfig) DeepCopyInto(out *ContainerConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type EraserConfig ¶
type EraserConfig struct {
metav1.TypeMeta `json:",inline"`
Manager ManagerConfig `json:"manager"`
Components Components `json:"components"`
}
EraserConfig is the Schema for the eraserconfigs API.
func (*EraserConfig) DeepCopy ¶
func (in *EraserConfig) DeepCopy() *EraserConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EraserConfig.
func (*EraserConfig) DeepCopyInto ¶
func (in *EraserConfig) DeepCopyInto(out *EraserConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*EraserConfig) DeepCopyObject ¶
func (in *EraserConfig) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type Image ¶
type Image struct {
ImageID string `json:"image_id"`
Names []string `json:"names,omitempty"`
Digests []string `json:"digests,omitempty"`
}
func (*Image) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Image.
func (*Image) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ImageJob ¶
type ImageJob struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Status ImageJobStatus `json:"status,omitempty"`
}
ImageJob is the Schema for the imagejobs API.
func (*ImageJob) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageJob.
func (*ImageJob) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ImageJobCleanupConfig ¶
type ImageJobCleanupConfig struct {
DelayOnSuccess Duration `json:"delayOnSuccess,omitempty"`
DelayOnFailure Duration `json:"delayOnFailure,omitempty"`
}
func (*ImageJobCleanupConfig) DeepCopy ¶
func (in *ImageJobCleanupConfig) DeepCopy() *ImageJobCleanupConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageJobCleanupConfig.
func (*ImageJobCleanupConfig) DeepCopyInto ¶
func (in *ImageJobCleanupConfig) DeepCopyInto(out *ImageJobCleanupConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ImageJobConfig ¶
type ImageJobConfig struct {
SuccessRatio float64 `json:"successRatio,omitempty"`
Cleanup ImageJobCleanupConfig `json:"cleanup,omitempty"`
}
func (*ImageJobConfig) DeepCopy ¶
func (in *ImageJobConfig) DeepCopy() *ImageJobConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageJobConfig.
func (*ImageJobConfig) DeepCopyInto ¶
func (in *ImageJobConfig) DeepCopyInto(out *ImageJobConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ImageJobList ¶
type ImageJobList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []ImageJob `json:"items"`
}
ImageJobList contains a list of ImageJob.
func (*ImageJobList) DeepCopy ¶
func (in *ImageJobList) DeepCopy() *ImageJobList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageJobList.
func (*ImageJobList) DeepCopyInto ¶
func (in *ImageJobList) DeepCopyInto(out *ImageJobList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ImageJobStatus ¶
type ImageJobStatus struct {
// number of pods that failed
Failed int `json:"failed"`
// number of pods that completed successfully
Succeeded int `json:"succeeded"`
// desired number of pods
Desired int `json:"desired"`
// number of nodes that were skipped e.g. because they are not a linux node
Skipped int `json:"skipped"`
// job running, successfully completed, or failed
Phase JobPhase `json:"phase"`
// Time to delay deletion until
DeleteAfter *metav1.Time `json:"deleteAfter,omitempty"`
}
ImageJobStatus defines the observed state of ImageJob.
func (*ImageJobStatus) DeepCopy ¶
func (in *ImageJobStatus) DeepCopy() *ImageJobStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageJobStatus.
func (*ImageJobStatus) DeepCopyInto ¶
func (in *ImageJobStatus) DeepCopyInto(out *ImageJobStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ImageList ¶
type ImageList struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ImageListSpec `json:"spec,omitempty"`
Status ImageListStatus `json:"status,omitempty"`
}
ImageList is the Schema for the imagelists API.
func (*ImageList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageList.
func (*ImageList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ImageListList ¶
type ImageListList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []ImageList `json:"items"`
}
ImageListList contains a list of ImageList.
func (*ImageListList) DeepCopy ¶
func (in *ImageListList) DeepCopy() *ImageListList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageListList.
func (*ImageListList) DeepCopyInto ¶
func (in *ImageListList) DeepCopyInto(out *ImageListList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ImageListSpec ¶
type ImageListSpec struct {
// The list of non-compliant images to delete if non-running.
Images []string `json:"images"`
}
ImageListSpec defines the desired state of ImageList.
func (*ImageListSpec) DeepCopy ¶
func (in *ImageListSpec) DeepCopy() *ImageListSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageListSpec.
func (*ImageListSpec) DeepCopyInto ¶
func (in *ImageListSpec) DeepCopyInto(out *ImageListSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ImageListStatus ¶
type ImageListStatus struct {
// Information when the job was completed.
Timestamp *metav1.Time `json:"timestamp"`
// Number of nodes that successfully ran the job
Success int64 `json:"success"`
// Number of nodes that failed to run the job
Failed int64 `json:"failed"`
// Number of nodes that were skipped due to a skip selector
Skipped int64 `json:"skipped"`
}
ImageListStatus defines the observed state of ImageList.
func (*ImageListStatus) DeepCopy ¶
func (in *ImageListStatus) DeepCopy() *ImageListStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageListStatus.
func (*ImageListStatus) DeepCopyInto ¶
func (in *ImageListStatus) DeepCopyInto(out *ImageListStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ManagerConfig ¶
type ManagerConfig struct {
Runtime RuntimeSpec `json:"runtime,omitempty"`
OTLPEndpoint string `json:"otlpEndpoint,omitempty"`
LogLevel string `json:"logLevel,omitempty"`
Scheduling ScheduleConfig `json:"scheduling,omitempty"`
Profile ProfileConfig `json:"profile,omitempty"`
ImageJob ImageJobConfig `json:"imageJob,omitempty"`
PullSecrets []string `json:"pullSecrets,omitempty"`
NodeFilter NodeFilterConfig `json:"nodeFilter,omitempty"`
PriorityClassName string `json:"priorityClassName,omitempty"`
AdditionalPodLabels map[string]string `json:"additionalPodLabels,omitempty"`
}
func (*ManagerConfig) DeepCopy ¶
func (in *ManagerConfig) DeepCopy() *ManagerConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagerConfig.
func (*ManagerConfig) DeepCopyInto ¶
func (in *ManagerConfig) DeepCopyInto(out *ManagerConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NodeFilterConfig ¶
type NodeFilterConfig struct {
Type string `json:"type,omitempty"`
Selectors []string `json:"selectors,omitempty"`
}
func (*NodeFilterConfig) DeepCopy ¶
func (in *NodeFilterConfig) DeepCopy() *NodeFilterConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeFilterConfig.
func (*NodeFilterConfig) DeepCopyInto ¶
func (in *NodeFilterConfig) DeepCopyInto(out *NodeFilterConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type OptionalContainerConfig ¶
type OptionalContainerConfig struct {
Enabled bool `json:"enabled,omitempty"`
ContainerConfig `json:",inline"`
}
func (*OptionalContainerConfig) DeepCopy ¶
func (in *OptionalContainerConfig) DeepCopy() *OptionalContainerConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OptionalContainerConfig.
func (*OptionalContainerConfig) DeepCopyInto ¶
func (in *OptionalContainerConfig) DeepCopyInto(out *OptionalContainerConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProfileConfig ¶
type ProfileConfig struct {
Enabled bool `json:"enabled,omitempty"`
Port int `json:"port,omitempty"`
}
func (*ProfileConfig) DeepCopy ¶
func (in *ProfileConfig) DeepCopy() *ProfileConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProfileConfig.
func (*ProfileConfig) DeepCopyInto ¶
func (in *ProfileConfig) DeepCopyInto(out *ProfileConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RepoTag ¶
func (*RepoTag) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepoTag.
func (*RepoTag) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceRequirements ¶
type ResourceRequirements struct {
Mem resource.Quantity `json:"mem,omitempty"`
CPU resource.Quantity `json:"cpu,omitempty"`
}
func (*ResourceRequirements) DeepCopy ¶
func (in *ResourceRequirements) DeepCopy() *ResourceRequirements
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceRequirements.
func (*ResourceRequirements) DeepCopyInto ¶
func (in *ResourceRequirements) DeepCopyInto(out *ResourceRequirements)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RuntimeSpec ¶ added in v1.3.0
func ConvertRuntimeToRuntimeSpec ¶ added in v1.3.0
func ConvertRuntimeToRuntimeSpec(r Runtime) (RuntimeSpec, error)
func (*RuntimeSpec) DeepCopy ¶ added in v1.3.0
func (in *RuntimeSpec) DeepCopy() *RuntimeSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuntimeSpec.
func (*RuntimeSpec) DeepCopyInto ¶ added in v1.3.0
func (in *RuntimeSpec) DeepCopyInto(out *RuntimeSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RuntimeSpec) UnmarshalJSON ¶ added in v1.3.0
func (r *RuntimeSpec) UnmarshalJSON(b []byte) error
type ScheduleConfig ¶
type ScheduleConfig struct {
RepeatInterval Duration `json:"repeatInterval,omitempty"`
BeginImmediately bool `json:"beginImmediately,omitempty"`
}
func (*ScheduleConfig) DeepCopy ¶
func (in *ScheduleConfig) DeepCopy() *ScheduleConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScheduleConfig.
func (*ScheduleConfig) DeepCopyInto ¶
func (in *ScheduleConfig) DeepCopyInto(out *ScheduleConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.