v1alpha1

package
v0.0.0-...-959f034 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

+groupName=book.com +kubebuilder:object:generator=true

Index

Constants

This section is empty.

Variables

View Source
var (
	// TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api.
	// localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes.
	SchemeBuilder runtime.SchemeBuilder

	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: "book.com", Version: "v1alpha1"}

Functions

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type BookAPI

type BookAPI struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec BookAPISpec `json:"spec"`
	// +optional
	Status BookAPIStatus `json:"status,omitempty"`
}

BookAPI is a top-level type. A client is created for it.

func (*BookAPI) DeepCopy

func (in *BookAPI) DeepCopy() *BookAPI

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

func (*BookAPI) DeepCopyInto

func (in *BookAPI) DeepCopyInto(out *BookAPI)

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

func (*BookAPI) DeepCopyObject

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

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

type BookAPIList

type BookAPIList struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ListMeta `json:"metadata,omitempty"`

	Items []BookAPI `json:"items"`
}

BookAPIList is a top-level list type. The client methods for lists are automatically created. You are not supposed to create a separated client for this one.

func (*BookAPIList) DeepCopy

func (in *BookAPIList) DeepCopy() *BookAPIList

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

func (*BookAPIList) DeepCopyInto

func (in *BookAPIList) DeepCopyInto(out *BookAPIList)

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

func (*BookAPIList) DeepCopyObject

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

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

type BookAPISpec

type BookAPISpec struct {
	// +kubebuilder:default=1
	// +kubebuilder:validation:Minimum=1
	// +kubebuilder:validation:Maximum=5
	Replica *int64 `json:"replica"`
	Image   string `json:"image"`

	//+optional
	Port int64 `json:"port,omitempty"`
	//+optional
	Username string `json:"username,omitempty"`
	//+optional
	Password string `json:"password,omitempty"`
	// +optional
	ServiceName string `json:"serviceName"`

	// +kubebuilder:default=ClusterIP
	ServiceType ServiceType `json:"serviceType"`
	NodePort    int32       `json:"nodePort,omitempty"`
}

func (*BookAPISpec) DeepCopy

func (in *BookAPISpec) DeepCopy() *BookAPISpec

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

func (*BookAPISpec) DeepCopyInto

func (in *BookAPISpec) DeepCopyInto(out *BookAPISpec)

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

type BookAPIStatus

type BookAPIStatus struct {
	Phase        string `json:"phase,omitempty"`
	ReplicaCount int64  `json:"replica_count,omitempty"`
}

func (*BookAPIStatus) DeepCopy

func (in *BookAPIStatus) DeepCopy() *BookAPIStatus

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

func (*BookAPIStatus) DeepCopyInto

func (in *BookAPIStatus) DeepCopyInto(out *BookAPIStatus)

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

type ServiceType

type ServiceType string

+kubebuilder:validation:Enum=ClusterIP;NodePort

Jump to

Keyboard shortcuts

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