v1alpha1

package
v0.0.0-...-b3d719d Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2022 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the cache v1alpha1 API group +kubebuilder:object:generate=true +groupName=cache.commerce.k8scommerce.com

Index

Constants

View Source
const ConfigMapRef = "k8scommerce-config"

EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN! NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized. ConfigMapRef is the name of the environment variable configMap created by the operator-environment.

View Source
const SecretRef = "k8scommerce-secret"

SecretRef is the name of the secret created by the operator-environment.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "cache.commerce.k8scommerce.com", Version: "v1alpha1"}

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

type CoreMicroServices struct {
	// +kubebuilder:validation:Required
	GatewayClient *MicroService `json:"gatewayClient,omitempty"`
	// +kubebuilder:validation:Required
	GatewayAdmin *MicroService `json:"gatewayAdmin,omitempty"`
	// +kubebuilder:validation:Required
	Cart *MicroService `json:"cart,omitempty"`
	// +kubebuilder:validation:Required
	Customer *MicroService `json:"customer,omitempty"`
	// +kubebuilder:validation:Required
	Email *MicroService `json:"email,omitempty"`
	// +kubebuilder:validation:Required
	Inventory *MicroService `json:"inventory,omitempty"`
	// +kubebuilder:validation:Required
	OthersBought *MicroService `json:"othersBought,omitempty"`
	// +kubebuilder:validation:Required
	Payment *MicroService `json:"payment,omitempty"`
	// +kubebuilder:validation:Required
	Product *MicroService `json:"product,omitempty"`
	// +kubebuilder:validation:Required
	Shipping *MicroService `json:"shipping,omitempty"`
	// +kubebuilder:validation:Required
	SimilarProducts *MicroService `json:"similarProducts,omitempty"`
	// +kubebuilder:validation:Required
	Store *MicroService `json:"store,omitempty"`
	// +kubebuilder:validation:Required
	User *MicroService `json:"user,omitempty"`
	// +kubebuilder:validation:Required
	Warehouse *MicroService `json:"warehouse,omitempty"`
}

func (*CoreMicroServices) DeepCopy

func (in *CoreMicroServices) DeepCopy() *CoreMicroServices

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

func (*CoreMicroServices) DeepCopyInto

func (in *CoreMicroServices) DeepCopyInto(out *CoreMicroServices)

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

type Database

type Database struct {
	SecretName string `json:"secretName,omitempty"`
}

func (*Database) DeepCopy

func (in *Database) DeepCopy() *Database

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

func (*Database) DeepCopyInto

func (in *Database) DeepCopyInto(out *Database)

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

type Etcd

type Etcd struct {
	Replicas *int32 `json:"replicas,omitempty"`
}

func (*Etcd) DeepCopy

func (in *Etcd) DeepCopy() *Etcd

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

func (*Etcd) DeepCopyInto

func (in *Etcd) DeepCopyInto(out *Etcd)

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

type Host

type Host struct {
	Hostname string `json:"hostname"`
	Scheme   string `json:"scheme"`
}

func (*Host) DeepCopy

func (in *Host) DeepCopy() *Host

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

func (*Host) DeepCopyInto

func (in *Host) DeepCopyInto(out *Host)

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

type Hosts

type Hosts struct {
	Client Host `json:"client"`
	Admin  Host `json:"admin"`
}

func (*Hosts) DeepCopy

func (in *Hosts) DeepCopy() *Hosts

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

func (*Hosts) DeepCopyInto

func (in *Hosts) DeepCopyInto(out *Hosts)

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

type K8sCommerce

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

	Spec   K8sCommerceSpec   `json:"spec,omitempty"`
	Status K8sCommerceStatus `json:"status,omitempty"`
}

K8sCommerce is the Schema for the commerces API

func (*K8sCommerce) AddFinalizer

func (in *K8sCommerce) AddFinalizer(finalizerName string)

AddFinalizer adds the specified finalizer.

func (*K8sCommerce) DeepCopy

func (in *K8sCommerce) DeepCopy() *K8sCommerce

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

func (*K8sCommerce) DeepCopyInto

func (in *K8sCommerce) DeepCopyInto(out *K8sCommerce)

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

func (*K8sCommerce) DeepCopyObject

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

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

func (*K8sCommerce) HasFinalizer

func (in *K8sCommerce) HasFinalizer(finalizerName string) bool

HasFinalizer returns true if a deletion timestamp is set.

func (*K8sCommerce) IsBeingDeleted

func (in *K8sCommerce) IsBeingDeleted() bool

IsBeingDeleted returns true if a deletion timestamp is set.

func (*K8sCommerce) RemoveFinalizer

func (in *K8sCommerce) RemoveFinalizer(finalizerName string)

RemoveFinalizer removes the specified finalizer.

type K8sCommerceList

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

K8sCommerceList contains a list of K8sCommerce

func (*K8sCommerceList) DeepCopy

