Skip to content

Commit

Permalink
feat: move auto wake config and rename to be consistent with autoSleep
Browse files Browse the repository at this point in the history
  • Loading branch information
zerbitx committed Feb 27, 2025
1 parent 9ddd223 commit bd72f5d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
8 changes: 4 additions & 4 deletions chart/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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"
Expand Down
5 changes: 2 additions & 3 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"`
}
Expand Down

0 comments on commit bd72f5d

Please sign in to comment.