v1

package
v0.0.0-...-675700b Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package v1 contains API Schema definitions for the bytebase v2 API group +kubebuilder:object:generate=true +groupName=bytebase.db.sealos.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "bytebase.db.sealos.io", 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 Bytebase

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

	Spec   BytebaseSpec   `json:"spec,omitempty"`
	Status BytebaseStatus `json:"status,omitempty"`
}

Bytebase is the Schema for the bytebases API

func (*Bytebase) DeepCopy

func (in *Bytebase) DeepCopy() *Bytebase

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

func (*Bytebase) DeepCopyInto

func (in *Bytebase) DeepCopyInto(out *Bytebase)

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

func (*Bytebase) DeepCopyObject

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

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

type BytebaseList

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

BytebaseList contains a list of Bytebase

func (*BytebaseList) DeepCopy

func (in *BytebaseList) DeepCopy() *BytebaseList

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

func (*BytebaseList) DeepCopyInto

func (in *BytebaseList) DeepCopyInto(out *BytebaseList)

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

func (*BytebaseList) DeepCopyObject

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

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

type BytebaseSpec

type BytebaseSpec struct {
	// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	// +kubebuilder:validation:Required
	Image string `json:"image"`
	// +kubebuilder:validation:Required
	Replicas *int32 `json:"replicas"`
	// +kubebuilder:validation:Required
	Keepalived string `json:"keepalived"`
	// +kubebuilder:validation:Optional
	// +kubebuilder:default=nginx
	IngressType IngressType `json:"ingressType"`
	// +kubebuilder:validation:Required
	// +kubebuilder:default=8080
	Port intstr.IntOrString `json:"port"`
}

BytebaseSpec defines the desired state of Bytebase

func (*BytebaseSpec) DeepCopy

func (in *BytebaseSpec) DeepCopy() *BytebaseSpec

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

func (*BytebaseSpec) DeepCopyInto

func (in *BytebaseSpec) DeepCopyInto(out *BytebaseSpec)

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

type BytebaseStatus

type BytebaseStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	AvailableReplicas int32  `json:"availableReplicas"`
	Domain            string `json:"domain"`

	// +kubebuilder:validation:Optional
	LoginCookie api.LoginCookie `json:"loginCookie"`
	// +kubebuilder:validation:Optional
	RootPassword string `json:"rootPassword"`
}

BytebaseStatus defines the observed state of Bytebase

func (*BytebaseStatus) DeepCopy

func (in *BytebaseStatus) DeepCopy() *BytebaseStatus

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

func (*BytebaseStatus) DeepCopyInto

func (in *BytebaseStatus) DeepCopyInto(out *BytebaseStatus)

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

type IngressType

type IngressType string

+kubebuilder:validation:Enum=nginx;

const (
	Nginx IngressType = "nginx"
)

Jump to

Keyboard shortcuts

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