func (in *K8sCommerceList) DeepCopy() *K8sCommerceList

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

func (*K8sCommerceList) DeepCopyInto

func (in *K8sCommerceList) DeepCopyInto(out *K8sCommerceList)

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

func (*K8sCommerceList) DeepCopyObject

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

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

type K8sCommerceSpec

type K8sCommerceSpec struct {
	CorsOrigins       []string          `json:"corsOrigins"`
	Hosts             Hosts             `json:"hosts"`
	CoreMicroServices CoreMicroServices `json:"coreMicroServices"`
	AddOnServices     []MicroService    `json:"addOnMicroServices,omitempty"`
	Database          *Database         `json:"database,omitempty"`
	Etcd              Etcd              `json:"etcd"`
}

K8sCommerceSpec defines the desired state of K8sCommerce

func (*K8sCommerceSpec) DeepCopy

func (in *K8sCommerceSpec) DeepCopy() *K8sCommerceSpec

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

func (*K8sCommerceSpec) DeepCopyInto

func (in *K8sCommerceSpec) DeepCopyInto(out *K8sCommerceSpec)

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

type K8sCommerceStatus

type K8sCommerceStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
}

K8sCommerceStatus defines the observed state of K8sCommerce

func (*K8sCommerceStatus) DeepCopy

func (in *K8sCommerceStatus) DeepCopy() *K8sCommerceStatus

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

func (*K8sCommerceStatus) DeepCopyInto

func (in *K8sCommerceStatus) DeepCopyInto(out *K8sCommerceStatus)

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

type Lifecycle

type Lifecycle struct {
	PreStopCommand []string `json:"command,omitempty"`
}

func (*Lifecycle) DeepCopy

func (in *Lifecycle) DeepCopy() *Lifecycle

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

func (*Lifecycle) DeepCopyInto

func (in *Lifecycle) DeepCopyInto(out *Lifecycle)

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

type MicroService

type MicroService struct {
	// +kubebuilder:validation:Required
	Name string `json:"name"`
	// +kubebuilder:validation:Required
	Image   string   `json:"image"`
	Command []string `json:"command,omitempty"`
	Args    []string `json:"args,omitempty"`
	// +kubebuilder:validation:Required
	ContainerPort int32 `json:"port,omitempty"`
	// +optional
	EnvironmentVars map[string]string `json:"vars,omitempty"`
	// +optional
	Lifecycle Lifecycle `json:"lifecycle,omitempty"`
	// +optional
	Resources Resources `json:"resources,omitempty"`
	// +optional
	ReadinessProbe Probe `json:"readinessProbe,omitempty"`
	// +optional
	LivenessProbe Probe `json:"livenessProbe,omitempty"`

	//+kubebuilder:validation:Minimum=2
	Replicas int32 `json:"replicas,omitempty"`
}

func (*MicroService) DeepCopy

func (in *MicroService) DeepCopy() *MicroService

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

func (*MicroService) DeepCopyInto

func (in *MicroService) DeepCopyInto(out *MicroService)

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

type Probe

type Probe struct {
	// +kubebuilder:default:=8080
	Port int `json:"port,omitempty"`
	// +kubebuilder:default:=5
	InitialDelaySeconds int32 `json:"initialDelaySeconds,omitempty"`
	// +kubebuilder:default:=10
	PeriodSeconds int32 `json:"periodSeconds,omitempty"`
}

func (*Probe) DeepCopy

func (in *Probe) DeepCopy() *Probe

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

func (*Probe) DeepCopyInto

func (in *Probe) DeepCopyInto(out *Probe)

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

type ResourceLimits

type ResourceLimits struct {
	// +kubebuilder:default:="500m"
	CPU string `json:"cpu,omitempty"`
	// +kubebuilder:default:="256Mi"
	Memory string `json:"memory,omitempty"`
}

func (*ResourceLimits) DeepCopy

func (in *ResourceLimits) DeepCopy() *ResourceLimits

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

func (*ResourceLimits) DeepCopyInto

func (in *ResourceLimits) DeepCopyInto(out *ResourceLimits)

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

type ResourceRequests

type ResourceRequests struct {
	// +kubebuilder:default:="500m"
	CPU string `json:"cpu,omitempty"`
	// +kubebuilder:default:="256Mi"
	Memory string `json:"memory,omitempty"`
}

func (*ResourceRequests) DeepCopy

func (in *ResourceRequests) DeepCopy() *ResourceRequests

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

func (*ResourceRequests) DeepCopyInto

func (in *ResourceRequests) DeepCopyInto(out *ResourceRequests)

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

type Resources

type Resources struct {
	// +optional
	Requests ResourceRequests `json:"requests,omitempty"`
	// +optional
	Limits ResourceLimits `json:"limits,omitempty"`
}

func (*Resources) DeepCopy

func (in *Resources) DeepCopy() *Resources

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

func (*Resources) DeepCopyInto

func (in *Resources) DeepCopyInto(out *Resources)

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