v1

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2026 License: Apache-2.0 Imports: 12 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 Configuration

type Configuration struct {
	Currency string     `json:"currency"`
	Locale   string     `json:"locale"`
	Fastly   FastlySpec `json:"fastly,omitempty"`

	// +kubebuilder:validation:Enum=revoked;allowed
	UsageDataConsent string `json:"usageDataConsent"`
}

func (*Configuration) DeepCopy

func (in *Configuration) DeepCopy() *Configuration

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

func (*Configuration) DeepCopyInto

func (in *Configuration) DeepCopyInto(out *Configuration)

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

type ContainerMergeSpec

type ContainerMergeSpec struct {
	// +kubebuilder:validation:MinLength=1
	Image                         string                        `json:"image,omitempty"`
	ImagePullPolicy               corev1.PullPolicy             `json:"imagePullPolicy,omitempty"`
	ImagePullSecrets              []corev1.LocalObjectReference `json:"imagePullSecrets,omitempty"`
	Volumes                       []corev1.Volume               `json:"volumes,omitempty"`
	VolumeMounts                  []corev1.VolumeMount          `json:"volumeMounts,omitempty"`
	RestartPolicy                 corev1.RestartPolicy          `json:"restartPolicy,omitempty"`
	SecurityContext               *corev1.PodSecurityContext    `json:"podSecurityContext,omitempty"`
	ExtraContainers               []corev1.Container            `json:"extraContainers,omitempty"`
	InitContainers                []corev1.Container            `json:"initContainers,omitempty"`
	Replicas                      int32                         `json:"replicas,omitempty"`
	ProgressDeadlineSeconds       int32                         `json:"progressDeadlineSeconds,omitempty"`
	TerminationGracePeriodSeconds int64                         `json:"terminationGracePeriodSeconds,omitempty"`

	Annotations               map[string]string                 `json:"annotations,omitempty"`
	Labels                    map[string]string                 `json:"labels,omitempty"`
	NodeSelector              map[string]string                 `json:"nodeSelector,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"`
	ExtraEnvs          []corev1.EnvVar             `json:"extraEnvs,omitempty"`
	ServiceAccountName string                      `json:"serviceAccountName,omitempty"`
	EnableServiceLinks *bool                       `json:"enableServiceLinks,omitempty"`
}

func (*ContainerMergeSpec) DeepCopy

func (in *ContainerMergeSpec) DeepCopy() *ContainerMergeSpec

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

func (*ContainerMergeSpec) DeepCopyInto

func (in *ContainerMergeSpec) DeepCopyInto(out *ContainerMergeSpec)

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"`

	// +kubebuilder:default={"fsGroup":82,"runAsGroup":82,"runAsNonRoot":true,"runAsUser":82,"seccompProfile":{"type":"RuntimeDefault"}}
	SecurityContext *corev1.PodSecurityContext `json:"podSecurityContext,omitempty"`
	ExtraContainers []corev1.Container         `json:"extraContainers,omitempty"`
	InitContainers  []corev1.Container         `json:"initContainers,omitempty"`

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

	// +kubebuilder:default=30
	TerminationGracePeriodSeconds int64 `json:"terminationGracePeriodSeconds,omitempty"`

	Annotations               map[string]string                 `json:"annotations,omitempty"`
	Labels                    map[string]string                 `json:"labels,omitempty"`
	NodeSelector              map[string]string                 `json:"nodeSelector,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"`

	ServiceAccountName string `json:"serviceAccountName,omitempty"`
	// +kubebuilder:default=false
	EnableServiceLinks *bool `json:"enableServiceLinks,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.

func (*ContainerSpec) Merge

func (c *ContainerSpec) Merge(from ContainerMergeSpec)

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"`

	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:default=PREFERRED
	SSLMode string `json:"sslMode,omitempty"`

	// +kubebuilder:example=?attribute1=value1&attribute2=value2...
	Options string `json:"options,omitempty"`

	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 DeploymentCondition

