v1beta1

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2023 License: Apache-2.0 Imports: 9 Imported by: 10

Documentation

Overview

Package v1beta1 contains API Schema definitions for the memcached v1beta1 API group +kubebuilder:object:generate=true +groupName=memcached.openstack.org

Index

Constants

View Source
const (

	// MemcachedContainerImage is the fall-back container image for Memcached
	MemcachedContainerImage = "quay.io/podified-antelope-centos9/openstack-memcached:current-podified"
)

Variables

View Source
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

func (in *Memcached) DeepCopy() *Memcached

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

func (*Memcached) DeepCopyInto

func (in *Memcached) DeepCopyInto(out *Memcached)

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

func (*Memcached) DeepCopyObject

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

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) IsReady

func (instance Memcached) IsReady() bool

IsReady - returns true if Memcached is reconciled successfully

func (Memcached) RbacConditionsSet

func (instance Memcached) RbacConditionsSet(c *condition.Condition)

RbacConditionsSet - set the conditions for the rbac object

func (Memcached) RbacNamespace

func (instance Memcached) RbacNamespace() string

RbacNamespace - return the namespace

func (Memcached) RbacResourceName

func (instance Memcached) RbacResourceName() string

RbacResourceName - return the name to be used for rbac objects (serviceaccount, role, rolebinding)

func (*Memcached) SetupWebhookWithManager

func (r *Memcached) SetupWebhookWithManager(mgr ctrl.Manager) error

SetupWebhookWithManager sets up the webhook with the Manager

func (*Memcached) ValidateCreate

func (r *Memcached) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*Memcached) ValidateDelete

func (r *Memcached) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*Memcached) ValidateUpdate

func (r *Memcached) ValidateUpdate(old runtime.Object) error

ValidateUpdate 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.

Jump to

Keyboard shortcuts

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