From c1ba149f8b6cc8501454830716d1e032c296b089 Mon Sep 17 00:00:00 2001 From: RyanSwanson Date: Tue, 17 Dec 2024 15:48:42 -0700 Subject: [PATCH] move sleep mode to experimental (cherry picked from commit 7b17dc7abfcecca06cb997e0906c7c13ab01944a) --- chart/values.schema.json | 8 ++++---- config/config.go | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/chart/values.schema.json b/chart/values.schema.json index bcb836cd1..10e49e539 100755 --- a/chart/values.schema.json +++ b/chart/values.schema.json @@ -1315,6 +1315,10 @@ "type": "array", "description": "DenyProxyRequests denies certain requests in the vCluster proxy.", "pro": true + }, + "sleepMode": { + "$ref": "#/$defs/SleepMode", + "description": "SleepMode holds the native sleep mode configuration for Pro clusters" } }, "additionalProperties": false, @@ -3780,10 +3784,6 @@ "$ref": "#/$defs/Plugin" }, "description": "Plugin specifies which vCluster plugins to enable. Use \"plugins\" instead. Do not use this option anymore." - }, - "sleepMode": { - "$ref": "#/$defs/SleepMode", - "description": "SleepMode holds the native sleep mode configuration for Pro clusters" } }, "additionalProperties": false, diff --git a/config/config.go b/config/config.go index b5e5c2f86..b0013834a 100644 --- a/config/config.go +++ b/config/config.go @@ -76,9 +76,6 @@ type Config struct { // Plugin specifies which vCluster plugins to enable. Use "plugins" instead. Do not use this option anymore. Plugin map[string]Plugin `json:"plugin,omitempty"` - - // SleepMode holds the native sleep mode configuration for Pro clusters - SleepMode *SleepMode `json:"sleepMode,omitempty"` } // Integrations holds config for vCluster integrations with other operators or tools running on the host cluster @@ -1923,6 +1920,9 @@ type Experimental struct { // DenyProxyRequests denies certain requests in the vCluster proxy. DenyProxyRequests []DenyRule `json:"denyProxyRequests,omitempty" product:"pro"` + + // SleepMode holds the native sleep mode configuration for Pro clusters + SleepMode *SleepMode `json:"sleepMode,omitempty"` } func (e Experimental) JSONSchemaExtend(base *jsonschema.Schema) {