v1alpha1

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the valhalla v1alpha1 API group +kubebuilder:object:generate=true +groupName=valhalla.itayankri

Index

Constants

View Source
const OperatorPausedAnnotation = "valhalla.itayankri/operator.paused"

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "valhalla.itayankri", 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 PersistenceSpec

type PersistenceSpec struct {
	StorageClassName string                             `json:"storageClassName,omitempty"`
	Storage          *resource.Quantity                 `json:"storage,omitempty"`
	AccessMode       *corev1.PersistentVolumeAccessMode `json:"accessMode,omitempty"`
}

func (*PersistenceSpec) DeepCopy

func (in *PersistenceSpec) DeepCopy() *PersistenceSpec

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

func (*PersistenceSpec) DeepCopyInto

func (in *PersistenceSpec) DeepCopyInto(out *PersistenceSpec)

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

func (*PersistenceSpec) GetAccessMode added in v1.2.1

func (spec *PersistenceSpec) GetAccessMode() corev1.PersistentVolumeAccessMode

type Phase

type Phase string

Phase is the current phase of the deployment

const (
	// PhaseBuildingMap signals that the map building phase is in progress
	PhaseBuildingMap Phase = "BuildingMap"

	// PhaseDeployingWorkers signals that the workers are being deployed
	PhaseDeployingWorkers Phase = "DeployingWorkers"

	// PhaseWorkersDeployed signals that the resources are successfully deployed
	PhaseWorkersDeployed Phase = "WorkersDeployed"

	// PhaseDeleting signals that the resources are being removed
	PhaseDeleting Phase = "Deleting"

	// PhaseDeleted signals that the resources are deleted
	PhaseDeleted Phase = "Deleted"

	// PhaseError signals that the deployment is in an error state
	PhaseError Phase = "Error"

	// PhaseEmpty is an uninitialized phase
	PhaseEmpty Phase = ""
)

type PredictedTrafficSpec added in v1.2.1

type PredictedTrafficSpec struct {
	URL      string  `json:"url,omitempty"`
	Schedule string  `json:"schedule,omitempty"`
	Image    *string `json:"image,omitempty"`
}

func (*PredictedTrafficSpec) DeepCopy added in v1.2.1

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

func (*PredictedTrafficSpec) DeepCopyInto added in v1.2.1

func (in *PredictedTrafficSpec) DeepCopyInto(out *PredictedTrafficSpec)

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

type ServiceSpec added in v1.2.0

type ServiceSpec struct {
	Type           corev1.ServiceType `json:"type,omitempty"`
	Annotations    map[string]string  `json:"annotations,omitempty"`
	LoadBalancerIP *string            `json:"loadBalancerIP,omitempty"`
}

func (*ServiceSpec) DeepCopy added in v1.2.0

func (in *ServiceSpec) DeepCopy() *ServiceSpec

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

func (*ServiceSpec) DeepCopyInto added in v1.2.0

func (in *ServiceSpec) DeepCopyInto(out *ServiceSpec)

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

type Valhalla

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

	Spec   ValhallaSpec   `json:"spec,omitempty"`
	Status ValhallaStatus `json:"status,omitempty"`
}

Valhalla is the Schema for the valhallas API

func (Valhalla) ChildResourceName

func (valhalla Valhalla) ChildResourceName(name string) string

func (*Valhalla) DeepCopy

func (in *Valhalla) DeepCopy() *Valhalla

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

func (*Valhalla) DeepCopyInto

func (in *Valhalla) DeepCopyInto(out *Valhalla)

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

func (*Valhalla) DeepCopyObject

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

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

type ValhallaList

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

ValhallaList contains a list of Valhalla

func (*ValhallaList) DeepCopy

func (in *ValhallaList) DeepCopy() *ValhallaList

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

func (*ValhallaList) DeepCopyInto

func (in *ValhallaList) DeepCopyInto(out *ValhallaList)

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

func (*ValhallaList) DeepCopyObject

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

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

type ValhallaSpec

type ValhallaSpec struct {
	// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	PBFURL           string                       `json:"pbfUrl,omitempty"`
	Image            *string                      `json:"image,omitempty"`
	Persistence      PersistenceSpec              `json:"persistence,omitempty"`
	Service          *ServiceSpec                 `json:"service,omitempty"`
	MinReplicas      *int32                       `json:"minReplicas,omitempty"`
	MaxReplicas      *int32                       `json:"maxReplicas,omitempty"`
	MinAvailable     *int32                       `json:"minAvailable,omitempty"`
	ThreadsPerPod    *int32                       `json:"threadsPerPod,omitempty"`
	Resources        *corev1.ResourceRequirements `json:"resources,omitempty"`
	PredictedTraffic *PredictedTrafficSpec        `json:"predictedTraffic,omitempty"`
}

ValhallaSpec defines the desired state of Valhalla

func (*ValhallaSpec) DeepCopy

func (in *ValhallaSpec) DeepCopy() *ValhallaSpec

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

func (*ValhallaSpec) DeepCopyInto

func (in *ValhallaSpec) DeepCopyInto(out *ValhallaSpec)

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

func (*ValhallaSpec) GetMinAvailable

func (spec *ValhallaSpec) GetMinAvailable() *intstr.IntOrString

func (*ValhallaSpec) GetPbfFileName

func (spec *ValhallaSpec) GetPbfFileName() string

func (*ValhallaSpec) GetResources

func (spec *ValhallaSpec) GetResources() *corev1.ResourceRequirements

func (*ValhallaSpec) GetThreadsPerPod

func (spec *ValhallaSpec) GetThreadsPerPod() int32

type ValhallaStatus

type ValhallaStatus struct {
	// Paused is true when the operator notices paused annotation.
	Paused bool `json:"paused,omitempty"`

	// ObservedGeneration is the latest generation observed by the operator.
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`

	Phase Phase `json:"phase,omitempty"`

	Conditions []metav1.Condition `json:"conditions,omitempty"`
}

ValhallaStatus defines the observed state of Valhalla

func (*ValhallaStatus) DeepCopy

func (in *ValhallaStatus) DeepCopy() *ValhallaStatus

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

func (*ValhallaStatus) DeepCopyInto

func (in *ValhallaStatus) DeepCopyInto(out *ValhallaStatus)

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

func (*ValhallaStatus) SetCondition

func (status *ValhallaStatus) SetCondition(condition metav1.Condition)

func (*ValhallaStatus) SetConditions

func (valhallaStatus *ValhallaStatus) SetConditions(resources []runtime.Object)

Jump to

Keyboard shortcuts

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