Skip to content

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

Merged
merged 2 commits into from
Jan 19, 2018

Conversation

spadgett
Copy link
Member

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

@openshift-ci-robot openshift-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jan 16, 2018
@@ -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
Copy link
Member

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?

Copy link
Member Author

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

@spadgett
Copy link
Member Author

Updated

@spadgett
Copy link
Member Author

PR with console changes: openshift/origin-web-console#2671

@spadgett
Copy link
Member Author

@deads2k any objections?

@spadgett
Copy link
Member Author

Updated

@jwforres
Copy link
Member

LGTM

@deads2k
Copy link
Contributor

deads2k commented Jan 19, 2018

Thanks. Will merge on green.

@deads2k deads2k merged commit 0d921e3 into openshift:master Jan 19, 2018
@spadgett spadgett deleted the cro branch January 19, 2018 20:00
openshift-merge-robot added a commit to openshift/origin that referenced this pull request Jan 23, 2018
Automatic merge from submit-queue.

Add clusterResourceOverridesEnabled flag to console config template

See openshift/api#32

/assign @jwforres 
/cc @deads2k
openshift-merge-robot added a commit to openshift/openshift-ansible that referenced this pull request Jan 24, 2018
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
openshift-cherrypick-robot pushed a commit to openshift-cherrypick-robot/api that referenced this pull request Feb 1, 2021
validation: bundle CRDs are compared by definition key instead of name
openshift-cherrypick-robot pushed a commit to openshift-cherrypick-robot/api that referenced this pull request Feb 1, 2021
validation: bundle CRDs are compared by definition key instead of name (openshift#32)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants