-
Notifications
You must be signed in to change notification settings - Fork 585
Add api types for console extension resources and console server config #318
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
Add api types for console extension resources and console server config #318
Conversation
e271ded to
86e470e
Compare
1316ca1 to
ceac0d6
Compare
8128f0b to
769530b
Compare
isn't that also going to have ripple effects on other code? the CRD and the go struct need to be in sync, whatever you do. |
|
It should be pretty straightforward to remove Is there a reason to keep it? I wouldn't expect any of these resources to ever have a |
// With spec
//////////////////////
apiVersion: console.openshift.io/v1
kind: ConsoleCLIDownload
metadata:
creationTimestamp: '2019-05-22T18:59:36Z'
generation: 1
name: example
resourceVersion: '611639'
selfLink: /apis/console.openshift.io/v1/consoleclidownloads/example
uid: be9a861f-7cc3-11e9-8b51-02b1a6acaf5e
spec:
description: foo bar baz
displayName: Foo
link:
href: 'https://www.redhat.com'
text: Foo bar
// With no spec
//////////////////////
apiVersion: console.openshift.io/v1
kind: ConsoleCLIDownload
metadata:
creationTimestamp: '2019-05-22T18:59:36Z'
generation: 1
name: example
resourceVersion: '611639'
selfLink: /apis/console.openshift.io/v1/consoleclidownloads/example
uid: be9a861f-7cc3-11e9-8b51-02b1a6acaf5e
description: foo bar baz
displayName: Foo
link:
href: 'https://www.redhat.com'
text: Foo barI don't know that it hurts us really to keep
What is a little more painful about dropping apiVersion: console.openshift.io/v1
description: foo bar baz
displayName: Foo
kind: ConsoleCLIDownload
link:
href: 'https://www.redhat.com'
text: Foo bar
metadata:
creationTimestamp: '2019-05-22T18:59:36Z'
generation: 1
name: example
resourceVersion: '611639'
selfLink: /apis/console.openshift.io/v1/consoleclidownloads/example
uid: be9a861f-7cc3-11e9-8b51-02b1a6acaf5eOr apiVersion: console.openshift.io/v1
href: 'http://www.redhat.com'
kind: ConsoleLink
location: helpMenu
metadata:
creationTimestamp: '2019-05-23T17:29:29Z'
generation: 1
name: example
resourceVersion: '60295'
selfLink: /apis/console.openshift.io/v1/consolelinks/example
uid: 521f3b4c-7d80-11e9-abc5-067bd6cb3f50
text: My linkI personally find that rather annoying/messy, but I realize its a cosmetic issue, not a functional issue. apiVersion: console.openshift.io/v1
kind: ConsoleLink
metadata:
creationTimestamp: '2019-05-23T17:29:29Z'
generation: 1
name: example
resourceVersion: '60295'
selfLink: /apis/console.openshift.io/v1/consolelinks/example
uid: 521f3b4c-7d80-11e9-abc5-067bd6cb3f50
spec:
text: My link
href: 'https://www.redhat.com'
location: helpMenu |
769530b to
1792e68
Compare
691badd to
8369852
Compare
|
verify success, better. |
d8c0f57 to
d1686d3
Compare
d1686d3 to
a11bac5
Compare
|
lgtm, but verify failed |
a11bac5 to
0eb8c08
Compare
|
|
|
passed. |
spadgett
left a comment
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.
/lgtm
|
@bparees ptal, will need your approval |
bparees
left a comment
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.
couple of doc nits
|
/lgtm cancel @spadgett you can reassert your lgtm when the godoc items are addressed. |
|
/hold |
|
/approve (prow or github may be having issues....) |
Extensions: - console links - console cli downloads - console notification banners
0eb8c08 to
9eab42c
Compare
|
@spadgett updates made. |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: benjaminapetersen, bparees, spadgett The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Related to:
RBAC considerations
console linksvia something like'api/kubernetes/apis/console.openshift.io/v1/consolelinks'for all users, this will require RBAC forsystem:authenticatedfor this resource. see hereconsole cli downloadsvia API for all authenticated users, this will require RBAC forsystem:authenticatedon this resource. see hereconsole notification bannervia API for all authenticated users, this will require RBAC forsystem:authenticatedon this resource. see here@enj has made the observation that this is config, and as such, only the operator as a privileged component should request it & then pass it to the console pod. The objection to this approach is that every time one of these resources is created, the console pod will need to be restarted. This is problematic as the console in the browser will not be notified & thus the data will not be passed to the user in a timely fashion.
ConsoleServerConfig
In addition, the console server config has previously been approved as an API, but it exists in the console repo. It should likely be migrated & helps clarify the folder structure.
Decide if this is how we want to structure this kind of config (new folders underTop level/config) as these are not top-level config. Establishes precedence./consoledirectory+optional,+required, etc)banners, ought to be instead handled within the console config (or console operator config).fyi @spadgett @rhamilto