v1alpha1

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the migration v1alpha1 API group. +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/konveyor/tackle2-controller/pkg/apis/migration +k8s:defaulter-gen=TypeMeta +groupName=tackle.konveyor.io

Index

Constants

View Source
const (
	ValidationError = "ValidationError"
	Validated       = "Validated"
)

Variables

View Source
var (
	Ready = meta.Condition{
		Type:   "Ready",
		Status: meta.ConditionTrue,
	}
	ImageNotDefined = meta.Condition{
		Type:    ValidationError,
		Status:  meta.ConditionTrue,
		Reason:  "ImageNotDefined",
		Message: "Either image or container.image must be specified.",
	}
)
View Source
var SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion}
View Source
var SchemeGroupVersion = schema.GroupVersion{
	Group:   "tackle.konveyor.io",
	Version: "v1alpha1",
}

Functions

This section is empty.

Types

type Addon

type Addon struct {
	meta.TypeMeta   `json:",inline"`
	meta.ObjectMeta `json:"metadata,omitempty"`
	// Spec defines the desired state of the resource.
	Spec AddonSpec `json:"spec"`
	// Status defines the observed state of the resource.
	Status AddonStatus `json:"status,omitempty"`
}

+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +k8s:openapi-gen=true +kubebuilder:storageversion +kubebuilder:subresource:status

func (*Addon) DeepCopy

func (in *Addon) DeepCopy() *Addon

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

func (*Addon) DeepCopyInto

func (in *Addon) DeepCopyInto(out *Addon)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Addon) DeepCopyObject

func (in *Addon) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Addon) Migrate added in v0.5.0

func (r *Addon) Migrate() (updated bool)

Migrate specification as needed.

func (*Addon) Ready added in v0.5.0

func (r *Addon) Ready() (ready bool)

Ready returns true when resource has the ready condition.

func (*Addon) Reconciled added in v0.5.0

func (r *Addon) Reconciled() (b bool)

Reconciled returns true when the resource has been reconciled.

type AddonList

type AddonList struct {
	meta.TypeMeta `json:",inline"`
	meta.ListMeta `json:"metadata,omitempty"`
	Items         []Addon `json:"items"`
}

AddonList is a list of Addon. +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*AddonList) DeepCopy

func (in *AddonList) DeepCopy() *AddonList

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

func (*AddonList) DeepCopyInto

func (in *AddonList) DeepCopyInto(out *AddonList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*AddonList) DeepCopyObject

