v1alpha1

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the apps v1alpha1 API group +kubebuilder:object:generate=true +groupName=apps.mohammadne.me

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "apps.mohammadne.me", Version: "v1alpha1"}

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

type Executer struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   ExecuterSpec   `json:"spec,omitempty"`
	Status ExecuterStatus `json:"status,omitempty"`
}

Executer is the Schema for the executers API

func (*Executer) DeepCopy

func (in *Executer) DeepCopy() *Executer

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

func (*Executer) DeepCopyInto

func (in *Executer) DeepCopyInto(out *Executer)

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

func (*Executer) DeepCopyObject

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

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

func (*Executer) Default

func (r *Executer) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type

func (*Executer) SetupWebhookWithManager

func (r *Executer) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*Executer) ShouldCreateIngress added in v0.1.3

func (e *Executer) ShouldCreateIngress() bool

func (*Executer) ShouldCreateService added in v0.1.3

func (e *Executer) ShouldCreateService() bool

func (*Executer) ValidateCreate

func (r *Executer) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*Executer) ValidateDelete

func (r *Executer) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*Executer) ValidateUpdate

func (r *Executer) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type ExecuterList

type ExecuterList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Executer `json:"items"`
}

ExecuterList contains a list of Executer

func (*ExecuterList) DeepCopy

func (in *ExecuterList) DeepCopy() *ExecuterList

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

func (*ExecuterList) DeepCopyInto

func (in *ExecuterList) DeepCopyInto(out *ExecuterList)

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

func (*ExecuterList) DeepCopyObject

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

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

type ExecuterSpec

type ExecuterSpec struct {
	// Image is the name of the image to be used for executer
	// +kubebuilder:validation:Required
	Image string `json:"image,omitempty"`

	// Commands is the command to be run inside the container
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:MinItems:=1
	Commands []string `json:"commands,omitempty"`

	// Replication is the replicas for the executer
	// +kubebuilder:validation:Optional
	Replication int32 `json:"replication,omitempty"`

	// Port is the container-port to be exposed
	// +kubebuilder:validation:Optional
	Port int32 `json:"port,omitempty"`

	// Ingress to expose executer service
	// +kubebuilder:validation:Optional
	Ingress *Ingress `json:"ingress,omitempty"`
}

ExecuterSpec defines the desired state of Executer

func (*ExecuterSpec) DeepCopy

func (in *ExecuterSpec) DeepCopy() *ExecuterSpec

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

func (*ExecuterSpec) DeepCopyInto

func (in *ExecuterSpec) DeepCopyInto(out *ExecuterSpec)

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

type ExecuterStatus

type ExecuterStatus struct {
	DeploymentState ResourceState `json:"deploymentState,omitempty"`
	ServiceState    ResourceState `json:"serviceState,omitempty"`
	IngressState    ResourceState `json:"ingressState,omitempty"`
}

ExecuterStatus defines the observed state of Executer

func (*ExecuterStatus) DeepCopy

func (in *ExecuterStatus) DeepCopy() *ExecuterStatus

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

func (*ExecuterStatus) DeepCopyInto

func (in *ExecuterStatus) DeepCopyInto(out *ExecuterStatus)

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

type Ingress

type Ingress struct {
	// +kubebuilder:validation:Optional
	Name string `json:"name,omitempty"`
}

func (*Ingress) DeepCopy

func (in *Ingress) DeepCopy() *Ingress

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

func (*Ingress) DeepCopyInto

func (in *Ingress) DeepCopyInto(out *Ingress)

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

type ResourceState

type ResourceState string
const (
	ResourceStateUnknown  ResourceState = "Unknown"
	ResourceStateIdle     ResourceState = "Idle"
	ResourceStateCreating ResourceState = "Creating"
	ResourceStateCreated  ResourceState = "Created"
	ResourceStateUpdating ResourceState = "Updating"
	ResourceStateFailed   ResourceState = "Failed"
)

Jump to

Keyboard shortcuts

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