v1

package
v0.0.0-...-c7dc075 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package v1 contains API Schema definitions for the shop v1 API group +kubebuilder:object:generate=true +groupName=shop.shopware.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "shop.shopware.com", Version: "v1"}

	// 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 AppCacheSpec

type AppCacheSpec struct {
	RedisSpec `json:",inline"`

	// +kubebuilder:validation:Enum=builtin;redis
	Adapter string `json:"adapter"`
}

func (*AppCacheSpec) DeepCopy

func (in *AppCacheSpec) DeepCopy() *AppCacheSpec

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

func (*AppCacheSpec) DeepCopyInto

func (in *AppCacheSpec) DeepCopyInto(out *AppCacheSpec)

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

type BlackfireSpec

type BlackfireSpec struct {
	// +kubebuilder:default=false
	Enabled bool `json:"enabled,omitempty"`

	// +kubebuilder:default=blackfire
	Host string `json:"host,omitempty"`
	// +kubebuilder:default=8307
	Port int `json:"port,omitempty"`
}

func (*BlackfireSpec) DeepCopy

func (in *BlackfireSpec) DeepCopy() *BlackfireSpec

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

func (*BlackfireSpec) DeepCopyInto

func (in *BlackfireSpec) DeepCopyInto(out *BlackfireSpec)

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

type ContainerSpec

type ContainerSpec struct {
	// +kubebuilder:validation:MinLength=1
	Image string `json:"image"`
	// +kubebuilder:default=IfNotPresent
	ImagePullPolicy corev1.PullPolicy `json:"imagePullPolicy,omitempty"`

	Volumes []corev1.Volume `json:"volumes,omitempty"`

	// +kubebuilder:default=8000
	Port int32 `json:"port,omitempty"`

	VolumeMounts     []corev1.VolumeMount          `json:"volumeMounts,omitempty"`
	ImagePullSecrets []corev1.LocalObjectReference `json:"imagePullSecrets,omitempty"`
	RestartPolicy    corev1.RestartPolicy          `json:"restartPolicy,omitempty"`
	SecurityContext  *corev1.PodSecurityContext    `json:"podSecurityContext,omitempty"`
	ExtraContainers  []corev1.Container            `json:"extraContainers,omitempty"`

	// +kubebuilder:default=2
	Replicas int32 `json:"replicas,omitempty"`
	// +kubebuilder:default=30
	ProgressDeadlineSeconds int32 `json:"progressDeadlineSeconds,omitempty"`

	NodeSelector              map[string]string                 `json:"nodeSelector,omitempty"`
	Annotations               map[string]string                 `json:"annotations,omitempty"`
	Labels                    map[string]string                 `json:"labels,omitempty"`
	TopologySpreadConstraints []corev1.TopologySpreadConstraint `json:"topologySpreadConstraints,omitempty"`
	Tolerations               []corev1.Toleration               `json:"tolerations,omitempty"`
	Affinity                  corev1.Affinity                   `json:"affinity,omitempty"`

	Resources corev1.ResourceRequirements `json:"resources,omitempty"`

	// Configuration string `json:"configuration,omitempty"`
	ExtraEnvs []corev1.EnvVar `json:"extraEnvs,omitempty"`
}

func (*ContainerSpec) DeepCopy

func (in *ContainerSpec) DeepCopy() *ContainerSpec

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

func (*ContainerSpec) DeepCopyInto

func (in *ContainerSpec) DeepCopyInto(out *ContainerSpec)

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

type Credentials

type Credentials struct {
	Username string `json:"username"`
	Password string `json:"password,omitempty"`
}

func (*Credentials) DeepCopy

func (in *Credentials) DeepCopy() *Credentials

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

func (*Credentials) DeepCopyInto

func (in *Credentials) DeepCopyInto(out *Credentials)

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

type DatabaseSpec

type DatabaseSpec struct {
	Host    string    `json:"host,omitempty"`
	HostRef SecretRef `json:"hostRef,omitempty"`
	// +kubebuilder:default=3306
	Port int32 `json:"port"`
	// +kubebuilder:validation:MinLength=1
	Version string `json:"version"`
	// +kubebuilder:validation:MinLength=1
	User string `json:"user"`
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:default=shopware
	Name string `json:"name"`

	PasswordSecretRef SecretRef `json:"passwordSecretRef"`
}