func (in *AddonList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type AddonSpec

type AddonSpec struct {
	// Deprecated: Addon is deprecated.
	// +kubebuilder:validation:Optional
	Image *string `json:"image,omitempty"`
	// Deprecated: ImagePullPolicy is deprecated.
	// +kubebuilder:validation:Optional
	ImagePullPolicy *core.PullPolicy `json:"imagePullPolicy,omitempty"`
	// Deprecated: Resources is deprecated.
	// +kubebuilder:validation:Optional
	Resources *core.ResourceRequirements `json:"resources,omitempty"`
	//
	// Task declares task (kind) compatibility.
	Task string `json:"task,omitempty"`
	// Selector defines criteria to be selected for a task.
	Selector string `json:"selector,omitempty"`
	// Container defines the addon container.
	Container core.Container `json:"container,omitempty"`
	// Metadata details.
	Metadata runtime.RawExtension `json:"metadata,omitempty"`
}

AddonSpec defines the desired state of the resource.

func (*AddonSpec) DeepCopy

func (in *AddonSpec) DeepCopy() *AddonSpec

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

func (*AddonSpec) DeepCopyInto

func (in *AddonSpec) DeepCopyInto(out *AddonSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AddonStatus

type AddonStatus struct {
	// The most recent generation observed by the controller.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
	// Resource conditions.
	Conditions []meta.Condition `json:"conditions,omitempty"`
}

AddonStatus defines the observed state of the resource.

func (*AddonStatus) DeepCopy

func (in *AddonStatus) DeepCopy() *AddonStatus

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

func (*AddonStatus) DeepCopyInto

func (in *AddonStatus) DeepCopyInto(out *AddonStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Extension added in v0.5.0

type Extension struct {
	meta.TypeMeta   `json:",inline"`
	meta.ObjectMeta `json:"metadata,omitempty"`
	// pec defines the desired state of the resource.
	Spec ExtensionSpec `json:"spec"`
	// Status defines the observed state of the resource.
	Status ExtensionStatus `json:"status,omitempty"`
}

Extension defines an addon extension. +genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +k8s:openapi-gen=true +kubebuilder:storageversion +kubebuilder:subresource:status

func (*Extension) DeepCopy added in v0.5.0

func (in *Extension) DeepCopy() *Extension

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

func (*Extension) DeepCopyInto added in v0.5.0

func (in *Extension) DeepCopyInto(out *Extension)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Extension) DeepCopyObject added in v0.5.0

func (in *Extension) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ExtensionList added in v0.5.0

type ExtensionList struct {
	meta.TypeMeta `json:",inline"`
	meta.ListMeta `json:"metadata,omitempty"`
	Items         []Extension `json:"items"`
}

ExtensionList is a list of Extension. +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*ExtensionList) DeepCopy added in v0.5.0

func (in *ExtensionList) DeepCopy() *ExtensionList

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

func (*ExtensionList) DeepCopyInto added in v0.5.0

func (in *ExtensionList) DeepCopyInto(out *ExtensionList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ExtensionList) DeepCopyObject added in v0.5.0

func (in *ExtensionList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ExtensionSpec added in v0.5.0

type ExtensionSpec struct {
	// Addon (name) declares addon compatibility.
	Addon string `json:"addon"`
	// Container defines the extension container.
	Container core.Container `json:"container"`
	// Selector defines criteria to be included in the addon pod.
	Selector string `json:"selector,omitempty"`
	// Metadata details.
	Metadata runtime.RawExtension `json:"metadata,omitempty"`
}

ExtensionSpec defines the desired state of the resource.

func (*ExtensionSpec) DeepCopy added in v0.5.0

func (in *ExtensionSpec) DeepCopy() *ExtensionSpec

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

func (*ExtensionSpec) DeepCopyInto added in v0.5.0

func (in *ExtensionSpec) DeepCopyInto(out *ExtensionSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ExtensionStatus added in v0.5.0

type ExtensionStatus struct {
	// The most recent generation observed by the controller.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
}

ExtensionStatus defines the observed state of the resource.

func (*ExtensionStatus) DeepCopy added in v0.5.0

func (in *ExtensionStatus) DeepCopy() *ExtensionStatus

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

func (*ExtensionStatus) DeepCopyInto added in v0.5.0

func (in *ExtensionStatus) DeepCopyInto(out *ExtensionStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Tackle

type Tackle struct {
	meta.TypeMeta   `json:",inline"`
	meta.ObjectMeta `json:"metadata,omitempty"`
	// Spec defines the desired state of the resource.
	Spec runtime.RawExtension `json:"spec,omitempty"`
	// Status defines the observed state of the resource.
	Status runtime.RawExtension `json:"status,omitempty"`
}

Tackle defines a tackle application. +genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +k8s:openapi-gen=true +kubebuilder:storageversion +kubebuilder:subresource:status

func (*Tackle) DeepCopy

func (in *Tackle) DeepCopy() *Tackle

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

func (*Tackle) DeepCopyInto

func (in *Tackle) DeepCopyInto(out *Tackle)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Tackle) DeepCopyObject

func (in *Tackle) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type TackleList

type TackleList struct {
	meta.TypeMeta `json:",inline"`
	meta.ListMeta `json:"metadata,omitempty"`
	Items         []Tackle `json:"items"`
}

TackleList is a list of Tackle. +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*TackleList) DeepCopy

func (in *TackleList) DeepCopy() *TackleList

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

func (*TackleList) DeepCopyInto

func (in *TackleList) DeepCopyInto(out *TackleList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*TackleList) DeepCopyObject

func (in *TackleList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type Task added in v0.5.0

type Task struct {
	meta.TypeMeta   `json:",inline"`
	meta.ObjectMeta `json:"metadata,omitempty"`
	// Spec defines the desired state the resource.
	Spec TaskSpec `json:"spec,omitempty"`
	// Status defines the observed state the resource.
	Status TaskStatus `json:"status,omitempty"`
}

Task defines a hub task. +genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +k8s:openapi-gen=true +kubebuilder:storageversion +kubebuilder:subresource:status

func (*Task) Data added in v0.5.0

func (r *Task) Data() (mp map[string]any)

Data returns the task Data as map[string]any.

func (*Task) DeepCopy added in v0.5.0

func (in *Task) DeepCopy() *Task

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

func (*Task) DeepCopyInto added in v0.5.0

func (in *Task) DeepCopyInto(out *Task)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Task) DeepCopyObject added in v0.5.0

func (in *Task) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Task) HasDep added in v0.5.0

func (r *Task) HasDep(name string) (found bool)

HasDep return true if the task has the dependency.

type TaskList added in v0.5.0

type TaskList struct {
	meta.TypeMeta `json:",inline"`
	meta.ListMeta `json:"metadata,omitempty"`
	Items         []Task `json:"items"`
}

TaskList is a list of Task. +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*TaskList) DeepCopy added in v0.5.0

func (in *TaskList) DeepCopy() *TaskList

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

func (*TaskList) DeepCopyInto added in v0.5.0

func (in *TaskList) DeepCopyInto(out *TaskList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*TaskList) DeepCopyObject added in v0.5.0

func (in *TaskList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type TaskSpec added in v0.5.0

type TaskSpec struct {
	// Priority defines the task priority (0-n).
	Priority int `json:"priority,omitempty"`
	// Dependencies defines a list of task names on which this task depends.
	Dependencies []string `json:"dependencies,omitempty"`
	// Data object passed to the addon.
	Data runtime.RawExtension `json:"data,omitempty"`
}

TaskSpec defines the desired state the resource.

func (*TaskSpec) DeepCopy added in v0.5.0

func (in *TaskSpec) DeepCopy() *TaskSpec

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

func (*TaskSpec) DeepCopyInto added in v0.5.0

func (in *TaskSpec) DeepCopyInto(out *TaskSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TaskStatus added in v0.5.0

type TaskStatus struct {
	// The most recent generation observed by the controller.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
}

TaskStatus defines the observed state the resource.

func (*TaskStatus) DeepCopy added in v0.5.0

func (in *TaskStatus) DeepCopy() *TaskStatus

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

func (*TaskStatus) DeepCopyInto added in v0.5.0

func (in *TaskStatus) DeepCopyInto(out *TaskStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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