type DeploymentCondition struct {
	State          DeploymentState `json:"state,omitempty"`
	LastUpdateTime metav1.Time     `json:"lastUpdatedTime,omitempty"`
	Message        string          `json:"message,omitempty"`
	Ready          string          `json:"ready,omitempty"`
	StoreReplicas  int32           `json:"storeReplicas,omitempty"`
}

func (*DeploymentCondition) DeepCopy

func (in *DeploymentCondition) DeepCopy() *DeploymentCondition

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

func (*DeploymentCondition) DeepCopyInto

func (in *DeploymentCondition) DeepCopyInto(out *DeploymentCondition)

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

type DeploymentState

type DeploymentState string
const (
	DeploymentStateUnknown  DeploymentState = "unknown"
	DeploymentStateError    DeploymentState = "error"
	DeploymentStateNotFound DeploymentState = "not-found"
	DeploymentStateRunning  DeploymentState = "running"
	DeploymentStateScaling  DeploymentState = "scaling"
)

type ExecCondition

type ExecCondition struct {
	Type               StatefulState `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 (*ExecCondition) DeepCopy

func (in *ExecCondition) DeepCopy() *ExecCondition

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

func (*ExecCondition) DeepCopyInto

func (in *ExecCondition) DeepCopyInto(out *ExecCondition)

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;operator
	// +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 FastlySpec

type FastlySpec struct {
	TokenRef   SecretRef `json:"tokenRef,omitempty"`
	ServiceRef SecretRef `json:"serviceRef,omitempty"`
}

func (*FastlySpec) DeepCopy

func (in *FastlySpec) DeepCopy() *FastlySpec

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

func (*FastlySpec) DeepCopyInto

func (in *FastlySpec) DeepCopyInto(out *FastlySpec)

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:default=false
	EnabledGateway bool `json:"enabledGateway"`

	// +kubebuilder:validation:deprecatedversion
	Host string `json:"host,omitempty"`

	// The listType is used to make the slice unique, the unique constraint is not working: the runtime complexity becomes quadratic
	Hosts      []string `json:"hosts,omitempty"`
	AppURLHost string   `json:"appURLHost,omitempty"`

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

	// +kubebuilder:description="Only for Ingress, but use ingressAnnotations to set annotations"
	// +kubebuilder:validation:deprecatedversion
	Annotations map[string]string `json:"annotations,omitempty"`
	// +kubebuilder:description="Only for Ingress, but use ingressLabels to set labels"
	// +kubebuilder:validation:deprecatedversion
	Labels map[string]string `json:"labels,omitempty"`

	IngressClassName   string            `json:"ingressClassName,omitempty"`
	IngressAnnotations map[string]string `json:"ingressAnnotations,omitempty"`
	IngressLabels      map[string]string `json:"ingressLabels,omitempty"`

	GatewayName        string            `json:"gatewayName,omitempty"`
	GatewayNamespace   string            `json:"gatewayNamespace,omitempty"`
	GatewaySectionName string            `json:"gatewaySectionName,omitempty"`
	GatewayAnnotations map[string]string `json:"gatewayAnnotations,omitempty"`
	GatewayLabels      map[string]string `json:"gatewayLabels,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 OpensearchIndexSpec

type OpensearchIndexSpec struct {
	Prefix   string `json:"prefix,omitempty"`
	Shards   int    `json:"shards,omitempty"`
	Replicas int    `json:"replicas,omitempty"`
}

func (*OpensearchIndexSpec) DeepCopy

func (in *OpensearchIndexSpec) DeepCopy() *OpensearchIndexSpec

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

func (*OpensearchIndexSpec) DeepCopyInto

func (in *OpensearchIndexSpec) DeepCopyInto(out *OpensearchIndexSpec)

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

type OpensearchSpec

type OpensearchSpec struct {
	Enabled bool `json:"enabled"`

	Host              string    `json:"host,omitempty"`
	Username          string    `json:"username,omitempty"`
	PasswordSecretRef SecretRef `json:"passwordSecretRef,omitempty"`

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

	// +kubebuilder:validation:Enum=http;https
	// +kubebuilder:default=https
	Schema string `json:"schema,omitempty"`

	// +kubebuilder:default={prefix: sw, shards: 3, replicas: 3}
	Index OpensearchIndexSpec `json:"index,omitempty"`
}

func (*OpensearchSpec) DeepCopy

func (in *OpensearchSpec) DeepCopy() *OpensearchSpec

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

func (*OpensearchSpec) DeepCopyInto

func (in *OpensearchSpec) DeepCopyInto(out *OpensearchSpec)

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 {
	RedisDSN  string `json:"redisDsn,omitempty"`
	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 S3BucketAuth

type S3BucketAuth struct {
	AccessKeyRef       SecretRef `json:"accessKeyRef,omitempty"`
	SecretAccessKeyRef SecretRef `json:"secretAccessKeyRef,omitempty"`
}

func (*S3BucketAuth) DeepCopy

func (in *S3BucketAuth) DeepCopy() *S3BucketAuth

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

func (*S3BucketAuth) DeepCopyInto

func (in *S3BucketAuth) DeepCopyInto(out *S3BucketAuth)

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 ScheduledTaskSpec

type ScheduledTaskSpec struct {
	// The time zone name for the given schedule, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. Default is Etc/UTC.
	// +kubebuilder:default="Etc/UTC"
	TimeZone string `json:"timeZone"`

	// The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.
	// Default to every hour at minute 0.
	// +kubebuilder:default="0 * * * *"
	Schedule string `json:"schedule"`

	// This flag tells the controller to suspend subsequent executions, it does
	// not apply to already started executions.  Defaults to false.
	// +kubebuilder:default=false
	Suspend bool `json:"suspend,omitempty"`

	// The schedule task command
	// +kubebuilder:default="bin/console scheduled-task:run -v -n --no-wait"
	Command string `json:"command"`
}

func (*ScheduledTaskSpec) DeepCopy

func (in *ScheduledTaskSpec) DeepCopy() *ScheduledTaskSpec

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

func (*ScheduledTaskSpec) DeepCopyInto

func (in *ScheduledTaskSpec) DeepCopyInto(out *ScheduledTaskSpec)

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 SnapshotState

type SnapshotState string
const (
	SnapshotStateEmpty     SnapshotState = ""
	SnapshotStatePending   SnapshotState = "pending"
	SnapshotStateRunning   SnapshotState = "running"
	SnapshotStateFailed    SnapshotState = "failed"
	SnapshotStateSucceeded SnapshotState = "succeeded"
)

type StatefulAppState

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

type StatefulState

type StatefulState string
const (
	ExecStateEmpty   StatefulState = ""
	ExecStateWait    StatefulState = "wait"
	ExecStateRunning StatefulState = "running"
	ExecStateDone    StatefulState = "done"
	ExecStateError   StatefulState = "error"
)

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="Storefront",type=string,JSONPath=".status.storefrontState.ready" +kubebuilder:printcolumn:name="Worker",type=string,JSONPath=".status.workerState.ready" +kubebuilder:printcolumn:name="Admin",type=string,JSONPath=".status.adminState.ready" +kubebuilder:printcolumn:name="State",type=string,JSONPath=".status.state" +kubebuilder:printcolumn:name="Message",type=string,JSONPath=".status.message" +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 StoreCondition

type StoreCondition struct {
	Type               string      `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 (*StoreCondition) DeepCopy

func (in *StoreCondition) DeepCopy() *StoreCondition

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

func (*StoreCondition) DeepCopyInto

func (in *StoreCondition) DeepCopyInto(out *StoreCondition)

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

type StoreConditionsList

type StoreConditionsList struct {
	Conditions []StoreCondition `json:"conditions,omitempty"`
}

func (*StoreConditionsList) AddCondition

func (s *StoreConditionsList) AddCondition(c StoreCondition)

func (*StoreConditionsList) DeepCopy

func (in *StoreConditionsList) DeepCopy() *StoreConditionsList

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

func (*StoreConditionsList) DeepCopyInto

func (in *StoreConditionsList) DeepCopyInto(out *StoreConditionsList)

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

func (*StoreConditionsList) GetLastCondition

func (s *StoreConditionsList) GetLastCondition() StoreCondition

type StoreDebugInstance

type StoreDebugInstance struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   StoreDebugInstanceSpec   `json:"spec,omitempty"`
	Status StoreDebugInstanceStatus `json:"status,omitempty"`
}

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

func (*StoreDebugInstance) DeepCopy

func (in *StoreDebugInstance) DeepCopy() *StoreDebugInstance

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

func (*StoreDebugInstance) DeepCopyInto

func (in *StoreDebugInstance) DeepCopyInto(out *StoreDebugInstance)

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

func (*StoreDebugInstance) DeepCopyObject

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

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

func (*StoreDebugInstance) IsState

func (s *StoreDebugInstance) IsState(states ...StoreDebugInstanceState) bool

type StoreDebugInstanceCondition

type StoreDebugInstanceCondition struct {
	Type               StoreDebugInstanceState `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 (*StoreDebugInstanceCondition) DeepCopy

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

func (*StoreDebugInstanceCondition) DeepCopyInto

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

type StoreDebugInstanceList

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

StoreDebugInstanceList contains a list of StoreDebugInstance.

func (*StoreDebugInstanceList) DeepCopy

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

func (*StoreDebugInstanceList) DeepCopyInto

func (in *StoreDebugInstanceList) DeepCopyInto(out *StoreDebugInstanceList)

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

func (*StoreDebugInstanceList) DeepCopyObject

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

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

type StoreDebugInstanceSpec

type StoreDebugInstanceSpec struct {

	// StoreRef is the reference to the store to debug
	StoreRef string `json:"storeRef,omitempty"`
	// Duration is the duration of the debug instance after which it will be deleted
	// e.g. 1h or 30m
	// +default="1h"
	Duration string `json:"duration,omitempty"`
	// ExtraLabels is the extra labels to add to the debug instance
	ExtraLabels map[string]string `json:"extraLabels,omitempty"`
	// ExtraContainerPorts is the extra ports to add to the debug instance
	// if it should be exposed to the outside world
	ExtraContainerPorts []corev1.ContainerPort `json:"extraContainerPorts,omitempty"`
	// CustomImage allows overriding the container image from the store
	// +optional
	CustomImage string `json:"customImage,omitempty"`
	// IgnoreStoreStatus allows the debug instance to start even if the store is not ready
	// +optional
	IgnoreStoreStatus bool `json:"ignoreStoreStatus,omitempty"`
}

StoreDebugInstanceSpec defines the desired state of StoreDebugInstance.

func (*StoreDebugInstanceSpec) DeepCopy

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

func (*StoreDebugInstanceSpec) DeepCopyInto

func (in *StoreDebugInstanceSpec) DeepCopyInto(out *StoreDebugInstanceSpec)

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

type StoreDebugInstanceState

type StoreDebugInstanceState string
const (
	StoreDebugInstanceStateUnspecified StoreDebugInstanceState = ""
	StoreDebugInstanceStateWait        StoreDebugInstanceState = "wait"
	StoreDebugInstanceStatePending     StoreDebugInstanceState = "pending"
	StoreDebugInstanceStateRunning     StoreDebugInstanceState = "running"
	StoreDebugInstanceStateDone        StoreDebugInstanceState = "done"
	StoreDebugInstanceStateError       StoreDebugInstanceState = "error"
)

type StoreDebugInstanceStatus

type StoreDebugInstanceStatus struct {
	State StoreDebugInstanceState `json:"state,omitempty"`

	Conditions []StoreDebugInstanceCondition `json:"conditions,omitempty"`
}

StoreDebugInstanceStatus defines the observed state of StoreDebugInstance.

func (*StoreDebugInstanceStatus) AddCondition

func (*StoreDebugInstanceStatus) DeepCopy

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

func (*StoreDebugInstanceStatus) DeepCopyInto

func (in *StoreDebugInstanceStatus) DeepCopyInto(out *StoreDebugInstanceStatus)

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

type StoreExec

type StoreExec struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   StoreExecSpec   `json:"spec,omitempty"`
	Status StoreExecStatus `json:"status,omitempty"`
}

+kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:printcolumn:name="State",type=string,JSONPath=".status.state" +kubebuilder:printcolumn:name="MaxRetries",type=string,JSONPath=".spec.maxRetries" +kubebuilder:printcolumn:name="CronSchedule",type=string,JSONPath=".spec.cronSchedule" +kubebuilder:printcolumn:name="CronSuspend",type=string,JSONPath=".spec.cronSuspend" +kubebuilder:resource:scope=Namespaced +kubebuilder:resource:shortName=stexec

func (*StoreExec) DeepCopy

func (in *StoreExec) DeepCopy() *StoreExec

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

func (*StoreExec) DeepCopyInto

func (in *StoreExec) DeepCopyInto(out *StoreExec)

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

func (*StoreExec) DeepCopyObject

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

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

func (*StoreExec) IsState

func (s *StoreExec) IsState(states ...StatefulState) bool

type StoreExecList

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

+kubebuilder:object:root=true

func (*StoreExecList) DeepCopy

func (in *StoreExecList) DeepCopy() *StoreExecList

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

func (*StoreExecList) DeepCopyInto

func (in *StoreExecList) DeepCopyInto(out *StoreExecList)

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

func (*StoreExecList) DeepCopyObject

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

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

type StoreExecSpec

type StoreExecSpec struct {
	StoreRef     string `json:"storeRef"`
	CronSchedule string `json:"cronSchedule,omitempty"`

	// +kubebuilder:default=false
	CronSuspend bool   `json:"cronSuspend,omitempty"`
	Script      string `json:"script"`

	// +kubebuilder:default=3
	MaxRetries int32 `json:"maxRetries,omitempty"`

	ExtraEnvs []corev1.EnvVar `json:"extraEnvs,omitempty"`

	Container ContainerSpec `json:"container,omitempty"`
}

func (*StoreExecSpec) DeepCopy

func (in *StoreExecSpec) DeepCopy() *StoreExecSpec

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

func (*StoreExecSpec) DeepCopyInto

func (in *StoreExecSpec) DeepCopyInto(out *StoreExecSpec)

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

type StoreExecStatus

type StoreExecStatus struct {
	State StatefulState `json:"state,omitempty"`

	Done       string          `json:"ready,omitempty"`
	Conditions []ExecCondition `json:"conditions,omitempty"`
}

func (*StoreExecStatus) AddCondition

func (s *StoreExecStatus) AddCondition(c ExecCondition)

func (*StoreExecStatus) DeepCopy

func (in *StoreExecStatus) DeepCopy() *StoreExecStatus

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

func (*StoreExecStatus) DeepCopyInto

func (in *StoreExecStatus) DeepCopyInto(out *StoreExecStatus)

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

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 StoreSnapshotCreate

type StoreSnapshotCreate struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   StoreSnapshotSpec   `json:"spec,omitempty"`
	Status StoreSnapshotStatus `json:"status,omitempty"`
}

func (*StoreSnapshotCreate) DeepCopy

func (in *StoreSnapshotCreate) DeepCopy() *StoreSnapshotCreate

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

func (*StoreSnapshotCreate) DeepCopyInto

func (in *StoreSnapshotCreate) DeepCopyInto(out *StoreSnapshotCreate)

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

func (*StoreSnapshotCreate) DeepCopyObject

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

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

func (*StoreSnapshotCreate) GetObjectMeta

func (s *StoreSnapshotCreate) GetObjectMeta() metav1.Object

GetObjectMeta implements SnapshotResource interface

func (*StoreSnapshotCreate) GetRuntimeObject

func (s *StoreSnapshotCreate) GetRuntimeObject() runtime.Object

func (*StoreSnapshotCreate) GetSpec

GetSpec implements SnapshotResource interface

func (*StoreSnapshotCreate) GetStatus

func (s *StoreSnapshotCreate) GetStatus() *StoreSnapshotStatus

GetStatus implements SnapshotResource interface

type StoreSnapshotCreateList

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

func (*StoreSnapshotCreateList) DeepCopy

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

func (*StoreSnapshotCreateList) DeepCopyInto

func (in *StoreSnapshotCreateList) DeepCopyInto(out *StoreSnapshotCreateList)

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

func (*StoreSnapshotCreateList) DeepCopyObject

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

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

type StoreSnapshotRestore

type StoreSnapshotRestore struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   StoreSnapshotSpec   `json:"spec,omitempty"`
	Status StoreSnapshotStatus `json:"status,omitempty"`
}

