From bd72f5dff731692b9409be4e176bec948073f6d1 Mon Sep 17 00:00:00 2001 From: RyanSwanson Date: Thu, 27 Feb 2025 14:41:01 -0700 Subject: [PATCH] feat: move auto wake config and rename to be consistent with autoSleep --- chart/values.schema.json | 8 ++++---- config/config.go | 5 ++--- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/chart/values.schema.json b/chart/values.schema.json index dc8ee22a3..74d5e0b06 100755 --- a/chart/values.schema.json +++ b/chart/values.schema.json @@ -3049,6 +3049,10 @@ "autoSleep": { "$ref": "#/$defs/SleepModeAutoSleep", "description": "AutoSleep holds autoSleep details" + }, + "autoWakeup": { + "$ref": "#/$defs/AutoWakeup", + "description": "AutoWakeup holds configuration for waking the vCluster on a schedule rather than waiting for some activity." } }, "additionalProperties": false, @@ -3065,10 +3069,6 @@ "type": "string", "description": "Schedule represents a cron schedule for when to sleep workloads" }, - "wakeup": { - "$ref": "#/$defs/AutoWakeup", - "description": "Wakeup holds configuration for waking the vCluster on a schedule rather than waiting for some activity." - }, "exclude": { "$ref": "#/$defs/AutoSleepExclusion", "description": "Exclude holds configuration for labels that, if present, will prevent a workload from going to sleep" diff --git a/config/config.go b/config/config.go index 057349892..1a3437169 100644 --- a/config/config.go +++ b/config/config.go @@ -2404,6 +2404,8 @@ type SleepMode struct { TimeZone string `json:"timeZone,omitempty"` // AutoSleep holds autoSleep details AutoSleep SleepModeAutoSleep `json:"autoSleep,omitempty"` + // AutoWakeup holds configuration for waking the vCluster on a schedule rather than waiting for some activity. + AutoWakeup AutoWakeup `json:"autoWakeup,omitempty"` } // SleepModeAutoSleep holds configuration for allowing a vCluster to sleep its workloads @@ -2415,9 +2417,6 @@ type SleepModeAutoSleep struct { // Schedule represents a cron schedule for when to sleep workloads Schedule string `json:"schedule,omitempty"` - // Wakeup holds configuration for waking the vCluster on a schedule rather than waiting for some activity. - Wakeup AutoWakeup `json:"wakeup,omitempty"` - // Exclude holds configuration for labels that, if present, will prevent a workload from going to sleep Exclude AutoSleepExclusion `json:"exclude,omitempty"` }