v1alpha1

package
v0.0.0-...-3fe66fd Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the cli v1alpha1 API group +kubebuilder:object:generate=true +groupName=cli.redrvm.cloud

Index

Constants

This section is empty.

Variables

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

type AutoscalingConfig struct {
	// +optional
	Enabled bool `json:"enabled,omitempty"`
	// +optional
	MinReplicas int32 `json:"minReplicas,omitempty"`
	// +optional
	MaxReplicas int32 `json:"maxReplicas,omitempty"`
	// +optional
	TargetCPUUtilizationPercentage int32 `json:"targetCPUUtilizationPercentage,omitempty"`
}

func (*AutoscalingConfig) DeepCopy

func (in *AutoscalingConfig) DeepCopy() *AutoscalingConfig

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

func (*AutoscalingConfig) DeepCopyInto

func (in *AutoscalingConfig) DeepCopyInto(out *AutoscalingConfig)

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

type ImageConfig

type ImageConfig struct {
	// +optional
	Repository string `json:"repository,omitempty"`
	// +optional
	PullPolicy string `json:"pullPolicy,omitempty"`
	Tag        string `json:"tag,omitempty"`
}

func (*ImageConfig) DeepCopy

func (in *ImageConfig) DeepCopy() *ImageConfig

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

func (*ImageConfig) DeepCopyInto

func (in *ImageConfig) DeepCopyInto(out *ImageConfig)

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

type RedisConfig

type RedisConfig struct {
	// +optional
	Replicas int32 `json:"replicas,omitempty"`
	// +optional
	Service ServiceConfig `json:"service,omitempty"`
	// +optional
	Resources corev1.ResourceRequirements `json:"resources,omitempty"`
}

func (*RedisConfig) DeepCopy

func (in *RedisConfig) DeepCopy() *RedisConfig

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

func (*RedisConfig) DeepCopyInto

func (in *RedisConfig) DeepCopyInto(out *RedisConfig)

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

type ResourceUsage

type ResourceUsage struct {
	//+optional
	CPU string `json:"cpu,omitempty"`
	//+optional
	Mem string `json:"mem,omitempty"`
}

func (*ResourceUsage) DeepCopy

func (in *ResourceUsage) DeepCopy() *ResourceUsage

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

func (*ResourceUsage) DeepCopyInto

func (in *ResourceUsage) DeepCopyInto(out *ResourceUsage)

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

type ServiceConfig

type ServiceConfig struct {
	// +optional
	Type string `json:"type,omitempty"`
	// +optional
	Port int32 `json:"port,omitempty"`
}

func (*ServiceConfig) DeepCopy

func (in *ServiceConfig) DeepCopy() *ServiceConfig

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

func (*ServiceConfig) DeepCopyInto

func (in *ServiceConfig) DeepCopyInto(out *ServiceConfig)

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

type Slck

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

	Spec   SlckSpec   `json:"spec,omitempty"`
	Status SlckStatus `json:"status,omitempty"`
}

Slck is the Schema for the slcks API

func (*Slck) DeepCopy

func (in *Slck) DeepCopy() *Slck

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

func (*Slck) DeepCopyInto

func (in *Slck) DeepCopyInto(out *Slck)

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

func (*Slck) DeepCopyObject

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

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

type SlckList

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

SlckList contains a list of Slck

func (*SlckList) DeepCopy

func (in *SlckList) DeepCopy() *SlckList

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

func (*SlckList) DeepCopyInto

func (in *SlckList) DeepCopyInto(out *SlckList)

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

func (*SlckList) DeepCopyObject

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

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

type SlckSpec

type SlckSpec struct {

	// Helm chart related configurations
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	ChartRepo string `json:"chartRepo,omitempty"`
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	ChartName string `json:"chartName,omitempty"`
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	ChartVersion string `json:"chartVersion,omitempty"`
	// +optional
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	Namespace string `json:"namespace,omitempty"`
	// +optional
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	Values map[string]string `json:"values,omitempty"`

	// Autoscaling configuration
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	Autoscaling AutoscalingConfig `json:"autoscaling"`
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	// Image configuration
	Image ImageConfig `json:"image"`

	// ImagePullSecrets configuration
	// +optional
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	ImagePullSecrets []corev1.LocalObjectReference `json:"imagePullSecrets,omitempty"`

	// Number of replicas
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	Replicas int32 `json:"replicas"`

	// Resource requests and limits
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	Resources corev1.ResourceRequirements `json:"resources"`

	// NameOverride and FullnameOverride configurations
	// +optional
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	NameOverride string `json:"nameOverride,omitempty"`
	// +optional
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	FullnameOverride string `json:"fullnameOverride,omitempty"`

	// Service configuration
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	Service ServiceConfig `json:"service"`

	// NodeSelector configuration
	// +optional
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	NodeSelector map[string]string `json:"nodeSelector,omitempty"`

	// Tolerations configuration
	// +optional
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	Tolerations []corev1.Toleration `json:"tolerations,omitempty"`

	// Affinity configuration
	// +optional
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	Affinity corev1.Affinity `json:"affinity,omitempty"`

	// Redis configuration
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	Redis RedisConfig `json:"redis"`
}

SlckSpec defines the desired state of Slck

func (*SlckSpec) DeepCopy

func (in *SlckSpec) DeepCopy() *SlckSpec

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

func (*SlckSpec) DeepCopyInto

func (in *SlckSpec) DeepCopyInto(out *SlckSpec)

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

type SlckStatus

type SlckStatus struct {
	// Existing Conditions field
	// +operator-sdk:csv:customresourcedefinitions:type=status
	Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`

	// Additional fields to enrich status data
	// +operator-sdk:csv:customresourcedefinitions:type=status
	Replicas int32 `json:"replicas,omitempty"`

	// +operator-sdk:csv:customresourcedefinitions:type=status
	Resources ResourceUsage `json:"resources,omitempty"`

	// +operator-sdk:csv:customresourcedefinitions:type=status
	LastError string `json:"lastError,omitempty"`
}

SlckStatus defines the observed state of Slck

func (*SlckStatus) DeepCopy

func (in *SlckStatus) DeepCopy() *SlckStatus

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

func (*SlckStatus) DeepCopyInto

func (in *SlckStatus) DeepCopyInto(out *SlckStatus)

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