Skip to content

Commit

Permalink
feat: move new sleep mode to top level of config
Browse files Browse the repository at this point in the history
  • Loading branch information
zerbitx committed Feb 27, 2025
1 parent 5d3e386 commit 9ddd223
Show file tree
Hide file tree
Showing 2 changed files with 7 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 @@ -1337,10 +1337,6 @@
"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"
},
"reuseNamespace": {
"type": "boolean",
"description": "ReuseNamespace allows reusing the same namespace to create multiple vClusters.\nThis flag is deprecated, as this scenario will be removed entirely in upcoming releases."
Expand Down Expand Up @@ -3842,6 +3838,10 @@
"$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,
Expand Down
6 changes: 3 additions & 3 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ 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
Expand Down Expand Up @@ -1973,9 +1976,6 @@ 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"`

// ReuseNamespace allows reusing the same namespace to create multiple vClusters.
// This flag is deprecated, as this scenario will be removed entirely in upcoming releases.
ReuseNamespace bool `json:"reuseNamespace,omitempty"`
Expand Down

0 comments on commit 9ddd223

Please sign in to comment.