Documentation ¶
Overview ¶
Package v1beta1 contains API Schema definitions for the redis v1beta1 API group +kubebuilder:object:generate=true +groupName=redis.openstack.org
Index ¶
- Constants
- Variables
- func SetupDefaults()
- func SetupRedisDefaults(defaults RedisDefaults)
- type Redis
- func (in *Redis) DeepCopy() *Redis
- func (in *Redis) DeepCopyInto(out *Redis)
- func (in *Redis) DeepCopyObject() runtime.Object
- func (r *Redis) Default()
- func (instance Redis) IsReady() bool
- func (instance Redis) RbacConditionsSet(c *condition.Condition)
- func (instance Redis) RbacNamespace() string
- func (instance Redis) RbacResourceName() string
- func (r *Redis) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *Redis) ValidateCreate() error
- func (r *Redis) ValidateDelete() error
- func (r *Redis) ValidateUpdate(old runtime.Object) error
- type RedisDefaults
- type RedisList
- type RedisSpec
- type RedisStatus
Constants ¶
const (
// RedisContainerImage is the fall-back container image for Redis
RedisContainerImage = "registry.redhat.io/rhel9/redis-6:latest"
)
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "redis.openstack.org", Version: "v1beta1"} // 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 )
Functions ¶
func SetupDefaults ¶
func SetupDefaults()
SetupDefaults - initializes any CRD field defaults based on environment variables (the defaulting mechanism itself is implemented via webhooks)
func SetupRedisDefaults ¶
func SetupRedisDefaults(defaults RedisDefaults)
SetupRedisDefaults - initialize Redis spec defaults for use with either internal or external webhooks
Types ¶
type Redis ¶
type Redis struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec RedisSpec `json:"spec,omitempty"` Status RedisStatus `json:"status,omitempty"` }
Redis is the Schema for the redises 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) Default ¶
func (r *Redis) Default()
Default implements webhook.Defaulter so a webhook will be registered for the type
func (Redis) RbacConditionsSet ¶
RbacConditionsSet - set the conditions for the rbac object
func (Redis) RbacNamespace ¶
RbacNamespace - return the namespace
func (Redis) RbacResourceName ¶
RbacResourceName - return the name to be used for rbac objects (serviceaccount, role, rolebinding)
func (*Redis) SetupWebhookWithManager ¶
SetupWebhookWithManager sets up the webhook with the Manager
func (*Redis) ValidateCreate ¶
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*Redis) ValidateDelete ¶
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
type RedisDefaults ¶
type RedisDefaults struct {
ContainerImageURL string
}
RedisDefaults -
func (*RedisDefaults) DeepCopy ¶
func (in *RedisDefaults) DeepCopy() *RedisDefaults
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisDefaults.
func (*RedisDefaults) DeepCopyInto ¶
func (in *RedisDefaults) DeepCopyInto(out *RedisDefaults)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
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 { // +kubebuilder:validation:Required // Name of the redis container image to run (will be set to environmental default if empty) ContainerImage string `json:"containerImage"` // +kubebuilder:validation:Optional // +kubebuilder:default=1 // Size of the redis cluster Replicas *int32 `json:"replicas"` }
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.
type RedisStatus ¶
type RedisStatus struct { // Conditions Conditions condition.Conditions `json:"conditions,omitempty" optional:"true"` }
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.