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 ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Slck.
func (*Slck) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Slck) DeepCopyObject ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SlckList.
func (*SlckList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SlckList) DeepCopyObject ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SlckSpec.
func (*SlckSpec) DeepCopyInto ¶
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.