v1alpha2

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

+k8s:conversion-gen=github.com/eraser-dev/eraser/api/unversioned

Package v1alpha2 contains API Schema definitions for the eraser.sh v1alpha2 API group +kubebuilder:object:generate=true +groupName=eraser.sh

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects.
	GroupVersion = schema.GroupVersion{Group: "eraser.sh", Version: "v1alpha2"}

	// 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

func Convert_unversioned_Components_To_v1alpha2_Components

func Convert_unversioned_Components_To_v1alpha2_Components(in *unversioned.Components, out *Components, s conversion.Scope) error

Convert_unversioned_Components_To_v1alpha2_Components is an autogenerated conversion function.

func Convert_unversioned_ContainerConfig_To_v1alpha2_ContainerConfig

func Convert_unversioned_ContainerConfig_To_v1alpha2_ContainerConfig(in *unversioned.ContainerConfig, out *ContainerConfig, s conversion.Scope) error

Convert_unversioned_ContainerConfig_To_v1alpha2_ContainerConfig is an autogenerated conversion function.

func Convert_unversioned_EraserConfig_To_v1alpha2_EraserConfig

func Convert_unversioned_EraserConfig_To_v1alpha2_EraserConfig(in *unversioned.EraserConfig, out *EraserConfig, s conversion.Scope) error

Convert_unversioned_EraserConfig_To_v1alpha2_EraserConfig is an autogenerated conversion function.

func Convert_unversioned_ImageJobCleanupConfig_To_v1alpha2_ImageJobCleanupConfig

func Convert_unversioned_ImageJobCleanupConfig_To_v1alpha2_ImageJobCleanupConfig(in *unversioned.ImageJobCleanupConfig, out *ImageJobCleanupConfig, s conversion.Scope) error

Convert_unversioned_ImageJobCleanupConfig_To_v1alpha2_ImageJobCleanupConfig is an autogenerated conversion function.

func Convert_unversioned_ImageJobConfig_To_v1alpha2_ImageJobConfig

func Convert_unversioned_ImageJobConfig_To_v1alpha2_ImageJobConfig(in *unversioned.ImageJobConfig, out *ImageJobConfig, s conversion.Scope) error

Convert_unversioned_ImageJobConfig_To_v1alpha2_ImageJobConfig is an autogenerated conversion function.

func Convert_unversioned_ManagerConfig_To_v1alpha2_ManagerConfig

func Convert_unversioned_ManagerConfig_To_v1alpha2_ManagerConfig(in *unversioned.ManagerConfig, out *ManagerConfig, s conversion.Scope) error

Convert_unversioned_ManagerConfig_To_v1alpha2_ManagerConfig is an autogenerated conversion function.

func Convert_unversioned_NodeFilterConfig_To_v1alpha2_NodeFilterConfig

func Convert_unversioned_NodeFilterConfig_To_v1alpha2_NodeFilterConfig(in *unversioned.NodeFilterConfig, out *NodeFilterConfig, s conversion.Scope) error

Convert_unversioned_NodeFilterConfig_To_v1alpha2_NodeFilterConfig is an autogenerated conversion function.

func Convert_unversioned_OptionalContainerConfig_To_v1alpha2_OptionalContainerConfig

func Convert_unversioned_OptionalContainerConfig_To_v1alpha2_OptionalContainerConfig(in *unversioned.OptionalContainerConfig, out *OptionalContainerConfig, s conversion.Scope) error

Convert_unversioned_OptionalContainerConfig_To_v1alpha2_OptionalContainerConfig is an autogenerated conversion function.

func Convert_unversioned_ProfileConfig_To_v1alpha2_ProfileConfig

func Convert_unversioned_ProfileConfig_To_v1alpha2_ProfileConfig(in *unversioned.ProfileConfig, out *ProfileConfig, s conversion.Scope) error

Convert_unversioned_ProfileConfig_To_v1alpha2_ProfileConfig is an autogenerated conversion function.

func Convert_unversioned_RepoTag_To_v1alpha2_RepoTag

func Convert_unversioned_RepoTag_To_v1alpha2_RepoTag(in *unversioned.RepoTag, out *RepoTag, s conversion.Scope) error

Convert_unversioned_RepoTag_To_v1alpha2_RepoTag is an autogenerated conversion function.

func Convert_unversioned_ResourceRequirements_To_v1alpha2_ResourceRequirements

func Convert_unversioned_ResourceRequirements_To_v1alpha2_ResourceRequirements(in *unversioned.ResourceRequirements, out *ResourceRequirements, s conversion.Scope) error

Convert_unversioned_ResourceRequirements_To_v1alpha2_ResourceRequirements is an autogenerated conversion function.

func Convert_unversioned_ScheduleConfig_To_v1alpha2_ScheduleConfig

func Convert_unversioned_ScheduleConfig_To_v1alpha2_ScheduleConfig(in *unversioned.ScheduleConfig, out *ScheduleConfig, s conversion.Scope) error

Convert_unversioned_ScheduleConfig_To_v1alpha2_ScheduleConfig is an autogenerated conversion function.