StoreSnapshotRestore is the Schema for the storesnapshotrestores API.

func (*StoreSnapshotRestore) DeepCopy

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

func (*StoreSnapshotRestore) DeepCopyInto

func (in *StoreSnapshotRestore) DeepCopyInto(out *StoreSnapshotRestore)

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

func (*StoreSnapshotRestore) DeepCopyObject

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

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

func (*StoreSnapshotRestore) GetObjectMeta

func (s *StoreSnapshotRestore) GetObjectMeta() metav1.Object

GetObjectMeta implements SnapshotResource interface

func (*StoreSnapshotRestore) GetRuntimeObject

func (s *StoreSnapshotRestore) GetRuntimeObject() runtime.Object

func (*StoreSnapshotRestore) GetSpec

GetSpec implements SnapshotResource interface

func (*StoreSnapshotRestore) GetStatus

func (s *StoreSnapshotRestore) GetStatus() *StoreSnapshotStatus

GetStatus implements SnapshotResource interface

type StoreSnapshotRestoreList

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

StoreSnapshotRestoreList contains a list of StoreSnapshotRestore.

func (*StoreSnapshotRestoreList) DeepCopy

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

func (*StoreSnapshotRestoreList) DeepCopyInto

func (in *StoreSnapshotRestoreList) DeepCopyInto(out *StoreSnapshotRestoreList)

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

