API Reference
Packages:
kube-green.com/v1alpha1
Package v1alpha1 contains API Schema definitions for the v1alpha1 API group
Resource Types:
SleepInfo
SleepInfo is the Schema for the sleepinfos API
| Field | Description | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| | ||||||||||||||||||||
| SleepInfo | ||||||||||||||||||||
metadataKubernetes meta/v1.ObjectMeta | Refer to the Kubernetes API documentation for the fields of the
| ||||||||||||||||||||
specSleepInfoSpec |
| ||||||||||||||||||||
statusSleepInfoStatus |
FilterRef
(Appears on: SleepInfoSpec)
Define a resource to filter, used to include or exclude resources from the sleep.
| Field | Description |
|---|---|
apiVersionstring | (Optional) ApiVersion of the kubernetes resources. |
kindstring | (Optional) Kind of the kubernetes resources of the specific version. |
namestring | (Optional) Name which identify the kubernetes resource. |
matchLabelsmap[string]string | (Optional) MatchLabels which identify the kubernetes resource by labels |
Patch
(Appears on: SleepInfoSpec)
| Field | Description |
|---|---|
targetPatchTarget | Target is the target resource to patch. |
patchstring | Patch is the json6902 patch to apply to the target resource. |
PatchTarget
(Appears on: Patch)
| Field | Description |
|---|---|
groupstring | Group of the Kubernetes resources. |
kindstring | Kind of the Kubernetes resources. |
SleepInfoSpec
(Appears on: SleepInfo)
SleepInfoSpec defines the desired state of SleepInfo
| Field | Description |
|---|---|
weekdaysstring | Weekdays are in cron notation. For example, to configure a schedule from monday to friday, set it to “1-5” |
sleepAtstring | Hours:Minutes Accept cron schedule for both hour and minute. For example, :/2 is set to configure a run every even minute. |
wakeUpAtstring | (Optional) Hours:Minutes Accept cron schedule for both hour and minute. For example, :/2 is set to configure a run every even minute. It is not required. |
timeZonestring | (Optional) Time zone to set the schedule, in IANA time zone identifier. It is not required, default to UTC. For example, for the Italy time zone set Europe/Rome. |
excludeRef[]FilterRef | (Optional) ExcludeRef define the resource to exclude from the sleep. Exclusion rules are evaluated in AND condition. |
includeRef[]FilterRef | (Optional) IncludeRef define the resource to include from the sleep. Inclusion rules are evaluated in AND condition. |
suspendCronJobsbool | (Optional) If SuspendCronjobs is set to true, on sleep the cronjobs of the namespace will be suspended. |
suspendDeploymentsbool | (Optional) If SuspendDeployments is set to false, on sleep the deployment of the namespace will not be suspended. By default Deployment will be suspended. |
suspendStatefulSetsbool | (Optional) If SuspendStatefulSets is set to false, on sleep the statefulset of the namespace will not be suspended. By default StatefulSet will be suspended. |
patches[]Patch | (Optional) Patches is a list of json 6902 patches to apply to the target resources. |
SleepInfoStatus
(Appears on: SleepInfo)
SleepInfoStatus defines the observed state of SleepInfo
| Field | Description |
|---|---|
lastScheduleTimeKubernetes meta/v1.Time | (Optional) Information when was the last time the run was successfully scheduled. |
operationstring | (Optional) The operation type handled in last schedule. SLEEP or WAKE_UP are the possibilities |
Generated with gen-crd-api-reference-docs
on git commit 98b73de.