v1

package
v0.0.0-...-a658bb4 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

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

type FrontendSpec struct {
	// +optional
	Resources corev1.ResourceRequirements `json:"resources"`

	// +optional
	//+kubebuilder:default=8080
	//+kubebuilder:validation:Minimum=0
	ServingPort int32 `json:"servingPort,omitempty"`

	// +optional
	//+kubebuilder:default=1
	//+kubebuilder:validation:Minimum=0
	Replicas *int32 `json:"replicas,omitempty"`
}

func (*FrontendSpec) DeepCopy

func (in *FrontendSpec) DeepCopy() *FrontendSpec

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

func (*FrontendSpec) DeepCopyInto

func (in *FrontendSpec) DeepCopyInto(out *FrontendSpec)

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

type Guestbook

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

	Spec   GuestbookSpec   `json:"spec,omitempty"`
	Status GuestbookStatus `json:"status,omitempty"`
}

Guestbook is the Schema for the guestbooks API

func (*Guestbook) DeepCopy

func (in *Guestbook) DeepCopy() *Guestbook

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

func (*Guestbook) DeepCopyInto

func (in *Guestbook) DeepCopyInto(out *Guestbook)

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

func (*Guestbook) DeepCopyObject

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

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

type GuestbookList

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

GuestbookList contains a list of Guestbook

func (*GuestbookList) DeepCopy

func (in *GuestbookList) DeepCopy() *GuestbookList

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

func (*GuestbookList) DeepCopyInto

func (in *GuestbookList) DeepCopyInto(out *GuestbookList)

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

func (*GuestbookList) DeepCopyObject

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

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

type GuestbookSpec

type GuestbookSpec struct {
	Frontend  FrontendSpec `json:"frontend"`
	RedisName string       `json:"redisName,omitempty"`
}

GuestbookSpec defines the desired state of Guestbook

func (*GuestbookSpec) DeepCopy

func (in *GuestbookSpec) DeepCopy() *GuestbookSpec

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

func (*GuestbookSpec) DeepCopyInto

func (in *GuestbookSpec) DeepCopyInto(out *GuestbookSpec)

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

type GuestbookStatus

type GuestbookStatus struct {
	URL string `json:"url,omitempty"`
}

GuestbookStatus defines the observed state of Guestbook

func (*GuestbookStatus) DeepCopy

func (in *GuestbookStatus) DeepCopy() *GuestbookStatus

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

func (*GuestbookStatus) DeepCopyInto

func (in *GuestbookStatus) DeepCopyInto(out *GuestbookStatus)

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

type Redis

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

	Spec   RedisSpec   `json:"spec,omitempty"`
	Status RedisStatus `json:"status,omitempty"`
}

Redis is the Schema for the redis API

func (*Redis) DeepCopy

func (in *Redis) DeepCopy() *Redis

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

func (*Redis) DeepCopyInto

func (in *Redis) DeepCopyInto(out *Redis)

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

func (*Redis) DeepCopyObject

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

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

type RedisList

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

RedisList contains a list of Redis

func (*RedisList) DeepCopy

func (in *RedisList) DeepCopy() *RedisList

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

func (*RedisList) DeepCopyInto

func (in *RedisList) DeepCopyInto(out *RedisList)

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

func (*RedisList) DeepCopyObject

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

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

type RedisSpec

type RedisSpec struct {

	// The number of follower instances to run.
	FollowerReplicas *int32 `json:"followerReplicas,omitempty"`
}

RedisSpec defines the desired state of Redis

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 RedisStatus

type RedisStatus struct {
	// The name of the service created for the Redis leader.
	LeaderService string `json:"leaderService"`
	// The name of the service created for the Redis followers.
	FollowerService string `json:"followerService"`
}

RedisStatus defines the observed state of Redis

func (*RedisStatus) DeepCopy

func (in *RedisStatus) DeepCopy() *RedisStatus

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

func (*RedisStatus) DeepCopyInto

func (in *RedisStatus) DeepCopyInto(out *RedisStatus)

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