func (*DatabaseSpec) DeepCopy

func (in *DatabaseSpec) DeepCopy() *DatabaseSpec

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

func (*DatabaseSpec) DeepCopyInto

func (in *DatabaseSpec) DeepCopyInto(out *DatabaseSpec)

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

type FPMSpec

type FPMSpec struct {
	// +kubebuilder:validation:Enum=static;dynamic;ondemand
	// +kubebuilder:default=static
	ProcessManagement string `json:"processManagement"`

	// +kubebuilder:default="127.0.0.1:9000"
	Listen string `json:"listen"`
	// +kubebuilder:default="tcp://127.0.0.1:9000/status"
	ScrapeURI string `json:"scrapeURI"`
	// +kubebuilder:default=/status
	StatusPath string `json:"statusPath"`

	// +kubebuilder:default=8
	MaxChildren int `json:"maxChildren"`
	// +kubebuilder:default=8
	StartServers int `json:"startServers"`
	// +kubebuilder:default=4
	MinSpareServers int `json:"minSpareServers"`
	// +kubebuilder:default=8
	MaxSpareServers int `json:"maxSpareServers"`
}

func (*FPMSpec) DeepCopy

func (in *FPMSpec) DeepCopy() *FPMSpec

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

func (*FPMSpec) DeepCopyInto

func (in *FPMSpec) DeepCopyInto(out *FPMSpec)

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

type HPASpec

type HPASpec struct {
	MinReplicas *int32                                        `json:"minReplicas,omitempty" protobuf:"varint,2,opt,name=minReplicas"`
	MaxReplicas int32                                         `json:"maxReplicas" protobuf:"varint,3,opt,name=maxReplicas"`
	Metrics     []autoscalerv2.MetricSpec                     `json:"metrics,omitempty" protobuf:"bytes,4,rep,name=metrics"`
	Behavior    *autoscalerv2.HorizontalPodAutoscalerBehavior `json:"behavior,omitempty" protobuf:"bytes,5,opt,name=behavior"`

	// +kubebuilder:default=false
	Enabled     bool              `json:"enabled"`
	Annotations map[string]string `json:"annotations,omitempty"`
}

func (*HPASpec) DeepCopy

func (in *HPASpec) DeepCopy() *HPASpec

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

func (*HPASpec) DeepCopyInto

func (in *HPASpec) DeepCopyInto(out *HPASpec)

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

type Hook

type Hook struct {
	After  string `json:"after,omitempty"`
	Before string `json:"before,omitempty"`
}

func (*Hook) DeepCopy

func (in *Hook) DeepCopy() *Hook

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

func (*Hook) DeepCopyInto

func (in *Hook) DeepCopyInto(out *Hook)

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

type NetworkSpec

type NetworkSpec struct {
	// +kubebuilder:default=false
	EnabledIngress bool `json:"enabledIngress"`

	// +kubebuilder:validation:MinLength=1
	Host string `json:"host"`

	// +kubebuilder:default=8000
	Port int32 `json:"port,omitempty"`

	IngressClassName string            `json:"ingressClassName,omitempty"`
	Annotations      map[string]string `json:"annotations,omitempty"`
	Labels           map[string]string `json:"labels,omitempty"`

	// +kubebuilder:default=store-tls
	TLSSecretName string `json:"tlsSecretName,omitempty"`
}

func (*NetworkSpec) DeepCopy

func (in *NetworkSpec) DeepCopy() *NetworkSpec

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

func (*NetworkSpec) DeepCopyInto

func (in *NetworkSpec) DeepCopyInto(out *NetworkSpec)

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

type OtelSpec

type OtelSpec struct {
	// +kubebuilder:default=false
	Enabled bool `json:"enabled"`

	// +kubebuilder:default=shopware
	ServiceName string `json:"serviceName,omitempty"`
	// +kubebuilder:default=otlp
	TracesExporter string `json:"tracesExporter,omitempty"`
	// +kubebuilder:default=grpc
	ExporterProtocol string `json:"exporterProtocol,omitempty"`

	ExporterEndpoint string `json:"exporterEndpoint,omitempty"`
}

