v1

package
v0.0.0-...-c2f36cf Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

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

Index

Constants

View Source
const (
	DatabaseReady   string = "DatabaseReady"
	DatabaseSeeded  string = "DatabaseSeeded"
	DeploymentReady string = "DeploymentReady"
	ServiceCreated  string = "ServiceCreated"
	HPACreated      string = "HPACreated"
	RouteCreated    string = "RouteCreated"
	IngressCreated  string = "IngressCreated"
)

Status Condition Types.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects.
	GroupVersion = schema.GroupVersion{Group: "pets.bestie.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 Bestie

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

	Spec   BestieSpec   `json:"spec,omitempty"`
	Status BestieStatus `json:"status,omitempty"`
}

Bestie is the Schema for the besties API.

func (*Bestie) DeepCopy

func (in *Bestie) DeepCopy() *Bestie

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

func (*Bestie) DeepCopyInto

func (in *Bestie) DeepCopyInto(out *Bestie)

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

func (*Bestie) DeepCopyObject

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

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

type BestieList

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

BestieList contains a list of Bestie.

func (*BestieList) DeepCopy

func (in *BestieList) DeepCopy() *BestieList

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

func (*BestieList) DeepCopyInto

func (in *BestieList) DeepCopyInto(out *BestieList)

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

func (*BestieList) DeepCopyObject

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

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

type BestieSpec

type BestieSpec struct {

	// The size of the deployment
	Size int32 `json:"size"`

	// The bestie app image
	Image string `json:"image,omitempty"`

	// The bestie app version
	Version string `json:"version,omitempty"`

	// MaxReplicas sets an upper bound to the autoscaling feature. If MaxReplicas is set autoscaling is enabled.
	// +optional
	MaxReplicas *int32 `json:"maxReplicas,omitempty"`
}

BestieSpec defines the desired state of Bestie.

func (*BestieSpec) DeepCopy

func (in *BestieSpec) DeepCopy() *BestieSpec

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

func (*BestieSpec) DeepCopyInto

func (in *BestieSpec) DeepCopyInto(out *BestieSpec)

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

type BestieStatus

type BestieStatus struct {

	// List of pods, their status and the image they use
	PodStatus []string `json:"podstatus,omitempty"`

	// Current version deployed
	AppVersion string `json:"appversion,omitempty"`

	// The operators status conditions
	// +optional
	// +listType=map
	// +listMapKey=type
	// +operator-sdk:csv:customresourcedefinitions:type=status,xDescriptors={"urn:alm:descriptor:io.kubernetes.conditions"}
	Conditions []metav1.Condition `json:"conditions"`
}

BestieStatus defines the observed state of Bestie.

func (*BestieStatus) DeepCopy

func (in *BestieStatus) DeepCopy() *BestieStatus

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

func (*BestieStatus) DeepCopyInto

func (in *BestieStatus) DeepCopyInto(out *BestieStatus)

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