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 ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Guestbook.
func (*Guestbook) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Guestbook) DeepCopyObject ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Redis.
func (*Redis) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Redis) DeepCopyObject ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisList.
func (*RedisList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RedisList) DeepCopyObject ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisSpec.
func (*RedisSpec) DeepCopyInto ¶
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.