func (*OtelSpec) DeepCopy

func (in *OtelSpec) DeepCopy() *OtelSpec

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

func (*OtelSpec) DeepCopyInto

func (in *OtelSpec) DeepCopyInto(out *OtelSpec)

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

type RedisSpec

type RedisSpec struct {
	RedisHost string `json:"redisHost,omitempty"`
	// +kubebuilder:default=6379
	RedisPort int `json:"redisPort,omitempty"`
	// +kubebuilder:default=0
	RedisIndex int `json:"redisDatabase,omitempty"`
}

func (*RedisSpec) DeepCopy

func (in *RedisSpec) DeepCopy() *RedisSpec

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

func (*RedisSpec) DeepCopyInto

func (in *RedisSpec) DeepCopyInto(out *RedisSpec)

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

type S3Storage

type S3Storage struct {
	// +kubebuilder:validation:MinLength=1
	EndpointURL string `json:"endpointURL"`
	// +kubebuilder:validation:MinLength=1
	PrivateBucketName string `json:"privateBucketName"`
	// +kubebuilder:validation:MinLength=1
	PublicBucketName string `json:"publicBucketName"`
	Region           string `json:"region,omitempty"`

	AccessKeyRef       SecretRef `json:"accessKeyRef,omitempty"`
	SecretAccessKeyRef SecretRef `json:"secretAccessKeyRef,omitempty"`
}

func (*S3Storage) DeepCopy

func (in *S3Storage) DeepCopy() *S3Storage

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

func (*S3Storage) DeepCopyInto

func (in *S3Storage) DeepCopyInto(out *S3Storage)

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

type SecretRef

type SecretRef struct {
	// +kubebuilder:validation:MinLength=1
	Name string `json:"name"`
	// +kubebuilder:validation:MinLength=1
	Key string `json:"key"`
}

func (*SecretRef) DeepCopy

func (in *SecretRef) DeepCopy() *SecretRef

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

func (*SecretRef) DeepCopyInto

func (in *SecretRef) DeepCopyInto(out *SecretRef)

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

type SessionCacheSpec

type SessionCacheSpec struct {
	RedisSpec `json:",inline"`

	// +kubebuilder:validation:Enum=builtin;redis
	Adapter  string `json:"adapter"`
	SavePath string `json:"savePath,omitempty"`
}

func (*SessionCacheSpec) DeepCopy

func (in *SessionCacheSpec) DeepCopy() *SessionCacheSpec

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

func (*SessionCacheSpec) DeepCopyInto

func (in *SessionCacheSpec) DeepCopyInto(out *SessionCacheSpec)

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

type ShopCondition

type ShopCondition struct {
	Type               StatefulAppState `json:"type,omitempty"`
	LastTransitionTime metav1.Time      `json:"lastTransitionTime,omitempty"`
	LastUpdateTime     metav1.Time      `json:"lastUpdatedTime,omitempty"`
	Message            string           `json:"message,omitempty"`
	Reason             string           `json:"reason,omitempty"`
	Status             string           `json:"status,omitempty"`
}

func (*ShopCondition) DeepCopy

func (in *ShopCondition) DeepCopy() *ShopCondition

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

func (*ShopCondition) DeepCopyInto

func (in *ShopCondition) DeepCopyInto(out *ShopCondition)

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

type StatefulAppState

type StatefulAppState string
const (
	StateEmpty        StatefulAppState = ""
	StateWait         StatefulAppState = "waiting"
	StateSetup        StatefulAppState = "setup"
	StateInitializing StatefulAppState = "initializing"
	StateMigration    StatefulAppState = "migrating"
	StateReady        StatefulAppState = "ready"
)

type Store

type Store struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              StoreSpec   `json:"spec,omitempty"`
	Status            StoreStatus `json:"status,omitempty"`
}

