-
Notifications
You must be signed in to change notification settings - Fork 161
Add console extension manifests #229
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
openshift-merge-robot
merged 5 commits into
openshift:master
from
benjaminapetersen:extensions/manifests
Jun 24, 2019
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
5684396
Add manifest for ConsoleLink CRD
benjaminapetersen 01c468e
Add manifest for ConsoleCLIDownload CRD
benjaminapetersen fa61a9b
Add manifest for ConsoleNotification CRD
benjaminapetersen 6df3412
Add RBAC for console extensions
benjaminapetersen 260818b
Adjustments to custom resource manfiests
benjaminapetersen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,65 @@ | ||
| apiVersion: apiextensions.k8s.io/v1beta1 | ||
| kind: CustomResourceDefinition | ||
| metadata: | ||
| name: consoleclidownloads.console.openshift.io | ||
| annotations: | ||
| displayName: ConsoleCLIDownload | ||
| description: Extension for configuring openshift web console command line interface (CLI) downloads. | ||
| spec: | ||
| scope: Cluster | ||
| group: console.openshift.io | ||
| versions: | ||
| - name: v1 | ||
| served: true | ||
| storage: true | ||
| names: | ||
| plural: consoleclidownloads | ||
| singular: consoleclidownload | ||
| kind: ConsoleCLIDownload | ||
| listKind: ConsoleCLIDownloadList | ||
| additionalPrinterColumns: | ||
| - name: Display name | ||
| type: string | ||
| JSONPath: .spec.displayName | ||
| - name: Age | ||
| type: string | ||
| JSONPath: .metadata.creationTimestamp | ||
| - name: Description | ||
| type: string | ||
| JSONPath: .spec.description | ||
| subresources: | ||
| status: {} | ||
| validation: | ||
| openAPIV3Schema: | ||
| properties: | ||
| spec: | ||
| type: object | ||
| description: Represents console CLI download spec | ||
| required: | ||
| - displayName | ||
| - description | ||
| - links | ||
| properties: | ||
| displayName: | ||
| type: string | ||
| description: Display name of the CLI download | ||
| description: | ||
| type: string | ||
| description: Description of the CLI download (can include markdown) | ||
| links: | ||
| type: array | ||
| description: Objects that hold CLI download link details | ||
| nullable: true | ||
| items: | ||
| type: object | ||
| required: | ||
| - href | ||
| properties: | ||
| text: | ||
| type: string | ||
| description: Text of the link | ||
| href: | ||
| type: string | ||
| description: Absolute secure URL for the link (must use https) | ||
| pattern: '^https://([\w-]+.)+[\w-]+(/[\w- ./?%&=])?$' | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| apiVersion: apiextensions.k8s.io/v1beta1 | ||
| kind: CustomResourceDefinition | ||
| metadata: | ||
| name: consolelinks.console.openshift.io | ||
| annotations: | ||
| displayName: ConsoleLinks | ||
| description: Extension for customizing OpenShift web console links | ||
| spec: | ||
| scope: Cluster | ||
| group: console.openshift.io | ||
| versions: | ||
| - name: v1 | ||
| served: true | ||
| storage: true | ||
| names: | ||
| plural: consolelinks | ||
| singular: consolelink | ||
| kind: ConsoleLink | ||
| listKind: ConsoleLinkList | ||
| additionalPrinterColumns: | ||
| - name: Text | ||
| type: string | ||
| JSONPath: .spec.text | ||
| - name: URL | ||
|
benjaminapetersen marked this conversation as resolved.
|
||
| type: string | ||
| JSONPath: .spec.href | ||
| - name: Menu | ||
| type: string | ||
| JSONPath: .spec.menu | ||
| - name: Age | ||
| type: date | ||
| JSONPath: .metadata.creationTimestamp | ||
| subresources: | ||
| status: {} | ||
| validation: | ||
| openAPIV3Schema: | ||
| properties: | ||
| spec: | ||
| type: object | ||
| description: Represents console link customizations spec | ||
| required: | ||
| - text | ||
| - href | ||
| - location | ||
| properties: | ||
| text: | ||
| type: string | ||
| description: Text of the link | ||
| href: | ||
| type: string | ||
| description: Absolute secure URL for the link (must use https) | ||
| pattern: '^https://([\w-]+.)+[\w-]+(/[\w- ./?%&=])?$' | ||
| location: | ||
| type: string | ||
| description: Determines which dropdown menu the link is added to (HelpMenu, UserMenu) | ||
| pattern: '\bHelpMenu\b|\bUserMenu\b' | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,68 @@ | ||
| apiVersion: apiextensions.k8s.io/v1beta1 | ||
| kind: CustomResourceDefinition | ||
| metadata: | ||
| name: consolenotifications.console.openshift.io | ||
| annotations: | ||
| displayName: ConsoleNotification | ||
| description: Extension for configuring openshift web console notifications. | ||
| spec: | ||
| scope: Cluster | ||
| group: console.openshift.io | ||
| versions: | ||
| - name: v1 | ||
| served: true | ||
| storage: true | ||
| names: | ||
| plural: consolenotifications | ||
| singular: consolenotification | ||
| kind: ConsoleNotification | ||
| listKind: ConsoleNotificationList | ||
| additionalPrinterColumns: | ||
| - name: Text | ||
| type: string | ||
| JSONPath: .spec.text | ||
| - name: Location | ||
| type: string | ||
| JSONPath: .spec.location | ||
| - name: Age | ||
| type: date | ||
| JSONPath: .metadata.creationTimestamp | ||
| subresources: | ||
| status: {} | ||
| validation: | ||
| openAPIV3Schema: | ||
| properties: | ||
| spec: | ||
| type: object | ||
| description: Represents console notification spec | ||
| required: | ||
| - text | ||
| - location | ||
| properties: | ||
| text: | ||
| type: string | ||
| description: Text of the notification | ||
| location: | ||
| type: string | ||
| description: The location of the notification (BannerTop, BannerBottom, BannerTopBottom) | ||
| pattern: '^(BannerTop|BannerBottom|BannerTopBottom)$' | ||
| link: | ||
| type: object | ||
| description: Object that holds notification link details | ||
| required: | ||
| - href | ||
| - text | ||
| properties: | ||
| text: | ||
| type: string | ||
| description: Text of the link | ||
| href: | ||
| type: string | ||
| description: Absolute secure URL for the link (must use https) | ||
| pattern: '^https://([\w-]+.)+[\w-]+(/[\w- ./?%&=])?$' | ||
| backgroundColor: | ||
| type: string | ||
| description: The background color for the notification as CSS data type color | ||
| color: | ||
| type: string | ||
| description: The color of the text for the notification as CSS data type color |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| # any logged-in user authenticated through the | ||
| # console needs READONLY access to these resources | ||
| kind: ClusterRole | ||
| apiVersion: rbac.authorization.k8s.io/v1 | ||
| metadata: | ||
| name: console-extensions-reader | ||
| rules: | ||
| - apiGroups: | ||
| - console.openshift.io | ||
| resources: | ||
| - consolelinks | ||
| - consoleclidownloads | ||
| - consolenotifications | ||
| verbs: | ||
| - get | ||
| - list | ||
| - watch |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| kind: ClusterRoleBinding | ||
|
benjaminapetersen marked this conversation as resolved.
|
||
| apiVersion: rbac.authorization.k8s.io/v1 | ||
| metadata: | ||
| name: console-extensions-reader | ||
| roleRef: | ||
| kind: ClusterRole | ||
| name: console-extensions-reader | ||
| apiGroup: rbac.authorization.k8s.io | ||
| subjects: | ||
| - kind: Group | ||
| name: system:authenticated | ||
| apiGroup: rbac.authorization.k8s.io | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.