Documentation
¶
Overview ¶
Package v1 contains API Schema definitions for the nyallocator v1 API group. +kubebuilder:object:generate=true +groupName=nyallocator.cybozu.io
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects. GroupVersion = schema.GroupVersion{Group: "nyallocator.cybozu.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 NodeConfiguration ¶
type NodeConfiguration struct {
Metadata NodeConfigurationMetadata `json:"metadata,omitempty"`
Spec NodeConfigurationSpec `json:"spec,omitempty"`
}
func (*NodeConfiguration) DeepCopy ¶
func (in *NodeConfiguration) DeepCopy() *NodeConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeConfiguration.
func (*NodeConfiguration) DeepCopyInto ¶
func (in *NodeConfiguration) DeepCopyInto(out *NodeConfiguration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NodeConfigurationMetadata ¶
type NodeConfigurationMetadata struct {
Annotations map[string]string `json:"annotations,omitempty"`
Labels map[string]string `json:"labels,omitempty"`
}
func (*NodeConfigurationMetadata) DeepCopy ¶
func (in *NodeConfigurationMetadata) DeepCopy() *NodeConfigurationMetadata
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeConfigurationMetadata.
func (*NodeConfigurationMetadata) DeepCopyInto ¶
func (in *NodeConfigurationMetadata) DeepCopyInto(out *NodeConfigurationMetadata)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NodeConfigurationSpec ¶
func (*NodeConfigurationSpec) DeepCopy ¶
func (in *NodeConfigurationSpec) DeepCopy() *NodeConfigurationSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeConfigurationSpec.
func (*NodeConfigurationSpec) DeepCopyInto ¶
func (in *NodeConfigurationSpec) DeepCopyInto(out *NodeConfigurationSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NodeTemplate ¶
type NodeTemplate struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata"`
Spec NodeTemplateSpec `json:"spec"`
Status NodeTemplateStatus `json:"status,omitempty"`
}
+kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:resource:scope=Cluster +kubebuilder:printcolumn:name="current",type="integer",JSONPath=`.status.currentNodes`,description="Current Nodes" +kubebuilder:printcolumn:name="desired",type="integer",JSONPath=`.spec.nodes`,description="Desired Nodes" +kubebuilder:printcolumn:name="sufficient",type="string",JSONPath=`.status.conditions[?(@.type=="Sufficient")].status`,description="Sufficient Nodes" NodeTemplate is the Schema for the nodetemplates API.
func (*NodeTemplate) DeepCopy ¶
func (in *NodeTemplate) DeepCopy() *NodeTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeTemplate.
func (*NodeTemplate) DeepCopyInto ¶
func (in *NodeTemplate) DeepCopyInto(out *NodeTemplate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NodeTemplate) DeepCopyObject ¶
func (in *NodeTemplate) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NodeTemplateList ¶
type NodeTemplateList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []NodeTemplate `json:"items"`
}
func (*NodeTemplateList) DeepCopy ¶
func (in *NodeTemplateList) DeepCopy() *NodeTemplateList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeTemplateList.
func (*NodeTemplateList) DeepCopyInto ¶
func (in *NodeTemplateList) DeepCopyInto(out *NodeTemplateList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NodeTemplateList) DeepCopyObject ¶
func (in *NodeTemplateList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NodeTemplateSpec ¶
type NodeTemplateSpec struct {
// +kubebuilder:default: false
DryRun bool `json:"dryRun,omitempty"`
// +kubebuilder:default: 1
Priority int `json:"priority"`
Selector *metav1.LabelSelector `json:"selector"`
// +kubebuilder:validation:Minimum=1
Nodes int `json:"nodes"`
Template NodeConfiguration `json:"template,omitempty"`
}
func (*NodeTemplateSpec) DeepCopy ¶
func (in *NodeTemplateSpec) DeepCopy() *NodeTemplateSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeTemplateSpec.
func (*NodeTemplateSpec) DeepCopyInto ¶
func (in *NodeTemplateSpec) DeepCopyInto(out *NodeTemplateSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NodeTemplateStatus ¶
type NodeTemplateStatus struct {
Conditions []metav1.Condition `json:"conditions,omitempty"`
CurrentNodes int `json:"currentNodes"`
ReconcileInfo ReconcileInfo `json:"reconcileInfo"`
}
func (*NodeTemplateStatus) DeepCopy ¶
func (in *NodeTemplateStatus) DeepCopy() *NodeTemplateStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeTemplateStatus.
func (*NodeTemplateStatus) DeepCopyInto ¶
func (in *NodeTemplateStatus) DeepCopyInto(out *NodeTemplateStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ReconcileInfo ¶
type ReconcileInfo struct {
ObservedGeneration int64 `json:"observedGeneration,omitempty"`
}
func (*ReconcileInfo) DeepCopy ¶
func (in *ReconcileInfo) DeepCopy() *ReconcileInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReconcileInfo.
func (*ReconcileInfo) DeepCopyInto ¶
func (in *ReconcileInfo) DeepCopyInto(out *ReconcileInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.