Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the chrono v1alpha1 API group +kubebuilder:object:generate=true +groupName=chrono.chrono.local
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "chrono.chrono.local", Version: "v1alpha1"} // 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 Chrono ¶
type Chrono struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ChronoSpec `json:"spec,omitempty"`
Status ChronoStatus `json:"status,omitempty"`
}
Chrono is the Schema for the chronoes API
func (*Chrono) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Chrono.
func (*Chrono) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Chrono) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ChronoList ¶
type ChronoList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Chrono `json:"items"`
}
ChronoList contains a list of Chrono
func (*ChronoList) DeepCopy ¶
func (in *ChronoList) DeepCopy() *ChronoList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ChronoList.
func (*ChronoList) DeepCopyInto ¶
func (in *ChronoList) DeepCopyInto(out *ChronoList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ChronoList) DeepCopyObject ¶
func (in *ChronoList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ChronoSpec ¶
type ChronoSpec struct {
// Foo is an example field of Chrono. Edit chrono_types.go to remove/update
Foo string `json:"foo,omitempty"`
Schedule string `json:"schedule,omitempty"`
PodTemplate PodTemplate `json:"podTemplate,omitempty"`
}
ChronoSpec defines the desired state of Chrono
func (*ChronoSpec) DeepCopy ¶
func (in *ChronoSpec) DeepCopy() *ChronoSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ChronoSpec.
func (*ChronoSpec) DeepCopyInto ¶
func (in *ChronoSpec) DeepCopyInto(out *ChronoSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ChronoStatus ¶
type ChronoStatus struct {
}
ChronoStatus defines the observed state of Chrono
func (*ChronoStatus) DeepCopy ¶
func (in *ChronoStatus) DeepCopy() *ChronoStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ChronoStatus.
func (*ChronoStatus) DeepCopyInto ¶
func (in *ChronoStatus) DeepCopyInto(out *ChronoStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Container ¶
type Container struct {
Name string `json:"name,omitempty"`
Image string `json:"image,omitempty"`
ImagePullPolicy string `json:"imagePullPolicy,omitempty"`
Command []string `json:"command,omitempty"`
}
Container defines the container specification
type PodSpec ¶
type PodSpec struct {
Template PodTemplateSpec `json:"template,omitempty"`
RestartPolicy string `json:"restartPolicy,omitempty"`
}
PodSpec defines the pod specification for Chrono
type PodSpecSpec ¶
type PodSpecSpec struct {
Containers []Container `json:"containers,omitempty"`
}
PodSpecSpec defines the specification for the pod template
type PodTemplate ¶
type PodTemplate struct {
Spec PodSpec `json:"spec,omitempty"`
}
PodTemplate defines the pod template specification for Chrono
type PodTemplateSpec ¶
type PodTemplateSpec struct {
Spec PodSpecSpec `json:"spec,omitempty"`
}
PodTemplateSpec defines the template for the pod