-
Notifications
You must be signed in to change notification settings - Fork 542
Add ClusterResourceOverridesEnabled for console config #32
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
Conversation
webconsole/v1/types.go
Outdated
@@ -42,6 +42,10 @@ type ClusterInfo struct { | |||
// LogoutPublicURL is an optional, absolute URL to redirect web browsers to after logging out of the web | |||
// console. If not specified, the built-in logout page is shown. | |||
LogoutPublicURL string `json:"logoutPublicURL" protobuf:"bytes,5,opt,name=logoutPublicURL"` | |||
|
|||
// ClusterResourceOverridesEnabled indicates that the cluster is configured for overcommit and the web console | |||
// should hide request and limit fields that will be overridden in its editors |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we be more clear in this comment that we assume this means all cluster resource overrides are in use and all memory and cpu fields will be hidden except for the memory limit?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I'll update it with more detail
Updated |
PR with console changes: openshift/origin-web-console#2671 |
@deads2k any objections? |
Updated |
LGTM |
Thanks. Will merge on green. |
Automatic merge from submit-queue. Add clusterResourceOverridesEnabled flag to console config template See openshift/api#32 /assign @jwforres /cc @deads2k
Automatic merge from submit-queue. Add clusterResourceOverridesEnabled to console config Adds clusterResourceOverridesEnabled flag to console install. See openshift/api#32 See openshift/origin#18231 /assign @sdodson /cc @jwforres
validation: bundle CRDs are compared by definition key instead of name
validation: bundle CRDs are compared by definition key instead of name (openshift#32)
We plan to have one flag in the console config that says whether ClusterResourceOverrides are enabled. The console will hide the CPU request, CPU limit, and memory request fields if the flag is true.
Regardless of whether the flag is set, we'll show if a value was changed using the annotation from openshift/origin#18007. If a deployment has pods with changed value, we can also show that on the deployment page.
/assign @deads2k
/cc @jwforres @smarterclayton