-
Notifications
You must be signed in to change notification settings - Fork 158
Add console extension manfiest for ConsoleExternalLogLinks CRD #246
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
Changes from all commits
Commits
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,66 @@ | ||
| apiVersion: apiextensions.k8s.io/v1beta1 | ||
| kind: CustomResourceDefinition | ||
| metadata: | ||
| name: consoleexternalloglinks.console.openshift.io | ||
| annotations: | ||
| displayName: ConsoleExternalLogLinks | ||
| description: ConsoleExternalLogLink is an extension for customizing OpenShift web console log links. | ||
| spec: | ||
| scope: Cluster | ||
| group: console.openshift.io | ||
| versions: | ||
| - name: v1 | ||
| served: true | ||
| storage: true | ||
| names: | ||
| plural: consoleexternalloglinks | ||
| singular: consoleexternalloglink | ||
| kind: ConsoleExternalLogLink | ||
| listKind: ConsoleExternalLogLinkList | ||
| additionalPrinterColumns: | ||
| - name: Text | ||
| type: string | ||
| JSONPath: .spec.text | ||
| - name: HrefTemplate | ||
| type: string | ||
| JSONPath: .spec.hrefTemplate | ||
| - name: Age | ||
| type: date | ||
| JSONPath: .metadata.creationTimestamp | ||
| subresources: | ||
| status: {} | ||
| validation: | ||
| openAPIV3Schema: | ||
| properties: | ||
| spec: | ||
| type: object | ||
| description: >- | ||
| ConsoleExternalLogLinkSpec is the desired log link configuration. | ||
| The log link will appear on the logs tab of the pod details page. | ||
| required: | ||
| - text | ||
| - hrefTemplate | ||
| properties: | ||
| text: | ||
| type: string | ||
| description: text is the display text for the link | ||
| hrefTemplate: | ||
| type: string | ||
| description: |- | ||
| hrefTemplate is an absolute secure URL (must use https) for the log link including variables to be replaced. Variables are specified in the URL with the format ${variableName}, for instance, ${containerName} and will be replaced with the corresponding values from the resource. Resource is a pod. | ||
| Supported variables are | ||
| * ${resourceName} - name of the resource which containes the logs | ||
| * ${resourceUID} - UID of the resource which contains the logs | ||
| * e.g. `11111111-2222-3333-4444-555555555555` | ||
| * ${containerName} - name of the resource's container that contains the logs | ||
| * ${resourceNamespace} - namespace of the resource that contains the logs | ||
| * ${podLabels} - JSON representation of labels matching the pod with the logs | ||
| * e.g. `{"key1":"value1","key2":"value2"}` | ||
| e.g., https://example.com/logs?resourceName=${resourceName}&containerName=${containerName}&resourceNamespace=${resourceNamespace}&podLabels=${podLabels} | ||
| pattern: '^https://' | ||
| namespaceFilter: | ||
|
benjaminapetersen marked this conversation as resolved.
|
||
| type: string | ||
| description: >- | ||
| namespaceFilter is a regular expression used to restrict a log link to a | ||
| matching set of namespaces (e.g., `openshift-`). If not specified, links will | ||
| be displayed for all the namespaces. | ||
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
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.