unversioned

package
v1.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 1, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

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

View Source
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

View Source
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"`
}

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 Duration

type Duration time.Duration

func (*Duration) MarshalJSON

func (td *Duration) MarshalJSON() ([]byte, error)

func (*Duration) UnmarshalJSON

func (td *Duration) UnmarshalJSON(b []byte) error

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

func (in *Image) DeepCopy() *Image

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Image.

func (*Image) DeepCopyInto

func (in *Image) DeepCopyInto(out *Image)

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

func (in *ImageJob) DeepCopy() *ImageJob

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageJob.

func (*ImageJob) DeepCopyInto

func (in *ImageJob) DeepCopyInto(out *ImageJob)

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

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

func (in *ImageList) DeepCopy() *ImageList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageList.

func (*ImageList) DeepCopyInto

func (in *ImageList) DeepCopyInto(out *ImageList)

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 JobPhase

type JobPhase string

JobPhase defines the phase of an ImageJob status.

const (
	PhaseRunning   JobPhase = "Running"
	PhaseCompleted JobPhase = "Completed"
	PhaseFailed    JobPhase = "Failed"
)

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"`
}

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

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

type RepoTag struct {
	Repo string `json:"repo,omitempty"`
	Tag  string `json:"tag,omitempty"`
}

func (*RepoTag) DeepCopy

func (in *RepoTag) DeepCopy() *RepoTag

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepoTag.

func (*RepoTag) DeepCopyInto

func (in *RepoTag) DeepCopyInto(out *RepoTag)

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

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 Runtime

type Runtime string

type RuntimeSpec added in v1.3.0

type RuntimeSpec struct {
	Name    Runtime `json:"name"`
	Address string  `json:"address"`
}

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL