Documentation
¶
Overview ¶
Package v1beta1 contains API Schema definitions for the v1beta1 API group +kubebuilder:object:generate=true +groupName=core.wecraft.tn
Index ¶
- Variables
- type Holiday
- type IncludedObject
- type KronosApp
- func (in *KronosApp) DeepCopy() *KronosApp
- func (in *KronosApp) DeepCopyInto(out *KronosApp)
- func (in *KronosApp) DeepCopyObject() runtime.Object
- func (r *KronosApp) Default()
- func (k KronosApp) GetNewKronosAppStatus(status, reason bool, nextOperation time.Time, handledResources int) KronosAppStatus
- func (k KronosApp) SetNewKronosAppStatus(ctx context.Context, Client client.Client, newStatus KronosAppStatus) error
- func (r *KronosApp) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *KronosApp) ValidateCreate() (admission.Warnings, error)
- func (r *KronosApp) ValidateDelete() (admission.Warnings, error)
- func (r *KronosApp) ValidateUpdate(old runtime.Object) (admission.Warnings, error)
- type KronosAppList
- type KronosAppSpec
- type KronosAppStatus
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "core.wecraft.tn", 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 Holiday ¶
func (*Holiday) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Holiday.
func (*Holiday) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IncludedObject ¶
type IncludedObject struct { ApiVersion string `json:"apiVersion"` Kind string `json:"kind"` Namespace string `json:"namespace"` IncludeRef string `json:"includeRef"` ExcludeRef string `json:"excludeRef"` }
func (*IncludedObject) DeepCopy ¶
func (in *IncludedObject) DeepCopy() *IncludedObject
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IncludedObject.
func (*IncludedObject) DeepCopyInto ¶
func (in *IncludedObject) DeepCopyInto(out *IncludedObject)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KronosApp ¶
type KronosApp struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec KronosAppSpec `json:"spec,omitempty"` Status KronosAppStatus `json:"status,omitempty"` }
KronosApp is the Schema for the kronosapps API
func (*KronosApp) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KronosApp.
func (*KronosApp) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KronosApp) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*KronosApp) Default ¶ added in v0.4.0
func (r *KronosApp) Default()
Default implements webhook.Defaulter so a webhook will be registered for the type
func (KronosApp) GetNewKronosAppStatus ¶ added in v0.4.0
func (KronosApp) SetNewKronosAppStatus ¶ added in v0.4.0
func (*KronosApp) SetupWebhookWithManager ¶ added in v0.4.0
SetupWebhookWithManager will setup the manager to manage the webhooks
func (*KronosApp) ValidateCreate ¶ added in v0.4.0
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*KronosApp) ValidateDelete ¶ added in v0.4.0
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
type KronosAppList ¶
type KronosAppList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []KronosApp `json:"items"` }
KronosAppList contains a list of KronosApp
func (*KronosAppList) DeepCopy ¶
func (in *KronosAppList) DeepCopy() *KronosAppList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KronosAppList.
func (*KronosAppList) DeepCopyInto ¶
func (in *KronosAppList) DeepCopyInto(out *KronosAppList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KronosAppList) DeepCopyObject ¶
func (in *KronosAppList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type KronosAppSpec ¶
type KronosAppSpec struct { StartSleep string `json:"startSleep"` EndSleep string `json:"endSleep"` WeekDays string `json:"weekdays"` TimeZone string `json:"timezone,omitempty"` Holidays []Holiday `json:"holidays,omitempty"` IncludedObjects []IncludedObject `json:"includedObjects"` ForceWake bool `json:"forceWake,omitempty"` ForceSleep bool `json:"forceSleep,omitempty"` }
KronosAppSpec defines the desired state of KronosApp
func (*KronosAppSpec) DeepCopy ¶
func (in *KronosAppSpec) DeepCopy() *KronosAppSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KronosAppSpec.
func (*KronosAppSpec) DeepCopyInto ¶
func (in *KronosAppSpec) DeepCopyInto(out *KronosAppSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KronosAppStatus ¶
type KronosAppStatus struct { Status string `json:"status"` Reason string `json:"reason"` HandledResources string `json:"handledResources"` NextOperation string `json:"nextOperation"` CreatedSecrets []string `json:"secretCreated,omitempty"` }
KronosAppStatus defines the observed state of KronosApp
func (*KronosAppStatus) DeepCopy ¶
func (in *KronosAppStatus) DeepCopy() *KronosAppStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KronosAppStatus.
func (*KronosAppStatus) DeepCopyInto ¶
func (in *KronosAppStatus) DeepCopyInto(out *KronosAppStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.