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 MetricsProperties
- type ObjectReference
- type PersistenceProperties
- type Redis
- func (in *Redis) DeepCopy() *Redis
- func (in *Redis) DeepCopyInto(out *Redis)
- func (in *Redis) DeepCopyObject() runtime.Object
- func (c *Redis) GetDeploymentName() string
- func (c *Redis) GetDeploymentNamespace() string
- func (c *Redis) GetSpec() componentoperatorruntimetypes.Unstructurable
- func (c *Redis) GetStatus() *component.Status
- type RedisList
- type RedisSpec
- type RedisStatus
- type SentinelProperties
- type TLSProperties
- type Webhook
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 ¶ 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 ¶
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 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 ¶
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 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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Redis.
func (*Redis) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Redis) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Redis) GetDeploymentName ¶
func (*Redis) GetDeploymentNamespace ¶
func (*Redis) GetSpec ¶
func (c *Redis) GetSpec() componentoperatorruntimetypes.Unstructurable
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisList.
func (*RedisList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RedisList) DeepCopyObject ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisSpec.
func (*RedisSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RedisSpec) ToUnstructured ¶
type RedisStatus ¶
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