-
Notifications
You must be signed in to change notification settings - Fork 516
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
Update WebConsoleConfiguration #31
Conversation
I have not added config for ClusterResourceOverrides yet |
@spadgett something is red. For ease of review can you split the manual changes from the generated ones? |
webconsole/v1/types.go
Outdated
|
||
// LogoutURL 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. | ||
LogoutURL string `json:"logoutURL" protobuf:"bytes,3,opt,name=logoutURL"` | ||
LogoutURL string `json:"logoutURL" protobuf:"bytes,2,opt,name=logoutURL"` |
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.
This and the inactivity look related to "authentication"
webconsole/v1/types.go
Outdated
|
||
// ClusterConfiguration holds information the web console needs to talk to the cluster such as master public URL | ||
// and metrics public URL. | ||
ClusterConfiguration []ClusterConfiguration `json:"clusterConfiguration" protobuf:"bytes,4,rep,name=clusterConfiguration"` |
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.
I thought the console only handled one cluster.
webconsole/v1/types.go
Outdated
// PublicURL is where you can find the asset server (TODO do we really need this?) | ||
PublicURL string `json:"publicURL" protobuf:"bytes,2,opt,name=publicURL"` | ||
// PublicURL is where you can find the web console server (TODO do we really need this?) | ||
PublicURL string `json:"publicURL" protobuf:"bytes,1,opt,name=publicURL"` |
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.
under ClusterConfiguration?
webconsole/v1/types.go
Outdated
|
||
// ClusterConfiguration holds information the web console needs to talk to the cluster such as master public URL and | ||
// metrics public URL. | ||
type ClusterConfiguration struct { |
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.
You're envisioning CRO under this?
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.
Yes
webconsole/v1/types.go
Outdated
type ExtensionsConfiguration struct { | ||
// ExtensionScriptURLs are URLs to load as scripts when the Web Console loads. The URLs must be accessible from | ||
// the browser. | ||
ExtensionScriptURLs []string `json:"extensionScriptURLs" protobuf:"bytes,1,rep,name=extensionScriptURLs"` |
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.
Interesting. No need for a map anymore?
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.
There's still extension properties, but the old extensions
stanza from asset config is no longer supported
webconsole/v1/types.go
Outdated
|
||
// ServingInfo is the HTTP serving information for these assets | ||
ServingInfo HTTPServingInfo `json:"servingInfo" protobuf:"bytes,5,opt,name=servingInfo"` |
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.
nit: top of struct.
I need help fixing the travis error. |
Once we get hte types pinned down, I'll pull it and generate |
acdd6cc
to
b2a4397
Compare
/hold |
webconsole/v1/types.go
Outdated
// metrics public URL | ||
type ClusterInfo struct { | ||
// MasterPublicURL is how the web console can access the OpenShift v1 server | ||
MasterPublicURL string `j4on:"masterPublicURL" protobuf:"bytes,1,opt,name=masterPublicURL"` |
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.
j4on?
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.
j4on?
@sttts is there a linter of a test we have that would catch stuff like this?
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.
j4on is valid tag name, isn't it?
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.
j4on is valid tag name, isn't it?
Valid tag name, but there should be a json tag for every external field that doesn't explicitly opt out.
webconsole/v1/types.go
Outdated
ExtensionScripts []string `json:"extensionScripts" protobuf:"bytes,7,rep,name=extensionScripts"` | ||
// LogoutURL 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. | ||
LogoutURL string `json:"logoutURL" protobuf:"bytes,2,opt,name=logoutURL"` |
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.
LogoutPublicURL
?
42e798d
to
dc349a4
Compare
Updated |
/hold cancel |
/hold some debate still on the CRO flag |
dc349a4
to
480a6b8
Compare
/hold cancel @jwforres discussed more, and we think this is good for now. We can always revisit the CRO flags later before release since they have no install or cluster up impact. |
webconsole/v1/types.go
Outdated
Extensions []AssetExtensionsConfig `json:"extensions" protobuf:"bytes,10,rep,name=extensions"` | ||
// 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 | ||
ClusterResourceOverridesEnabled bool `json:"clusterResourceOverridesEnabled" protobuf:"varint,6,opt,name=clusterResourceOverridesEnabled"` |
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.
You don't need specific values?
/lgtm |
* Add new stanza for cluster config like master and metrics URLs * Add new stanza for extensions config * Remove obsolete extension properties * Rename script and stylesheet properties since they're now URLs * Add inactivityTimeoutMinutes option
480a6b8
to
9a402b6
Compare
Removed the CRO flag until we know for sure what we want. |
Automatic merge from submit-queue. Update cluster up for console config API changes Adopt API changes from openshift/api#31 For now, both the new and old config need to be written to avoid breaking cluster up until origin-web-console-server is updated. /assign @deads2k @jwforres FYI
Update OLM to use UID for OG Labels
/assign @deads2k
/cc @liggitt @jwforres