Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move sleep mode to experimental #2340

Merged
merged 1 commit into from
Dec 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions chart/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
6 changes: 3 additions & 3 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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) {
Expand Down
Loading