func (*StoreSnapshotRestoreList) DeepCopyObject

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

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

type StoreSnapshotSpec

type StoreSnapshotSpec struct {
	StoreNameRef string `json:"storeNameRef"`

	// +kubebuilder:validation:Pattern="^(s3://[a-z0-9.-]+(/[a-zA-Z0-9._-]+)*)|(\\.?(/[^/ ]+)+)$"
	// +kubebuilder:validation:Required
	// +kubebuilder:example="s3://my-bucket-name/optional/path"
	// +kubebuilder:example="/optional/local/path"
	// +kubebuilder:description="The destination path where the snapshot will be stored. This can be either a local filesystem path (e.g., /backups/snapshot.zip) or an S3 URI (e.g., s3://my-bucket-name/optional/backup.zip)."
	Path string `json:"path"`

	// +kubebuilder:description="Used for access to the s3 buckets of the shop and also used when storing to a snapshot to s3"
	S3BucketAuth S3BucketAuth `json:"s3BucketAuth,omitempty"`

	// +kubebuilder:default=3
	MaxRetries int32 `json:"maxRetries,omitempty"`

	// The Image gets replaces with the tag of the crd
	// +kubebuilder:default={image: "ghcr.io/shopware/shopware-operator-snapshot:main", terminationGracePeriodSeconds: 30}
	Container ContainerSpec `json:"container,omitempty"`
}

