Skip to content

Commit 0d921e3

Browse files
authored
Merge pull request #32 from spadgett/cro
Add ClusterResourceOverridesEnabled for console config
2 parents 3477075 + 3155368 commit 0d921e3

File tree

4 files changed

+109
-65
lines changed

4 files changed

+109
-65
lines changed

webconsole/v1/generated.pb.go

Lines changed: 97 additions & 64 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webconsole/v1/generated.proto

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webconsole/v1/types.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ type FeaturesConfiguration struct {
4949
// InactivityTimeoutMinutes is the number of minutes of inactivity before you are automatically logged out of
5050
// the web console (optional). If set to 0, inactivity timeout is disabled.
5151
InactivityTimeoutMinutes int64 `json:"inactivityTimeoutMinutes" protobuf:"varint,1,opt,name=inactivityTimeoutMinutes"`
52+
53+
// ClusterResourceOverridesEnabled indicates that the cluster is configured for overcommit. When set to
54+
// true, the web console will hide the CPU request, CPU limit, and memory request fields in its editors
55+
// and skip validation on those fields. The memory limit field will still be displayed.
56+
ClusterResourceOverridesEnabled bool `json:"clusterResourceOverridesEnabled" protobuf:"varint,2,opt,name=clusterResourceOverridesEnabled"`
5257
}
5358

5459
// ExtensionsConfiguration holds custom script, stylesheets, and properties used for web console customization

webconsole/v1/types_swagger_doc_generated.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ func (ExtensionsConfiguration) SwaggerDoc() map[string]string {
4747

4848
var map_FeaturesConfiguration = map[string]string{
4949
"": "FeaturesConfiguration defines various feature gates for the web console",
50-
"inactivityTimeoutMinutes": "InactivityTimeoutMinutes is the number of minutes of inactivity before you are automatically logged out of the web console (optional). If set to 0, inactivity timeout is disabled.",
50+
"inactivityTimeoutMinutes": "InactivityTimeoutMinutes is the number of minutes of inactivity before you are automatically logged out of the web console (optional). If set to 0, inactivity timeout is disabled.",
51+
"clusterResourceOverridesEnabled": "ClusterResourceOverridesEnabled indicates that the cluster is configured for overcommit. When set to true, the web console will hide the CPU request, CPU limit, and memory request fields in its editors and skip validation on those fields. The memory limit field will still be displayed.",
5152
}
5253

5354
func (FeaturesConfiguration) SwaggerDoc() map[string]string {

0 commit comments

Comments
 (0)