v1alpha1

package
v0.1.58 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2026 License: Apache-2.0 Imports: 16 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 {
	SecretName string  `json:"secretName,omitempty"`
	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 MetricsPrometheusRuleProperties added in v0.1.28

type MetricsPrometheusRuleProperties struct {
	Enabled          bool                `json:"enabled,omitempty"`
	AdditionalLabels map[string]string   `json:"additionalLabels,omitempty"`
	Rules            []prometheusv1.Rule `json:"rules,omitempty"`
}

func (*MetricsPrometheusRuleProperties) DeepCopy added in v0.1.28

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

func (*MetricsPrometheusRuleProperties) DeepCopyInto added in v0.1.28

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"`
	ServiceMonitor                          *MetricsServiceMonitorProperties `json:"monitor,omitempty"`
	PrometheusRule                          *MetricsPrometheusRuleProperties `json:"prometheusRule,omitempty"`
}

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 MetricsServiceMonitorProperties added in v0.1.28

type MetricsServiceMonitorProperties struct {
	Enabled            bool                         `json:"enabled,omitempty"`
	Interval           prometheusv1.Duration        `json:"interval,omitempty"`
	ScrapeTimeout      prometheusv1.Duration        `json:"scrapeTimeout,omitempty"`
	Relabellings       []prometheusv1.RelabelConfig `json:"relabellings,omitempty"`
	MetricRelabellings []prometheusv1.RelabelConfig `json:"metricRelabelings,omitempty"`
	HonorLabels        bool                         `json:"honorLabels,omitempty"`
	AdditionalLabels   map[string]string            `json:"additionalLabels,omitempty"`
	PodTargetLabels    []string                     `json:"podTargetLabels,omitempty"`
}

func (*MetricsServiceMonitorProperties) DeepCopy added in v0.1.28

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

func (*MetricsServiceMonitorProperties) DeepCopyInto added in v0.1.28

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