func (*StoreSnapshotSpec) DeepCopy

func (in *StoreSnapshotSpec) DeepCopy() *StoreSnapshotSpec

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

func (*StoreSnapshotSpec) DeepCopyInto

func (in *StoreSnapshotSpec) DeepCopyInto(out *StoreSnapshotSpec)

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

func (StoreSnapshotSpec) GetEnv

func (s StoreSnapshotSpec) GetEnv(store Store) []corev1.EnvVar

type StoreSnapshotStatus

type StoreSnapshotStatus struct {
	State                     SnapshotState `json:"state,omitempty"`
	CompletedAt               metav1.Time   `json:"completed,omitempty"`
	Message                   string        `json:"message,omitempty"`
	Duration                  metav1.Time   `json:"duration,omitempty"`
	TerminationMessageFromJob string        `json:"terminationMessageFromJob,omitempty"`
	StoreConditionsList       `json:",inline"`
}

func (*StoreSnapshotStatus) DeepCopy

func (in *StoreSnapshotStatus) DeepCopy() *StoreSnapshotStatus

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

func (*StoreSnapshotStatus) DeepCopyInto

func (in *StoreSnapshotStatus) DeepCopyInto(out *StoreSnapshotStatus)

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

func (*StoreSnapshotStatus) IsState