Store is the Schema for the stores API +kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:printcolumn:name="State",type=string,JSONPath=".status.state" +kubebuilder:resource:scope=Namespaced +kubebuilder:resource:shortName=st

func (*Store) DeepCopy

func (in *Store) DeepCopy() *Store

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

func (*Store) DeepCopyInto

func (in *Store) DeepCopyInto(out *Store)

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

func (*Store) DeepCopyObject

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

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Store) GetEnv

func (s *Store) GetEnv() []corev1.EnvVar

func (*Store) GetSecretName

func (s *Store) GetSecretName() string

func (*Store) IsState

func (s *Store) IsState(states ...StatefulAppState) bool

type StoreList

type StoreList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Store `json:"items"`
}

+kubebuilder:object:root=true StoreList contains a list of Store

func (*StoreList) DeepCopy

func (in *StoreList) DeepCopy() *StoreList

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

func (*StoreList) DeepCopyInto

func (in *StoreList) DeepCopyInto(out *StoreList)

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

func (*StoreList) DeepCopyObject

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

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type StoreSpec

type StoreSpec struct {
	Database                DatabaseSpec  `json:"database"`
	Container               ContainerSpec `json:"container"`
	Network                 NetworkSpec   `json:"network,omitempty"`
	S3Storage               S3Storage     `json:"s3Storage,omitempty"`
	CDNURL                  string        `json:"cdnURL"`
	Blackfire               BlackfireSpec `json:"blackfire,omitempty"`
	Otel                    OtelSpec      `json:"otel,omitempty"`
	FPM                     FPMSpec       `json:"fpm,omitempty"`
	HorizontalPodAutoscaler HPASpec       `json:"horizontalPodAutoscaler,omitempty"`
	ServiceAccountName      string        `json:"serviceAccountName,omitempty"`

	// +kubebuilder:default=false
	DisableChecks      bool `json:"disableChecks,omitempty"`
	DisableJobDeletion bool `json:"disableJobDeletion,omitempty"`

	// +kubebuilder:default={adapter: "builtin"}
	SessionCache SessionCacheSpec `json:"sessionCache"`

	// +kubebuilder:default={adapter: "builtin"}
	AppCache AppCacheSpec `json:"appCache"`

	// +kubebuilder:default={adapter: "builtin"}
	Worker WorkerSpec `json:"worker"`

	// +kubebuilder:default=store-secret
	SecretName string `json:"secretName"`

	// +kubebuilder:default={username: "admin", password: ""}
	AdminCredentials Credentials `json:"adminCredentials"`

	//+kubebuilder:deprecatedversion
	SetupHook Hook `json:"setupHook,omitempty"`
	// +kubebuilder:default=/setup
	SetupScript string `json:"setupScript,omitempty"`

	//+kubebuilder:deprecatedversion
	MigrationHook Hook `json:"migrationHook,omitempty"`
	// +kubebuilder:default=/setup
	MigrationScript string `json:"migrationScript,omitempty"`
}

func (*StoreSpec) DeepCopy

func (in *StoreSpec) DeepCopy() *StoreSpec

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

func (*StoreSpec) DeepCopyInto

func (in *StoreSpec) DeepCopyInto(out *StoreSpec)

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

type StoreStatus

type StoreStatus struct {
	State           StatefulAppState `json:"state,omitempty"`
	Message         string           `json:"message,omitempty"`
	CurrentImageTag string           `json:"currentImageTag,omitempty"`

	Ready      string          `json:"ready,omitempty"`
	Conditions []ShopCondition `json:"conditions,omitempty"`
}

func (*StoreStatus) AddCondition

func (s *StoreStatus) AddCondition(c ShopCondition)

func (*StoreStatus) DeepCopy

func (in *StoreStatus) DeepCopy() *StoreStatus

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

func (*StoreStatus) DeepCopyInto

func (in *StoreStatus) DeepCopyInto(out *StoreStatus)

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

type WorkerSpec

type WorkerSpec struct {
	RedisSpec `json:",inline"`

	// +kubebuilder:validation:Enum=builtin;redis
	Adapter string `json:"adapter"`
}

Jump to

Keyboard shortcuts

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