v1alpha1

package
v0.1.26 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the cache v1alpha1 API group

Index

Constants

This section is empty.

Variables

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

	// Needed by kubernetes/code-generator
	SchemeGroupVersion = GroupVersion
)

Functions

func Resource added in v0.1.1

func Resource(resource string) schema.GroupResource

Needed by kubernetes/code-generator.

Types

type BindingProperties

type BindingProperties struct {
	Template *string `json:"template,omitempty"`
}

BindingProperties models custom properties for the generated binding secret

func (*BindingProperties) DeepCopy

func (in *BindingProperties) DeepCopy() *BindingProperties

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

func (*BindingProperties) DeepCopyInto

func (in *BindingProperties) DeepCopyInto(out *BindingProperties)

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

type CertManagerProperties

type CertManagerProperties struct {
	Issuer *ObjectReference `json:"issuer,omitempty"`
}

CertManagerProperties models cert-manager related attributes

func (*CertManagerProperties) DeepCopy

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

func (*CertManagerProperties) DeepCopyInto

func (in *CertManagerProperties) DeepCopyInto(out *CertManagerProperties)

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

type MetricsProperties

type MetricsProperties struct {
	Enabled                                 bool `json:"enabled,omitempty"`
	component.KubernetesContainerProperties `json:",inline"`
}

MetricsProperties models attributes of the metrics exporter sidecar

func (*MetricsProperties) DeepCopy

func (in *MetricsProperties) DeepCopy() *MetricsProperties

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

func (*MetricsProperties) DeepCopyInto

func (in *MetricsProperties) DeepCopyInto(out *MetricsProperties)

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

type ObjectReference

type ObjectReference struct {
	Group string `json:"group,omitempty"`
	Kind  string `json:"kind,omitempty"`
	Name  string `json:"name,omitempty"`
}

ObjectReference models a reference to a Kubernetes object

func (*ObjectReference) DeepCopy

func (in *ObjectReference) DeepCopy() *ObjectReference

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

func (*ObjectReference) DeepCopyInto

func (in *ObjectReference) DeepCopyInto(out *ObjectReference)

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

type PersistenceProperties

type PersistenceProperties struct {
	Enabled      bool               `json:"enabled,omitempty"`
	Size         *resource.Quantity `json:"size,omitempty"`
	StorageClass string             `json:"storageClass,omitempty"`
	ExtraVolumes []corev1.Volume    `json:"extraVolumes,omitempty"`
}

PersistenceProperties models persistence related attributes

func (*PersistenceProperties) DeepCopy

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

func (*PersistenceProperties) DeepCopyInto

func (in *PersistenceProperties) DeepCopyInto(out *PersistenceProperties)

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

type Redis

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

	Spec RedisSpec `json:"spec,omitempty"`
	// +kubebuilder:default={"observedGeneration":-1}
	Status RedisStatus `json:"status,omitempty"`
}

Redis is the Schema for the redis API

func (*Redis) DeepCopy

func (in *Redis) DeepCopy() *Redis

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

func (*Redis) DeepCopyInto

func (in *Redis) DeepCopyInto(out *Redis)

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

func (*Redis) DeepCopyObject

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

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

func (*Redis) GetDeploymentName

func (c *Redis) GetDeploymentName() string

func (*Redis) GetDeploymentNamespace

func (c *Redis) GetDeploymentNamespace() string

func (*Redis) GetSpec

func (*Redis) GetStatus

func (c *Redis) GetStatus() *component.Status

type RedisList

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

RedisList contains a list of Redis

func (*RedisList) DeepCopy

func (in *RedisList) DeepCopy() *RedisList

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

func (*RedisList) DeepCopyInto

func (in *RedisList) DeepCopyInto(out *RedisList)

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

func (*RedisList) DeepCopyObject

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

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

type RedisSpec

type RedisSpec struct {
	Version string `json:"version,omitempty"`
	// +kubebuilder:validation:Minimum=1
	// +kubebuilder:default=1
	Replicas                                int `json:"replicas,omitempty"`
	component.KubernetesPodProperties       `json:",inline"`
	component.KubernetesContainerProperties `json:",inline"`
	Sidecars                                []corev1.Container     `json:"sidecars,omitempty"`
	Sentinel                                *SentinelProperties    `json:"sentinel,omitempty"`
	Metrics                                 *MetricsProperties     `json:"metrics,omitempty"`
	TLS                                     *TLSProperties         `json:"tls,omitempty"`
	Persistence                             *PersistenceProperties `json:"persistence,omitempty"`
	Binding                                 *BindingProperties     `json:"binding,omitempty"`
}

RedisSpec defines the desired state of Redis

func (*RedisSpec) DeepCopy

func (in *RedisSpec) DeepCopy() *RedisSpec

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

func (*RedisSpec) DeepCopyInto

func (in *RedisSpec) DeepCopyInto(out *RedisSpec)

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

func (*RedisSpec) ToUnstructured

func (s *RedisSpec) ToUnstructured() map[string]any

type RedisStatus

type RedisStatus struct {
	component.Status `json:",inline"`
}

RedisStatus defines the observed state of Redis

func (*RedisStatus) DeepCopy

func (in *RedisStatus) DeepCopy() *RedisStatus

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

func (*RedisStatus) DeepCopyInto

func (in *RedisStatus) DeepCopyInto(out *RedisStatus)

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

type SentinelProperties

type SentinelProperties struct {
	Enabled                                 bool `json:"enabled,omitempty"`
	component.KubernetesContainerProperties `json:",inline"`
}

SentinelProperties models attributes of the sentinel sidecar

func (*SentinelProperties) DeepCopy

func (in *SentinelProperties) DeepCopy() *SentinelProperties

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

func (*SentinelProperties) DeepCopyInto

func (in *SentinelProperties) DeepCopyInto(out *SentinelProperties)

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

type TLSProperties

type TLSProperties struct {
	Enabled     bool                   `json:"enabled,omitempty"`
	CertManager *CertManagerProperties `json:"certManager,omitempty"`
}

TLSProperties models TLS settings of the redis services

func (*TLSProperties) DeepCopy

func (in *TLSProperties) DeepCopy() *TLSProperties

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

func (*TLSProperties) DeepCopyInto

func (in *TLSProperties) DeepCopyInto(out *TLSProperties)

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

type Webhook

type Webhook struct {
}

+kubebuilder:object:generate=false

func NewWebhook

func NewWebhook() *Webhook

func (*Webhook) SetupWithManager

func (w *Webhook) SetupWithManager(mgr manager.Manager)

func (*Webhook) ValidateCreate

func (w *Webhook) ValidateCreate(ctx context.Context, redis *Redis) error

func (*Webhook) ValidateDelete

func (w *Webhook) ValidateDelete(ctx context.Context, redis *Redis) error

func (*Webhook) ValidateUpdate

func (w *Webhook) ValidateUpdate(ctx context.Context, oldRedis *Redis, redis *Redis) error

Jump to

Keyboard shortcuts

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