Documentation ¶
Overview ¶
Package v1beta1 contains API Schema definitions for the memcached v1beta1 API group +kubebuilder:object:generate=true +groupName=memcached.openstack.org
Index ¶
- Constants
- Variables
- func SetupDefaults()
- func SetupMemcachedDefaults(defaults MemcachedDefaults)
- type Memcached
- func (in *Memcached) DeepCopy() *Memcached
- func (in *Memcached) DeepCopyInto(out *Memcached)
- func (in *Memcached) DeepCopyObject() runtime.Object
- func (r *Memcached) Default()
- func (instance Memcached) IsReady() bool
- func (instance Memcached) RbacConditionsSet(c *condition.Condition)
- func (instance Memcached) RbacNamespace() string
- func (instance Memcached) RbacResourceName() string
- func (r *Memcached) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *Memcached) ValidateCreate() error
- func (r *Memcached) ValidateDelete() error
- func (r *Memcached) ValidateUpdate(old runtime.Object) error
- type MemcachedDefaults
- type MemcachedList
- type MemcachedSpec
- type MemcachedStatus
Constants ¶
const (
// MemcachedContainerImage is the fall-back container image for Memcached
MemcachedContainerImage = "quay.io/podified-antelope-centos9/openstack-memcached:current-podified"
)
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "memcached.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 SetupMemcachedDefaults ¶
func SetupMemcachedDefaults(defaults MemcachedDefaults)
SetupMemcachedDefaults - initialize Memcached spec defaults for use with either internal or external webhooks
Types ¶
type Memcached ¶
type Memcached struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec MemcachedSpec `json:"spec,omitempty"` Status MemcachedStatus `json:"status,omitempty"` }
Memcached is the Schema for the memcacheds API
func (*Memcached) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Memcached.
func (*Memcached) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Memcached) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Memcached) Default ¶
func (r *Memcached) Default()
Default implements webhook.Defaulter so a webhook will be registered for the type
func (Memcached) RbacConditionsSet ¶
RbacConditionsSet - set the conditions for the rbac object
func (Memcached) RbacNamespace ¶
RbacNamespace - return the namespace
func (Memcached) RbacResourceName ¶
RbacResourceName - return the name to be used for rbac objects (serviceaccount, role, rolebinding)
func (*Memcached) SetupWebhookWithManager ¶
SetupWebhookWithManager sets up the webhook with the Manager
func (*Memcached) ValidateCreate ¶
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*Memcached) ValidateDelete ¶
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
type MemcachedDefaults ¶
type MemcachedDefaults struct {
ContainerImageURL string
}
MemcachedDefaults -
func (*MemcachedDefaults) DeepCopy ¶
func (in *MemcachedDefaults) DeepCopy() *MemcachedDefaults
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MemcachedDefaults.
func (*MemcachedDefaults) DeepCopyInto ¶
func (in *MemcachedDefaults) DeepCopyInto(out *MemcachedDefaults)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MemcachedList ¶
type MemcachedList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Memcached `json:"items"` }
MemcachedList contains a list of Memcached
func (*MemcachedList) DeepCopy ¶
func (in *MemcachedList) DeepCopy() *MemcachedList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MemcachedList.
func (*MemcachedList) DeepCopyInto ¶
func (in *MemcachedList) DeepCopyInto(out *MemcachedList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MemcachedList) DeepCopyObject ¶
func (in *MemcachedList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MemcachedSpec ¶
type MemcachedSpec struct { // +kubebuilder:validation:Required // Name of the memcached 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 memcached cluster Replicas *int32 `json:"replicas"` }
MemcachedSpec defines the desired state of Memcached
func (*MemcachedSpec) DeepCopy ¶
func (in *MemcachedSpec) DeepCopy() *MemcachedSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MemcachedSpec.
func (*MemcachedSpec) DeepCopyInto ¶
func (in *MemcachedSpec) DeepCopyInto(out *MemcachedSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MemcachedSpec) Default ¶
func (spec *MemcachedSpec) Default()
Default - set defaults for this Memcached spec
type MemcachedStatus ¶
type MemcachedStatus struct { // ReadyCount of Memcached instances ReadyCount int32 `json:"readyCount,omitempty"` // Conditions Conditions condition.Conditions `json:"conditions,omitempty" optional:"true"` // ServerList - List of memcached endpoints without inet(6) prefix ServerList []string `json:"serverList,omitempty" optional:"true"` // ServerListWithInet - List of memcached endpoints with inet(6) prefix ServerListWithInet []string `json:"serverListWithInet,omitempty" optional:"true"` }
MemcachedStatus defines the observed state of Memcached
func (*MemcachedStatus) DeepCopy ¶
func (in *MemcachedStatus) DeepCopy() *MemcachedStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MemcachedStatus.
func (*MemcachedStatus) DeepCopyInto ¶
func (in *MemcachedStatus) DeepCopyInto(out *MemcachedStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.