Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the cache v1alpha1 API group.
Index ¶
- Variables
- func Resource(resource string) schema.GroupResource
- type BindingProperties
- type CertManagerProperties
- type MetricsPrometheusRuleProperties
- type MetricsProperties
- type MetricsServiceMonitorProperties
- type ObjectReference
- type PersistenceProperties
- type SentinelProperties
- type TLSProperties
- type Valkey
- func (in *Valkey) DeepCopy() *Valkey
- func (in *Valkey) DeepCopyInto(out *Valkey)
- func (in *Valkey) DeepCopyObject() runtime.Object
- func (c *Valkey) GetDeploymentName() string
- func (c *Valkey) GetDeploymentNamespace() string
- func (c *Valkey) GetSpec() componentoperatorruntimetypes.Unstructurable
- func (c *Valkey) GetStatus() *component.Status
- type ValkeyList
- type ValkeySpec
- type ValkeyStatus
- type Webhook
- func (w *Webhook) SetupWithManager(mgr manager.Manager)
- func (w *Webhook) ValidateCreate(ctx context.Context, valkey *Valkey) error
- func (w *Webhook) ValidateDelete(ctx context.Context, valkey *Valkey) error
- func (w *Webhook) ValidateUpdate(ctx context.Context, oldValkey *Valkey, valkey *Valkey) error
Constants ¶
This section is empty.
Variables ¶
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 ¶
func (in *CertManagerProperties) DeepCopy() *CertManagerProperties
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 ¶
func (in *MetricsPrometheusRuleProperties) DeepCopy() *MetricsPrometheusRuleProperties
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetricsPrometheusRuleProperties.
func (*MetricsPrometheusRuleProperties) DeepCopyInto ¶
func (in *MetricsPrometheusRuleProperties) DeepCopyInto(out *MetricsPrometheusRuleProperties)
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 ¶
func (in *MetricsServiceMonitorProperties) DeepCopy() *MetricsServiceMonitorProperties
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetricsServiceMonitorProperties.
func (*MetricsServiceMonitorProperties) DeepCopyInto ¶
func (in *MetricsServiceMonitorProperties) DeepCopyInto(out *MetricsServiceMonitorProperties)
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 ¶
func (in *PersistenceProperties) DeepCopy() *PersistenceProperties
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Valkey.
func (*Valkey) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Valkey) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Valkey) GetDeploymentName ¶
func (*Valkey) GetDeploymentNamespace ¶
func (*Valkey) GetSpec ¶
func (c *Valkey) GetSpec() componentoperatorruntimetypes.Unstructurable
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 ¶
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