func Convert_v1alpha2_Components_To_unversioned_Components

func Convert_v1alpha2_Components_To_unversioned_Components(in *Components, out *unversioned.Components, s conversion.Scope) error

Convert_v1alpha2_Components_To_unversioned_Components is an autogenerated conversion function.

func Convert_v1alpha2_ContainerConfig_To_unversioned_ContainerConfig

func Convert_v1alpha2_ContainerConfig_To_unversioned_ContainerConfig(in *ContainerConfig, out *unversioned.ContainerConfig, s conversion.Scope) error

Convert_v1alpha2_ContainerConfig_To_unversioned_ContainerConfig is an autogenerated conversion function.

func Convert_v1alpha2_EraserConfig_To_unversioned_EraserConfig

func Convert_v1alpha2_EraserConfig_To_unversioned_EraserConfig(in *EraserConfig, out *unversioned.EraserConfig, s conversion.Scope) error

Convert_v1alpha2_EraserConfig_To_unversioned_EraserConfig is an autogenerated conversion function.

func Convert_v1alpha2_ImageJobCleanupConfig_To_unversioned_ImageJobCleanupConfig

func Convert_v1alpha2_ImageJobCleanupConfig_To_unversioned_ImageJobCleanupConfig(in *ImageJobCleanupConfig, out *unversioned.ImageJobCleanupConfig, s conversion.Scope) error

Convert_v1alpha2_ImageJobCleanupConfig_To_unversioned_ImageJobCleanupConfig is an autogenerated conversion function.

func Convert_v1alpha2_ImageJobConfig_To_unversioned_ImageJobConfig

func Convert_v1alpha2_ImageJobConfig_To_unversioned_ImageJobConfig(in *ImageJobConfig, out *unversioned.ImageJobConfig, s conversion.Scope) error

Convert_v1alpha2_ImageJobConfig_To_unversioned_ImageJobConfig is an autogenerated conversion function.

func Convert_v1alpha2_ManagerConfig_To_unversioned_ManagerConfig

func Convert_v1alpha2_ManagerConfig_To_unversioned_ManagerConfig(in *ManagerConfig, out *unversioned.ManagerConfig, s conversion.Scope) error

Convert_v1alpha2_ManagerConfig_To_unversioned_ManagerConfig is an autogenerated conversion function.

func Convert_v1alpha2_NodeFilterConfig_To_unversioned_NodeFilterConfig

func Convert_v1alpha2_NodeFilterConfig_To_unversioned_NodeFilterConfig(in *NodeFilterConfig, out *unversioned.NodeFilterConfig, s conversion.Scope) error

Convert_v1alpha2_NodeFilterConfig_To_unversioned_NodeFilterConfig is an autogenerated conversion function.

func Convert_v1alpha2_OptionalContainerConfig_To_unversioned_OptionalContainerConfig

func Convert_v1alpha2_OptionalContainerConfig_To_unversioned_OptionalContainerConfig(in *OptionalContainerConfig, out *unversioned.OptionalContainerConfig, s conversion.Scope) error

Convert_v1alpha2_OptionalContainerConfig_To_unversioned_OptionalContainerConfig is an autogenerated conversion function.

func Convert_v1alpha2_ProfileConfig_To_unversioned_ProfileConfig

func Convert_v1alpha2_ProfileConfig_To_unversioned_ProfileConfig(in *ProfileConfig, out *unversioned.ProfileConfig, s conversion.Scope) error

Convert_v1alpha2_ProfileConfig_To_unversioned_ProfileConfig is an autogenerated conversion function.

func Convert_v1alpha2_RepoTag_To_unversioned_RepoTag

func Convert_v1alpha2_RepoTag_To_unversioned_RepoTag(in *RepoTag, out *unversioned.RepoTag, s conversion.Scope) error

Convert_v1alpha2_RepoTag_To_unversioned_RepoTag is an autogenerated conversion function.

func Convert_v1alpha2_ResourceRequirements_To_unversioned_ResourceRequirements

func Convert_v1alpha2_ResourceRequirements_To_unversioned_ResourceRequirements(in *ResourceRequirements, out *unversioned.ResourceRequirements, s conversion.Scope) error

Convert_v1alpha2_ResourceRequirements_To_unversioned_ResourceRequirements is an autogenerated conversion function.

func Convert_v1alpha2_ScheduleConfig_To_unversioned_ScheduleConfig

func Convert_v1alpha2_ScheduleConfig_To_unversioned_ScheduleConfig(in *ScheduleConfig, out *unversioned.ScheduleConfig, s conversion.Scope) error

Convert_v1alpha2_ScheduleConfig_To_unversioned_ScheduleConfig is an autogenerated conversion function.

func RegisterConversions

func RegisterConversions(s *runtime.Scheme) error

RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.

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 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 ManagerConfig

type ManagerConfig struct {
	Runtime           Runtime          `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
const (
	RuntimeContainerd Runtime = "containerd"
	RuntimeDockerShim Runtime = "dockershim"
	RuntimeCrio       Runtime = "crio"
)

func (*Runtime) UnmarshalJSON

func (r *Runtime) 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