Documentation ¶
Overview ¶
+groupName=book.com +kubebuilder:object:generator=true
Index ¶
Constants ¶
This section is empty.
Variables ¶
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 )
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BookAPI.
func (*BookAPI) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BookAPI) DeepCopyObject ¶
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.