func (s *StoreSnapshotStatus) IsState(states ...SnapshotState) bool

type StoreSpec

type StoreSpec struct {
	Database DatabaseSpec `json:"database"`

	Container ContainerSpec `json:"container"`

	// +kubebuilder:default={}
	AdminDeploymentContainer ContainerMergeSpec `json:"adminDeploymentContainer,omitempty"`
	// +kubebuilder:default={}
	WorkerDeploymentContainer ContainerMergeSpec `json:"workerDeploymentContainer,omitempty"`
	// +kubebuilder:default={}
	StorefrontDeploymentContainer ContainerMergeSpec `json:"storefrontDeploymentContainer,omitempty"`
	// +kubebuilder:default={}
	SetupJobContainer ContainerMergeSpec `json:"setupJobContainer,omitempty"`
	// +kubebuilder:default={}
	MigrationJobContainer ContainerMergeSpec `json:"migrationJobContainer,omitempty"`

	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"`

	// +kubebuilder:default={enabled: false}
	OpensearchSpec OpensearchSpec `json:"opensearch,omitempty"`

	// Use ServiceAccountName in container spec
	ServiceAccountName string `json:"serviceAccountName,omitempty"`

	// +kubebuilder:default={currency: "EUR", locale: "en-GB", usageDataConsent: "allowed"}
	ShopConfiguration Configuration `json:"shopConfiguration,omitempty"`

	// +kubebuilder:default=false
	DisableChecks bool `json:"disableChecks,omitempty"`
	// +kubebuilder:default=false
	DisableS3Check bool `json:"disableS3Check,omitempty"`
	// +kubebuilder:default=false
	DisableFastlyCheck bool `json:"disableFastlyCheck,omitempty"`
	// +kubebuilder:default=false
	DisableOpensearchCheck bool `json:"disableOpensearchCheck,omitempty"`
	// +kubebuilder:default=false
	DisableDatabaseCheck bool `json:"disableDatabaseCheck,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"`

	// +kubebuilder:default={timeZone: "Etc/UTC", schedule: "0 * * * *", command: "bin/console scheduled-task:run -v -n --no-wait"}
	ScheduledTask ScheduledTaskSpec `json:"scheduledTask,omitempty"`

	ScheduledTaskLabels map[string]string `json:"scheduledTaskLabels,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"`

	WorkerState     DeploymentCondition `json:"workerState,omitempty"`
	AdminState      DeploymentCondition `json:"adminState,omitempty"`
	StorefrontState DeploymentCondition `json:"storefrontState,omitempty"`

	StoreConditionsList `json:",inline"`
}

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"`
}

func (*WorkerSpec) DeepCopy

func (in *WorkerSpec) DeepCopy() *WorkerSpec

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

func (*WorkerSpec) DeepCopyInto

func (in *WorkerSpec) DeepCopyInto(out *WorkerSpec)

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