v1alpha1

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 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

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

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

func (*MetricsPrometheusRuleProperties) DeepCopy

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

func (*MetricsPrometheusRuleProperties) DeepCopyInto

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

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

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

func (*MetricsServiceMonitorProperties) DeepCopyInto

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 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 valkey 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 Valkey

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

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

Valkey is the Schema for the valkey API

func (*Valkey) DeepCopy

func (in *Valkey) DeepCopy() *Valkey

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

func (*Valkey) DeepCopyInto

func (in *Valkey) DeepCopyInto(out *Valkey)

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

func (*Valkey) DeepCopyObject

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

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

func (*Valkey) GetDeploymentName

func (c *Valkey) GetDeploymentName() string

func (*Valkey) GetDeploymentNamespace

func (c *Valkey) GetDeploymentNamespace() string

func (*Valkey) GetSpec

func (*Valkey) GetStatus

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

type ValkeyList

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

ValkeyList contains a list of Valkey

func (*ValkeyList) DeepCopy

func (in *ValkeyList) DeepCopy() *ValkeyList

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

func (*ValkeyList) DeepCopyInto

func (in *ValkeyList) DeepCopyInto(out *ValkeyList)

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

func (*ValkeyList) DeepCopyObject

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

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

type ValkeySpec

type ValkeySpec 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"`
	ExtraEnvVars                            []corev1.EnvVar        `json:"extraEnvVars,omitempty"`
	ExtraFlags                              []string               `json:"extraFlags,omitempty"`
}

ValkeySpec defines the desired state of Valkey

func (*ValkeySpec) DeepCopy

func (in *ValkeySpec) DeepCopy() *ValkeySpec

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

func (*ValkeySpec) DeepCopyInto

func (in *ValkeySpec) DeepCopyInto(out *ValkeySpec)

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

func (*ValkeySpec) ToUnstructured

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

type ValkeyStatus

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

ValkeyStatus defines the observed state of Valkey

func (*ValkeyStatus) DeepCopy

func (in *ValkeyStatus) DeepCopy() *ValkeyStatus

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

func (*ValkeyStatus) DeepCopyInto

func (in *ValkeyStatus) DeepCopyInto(out *ValkeyStatus)

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, valkey *Valkey) error

func (*Webhook) ValidateDelete

func (w *Webhook) ValidateDelete(ctx context.Context, valkey *Valkey) error

func (*Webhook) ValidateUpdate

func (w *Webhook) ValidateUpdate(ctx context.Context, oldValkey *Valkey, valkey *Valkey) error

Jump to

Keyboard shortcuts

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