Documentation ¶
Overview ¶
Package v1 contains API Schema definitions for the scaling v1 API group +kubebuilder:object:generate=true +groupName=scaling.queues
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "scaling.queues", Version: "v1alpha"} // 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 ¶
This section is empty.
Types ¶
type CheckProbe ¶
type CheckProbe struct { InitialDelaySeconds int32 `json:"initialDelaySeconds"` PeriodSeconds int32 `json:"periodSeconds"` TimeoutSeconds int32 `json:"timeoutSeconds"` }
CheckProbe contains the "probes" configurations as livenessProbe and readinessProbe
type ContainerDetailsSpec ¶
type ContainerDetailsSpec struct { Name string `json:"name"` Image string `json:"image"` ImagePullPolicy v1.PullPolicy `json:"imagePullPolicy"` ReadinessProbe CheckProbe `json:"readinessProbe"` LivenessProbe CheckProbe `json:"livenessProbe"` }
ContainerDetailsSpec maps the container spec
type ContainerSpec ¶
type ContainerSpec struct {
Contaniers ContainerDetailsSpec `json:"contaniers,omitempty"`
}
ContainerSpec maps the container spec
type PersistentVolumeClaimSpec ¶
type PersistentVolumeClaimSpec struct { StorageClass string `json:"storageClass,omitempty"` Name string `json:"name"` AccessModes []v1.PersistentVolumeAccessMode `json:"accessModes"` Resources v1.ResourceRequirements `json:"resources"` }
PersistentVolumeClaimSpec defines the persistent
type RabbitMQ ¶
type RabbitMQ struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec RabbitMQSpec `json:"spec,omitempty"` Status RabbitMQStatus `json:"status,omitempty"` }
RabbitMQ is the Schema for the rabbitmqs API
func NewRabbitMQStruct ¶
func NewRabbitMQStruct() *RabbitMQ
NewRabbitMQStruct Init a RabbitMQ struct with default values
type RabbitMQList ¶
type RabbitMQList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []RabbitMQ `json:"items"` }
RabbitMQList contains a list of RabbitMQ
type RabbitMQSpec ¶
type RabbitMQSpec struct { // INSERT ADDITIONAL SPEC FIELDS - desired state of cluster // Important: Run "make" to regenerate code after modifying this file // Template v1.StatefulSet `json:"template"` Replicas int32 `json:"replicas"` Template TemplateSpec `json:"template,omitempty"` ServiceDefinition ServiceDefinition `json:"serviceDefinition"` ConfigMap string `json:"configMap"` PersistentVolume PersistentVolumeClaimSpec `json:"persistentVolume"` }
RabbitMQSpec defines the desired state of RabbitMQ
type RabbitMQStatus ¶
type RabbitMQStatus struct { }
RabbitMQStatus defines the observed state of RabbitMQ
type ServiceDefinition ¶
type ServiceDefinition string
ServiceDefinition describes the service definition
const ( // Internal means that the service is created by the operator Internal ServiceDefinition = "Internal" // External means that the operator does not create the service, it usues an external one External ServiceDefinition = "External" )
type TemplateSpec ¶
type TemplateSpec struct {
Spec ContainerSpec `json:"spec,omitempty"`
}
TemplateSpec maps the template spec