Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
Chapter 6. ConsolePlugin [console.openshift.io/v1]
- Description
- ConsolePlugin is an extension for customizing OpenShift web console by dynamically loading code from another service running on the cluster. Compatibility level 1: Stable within a major release for a minimum of 12 months or 3 minor releases (whichever is longer).
- Type
-
object
- Required
-
metadata
-
spec
-
6.1. Specification
Property | Type | Description |
---|---|---|
|
| APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources |
|
| Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds |
| Standard object’s metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata | |
|
| ConsolePluginSpec is the desired plugin configuration. |
6.1.1. .spec
- Description
- ConsolePluginSpec is the desired plugin configuration.
- Type
-
object
- Required
-
backend
-
displayName
-
Property | Type | Description |
---|---|---|
|
| backend holds the configuration of backend which is serving console’s plugin . |
|
| displayName is the display name of the plugin. The dispalyName should be between 1 and 128 characters. |
|
| i18n is the configuration of plugin’s localization resources. |
|
| proxy is a list of proxies that describe various service type to which the plugin needs to connect to. |
|
| ConsolePluginProxy holds information on various service types to which console’s backend will proxy the plugin’s requests. |
6.1.2. .spec.backend
- Description
- backend holds the configuration of backend which is serving console’s plugin .
- Type
-
object
- Required
-
type
-
Property | Type | Description |
---|---|---|
|
| service is a Kubernetes Service that exposes the plugin using a deployment with an HTTP server. The Service must use HTTPS and Service serving certificate. The console backend will proxy the plugins assets from the Service using the service CA bundle. |
|
| type is the backend type which servers the console’s plugin. Currently only "Service" is supported. --- |
6.1.3. .spec.backend.service
- Description
- service is a Kubernetes Service that exposes the plugin using a deployment with an HTTP server. The Service must use HTTPS and Service serving certificate. The console backend will proxy the plugins assets from the Service using the service CA bundle.
- Type
-
object
- Required
-
name
-
namespace
-
port
-
Property | Type | Description |
---|---|---|
|
|
basePath is the path to the plugin’s assets. The primary asset it the manifest file called |
|
| name of Service that is serving the plugin assets. |
|
| namespace of Service that is serving the plugin assets. |
|
| port on which the Service that is serving the plugin is listening to. |
6.1.4. .spec.i18n
- Description
- i18n is the configuration of plugin’s localization resources.
- Type
-
object
- Required
-
loadType
-
Property | Type | Description |
---|---|---|
|
| loadType indicates how the plugin’s localization resource should be loaded. Valid values are Preload, Lazy and the empty string. When set to Preload, all localization resources are fetched when the plugin is loaded. When set to Lazy, localization resources are lazily loaded as and when they are required by the console. When omitted or set to the empty string, the behaviour is equivalent to Lazy type. |
6.1.5. .spec.proxy
- Description
- proxy is a list of proxies that describe various service type to which the plugin needs to connect to.
- Type
-
array
6.1.6. .spec.proxy[]
- Description
- ConsolePluginProxy holds information on various service types to which console’s backend will proxy the plugin’s requests.
- Type
-
object
- Required
-
alias
-
endpoint
-
Property | Type | Description |
---|---|---|
|
| alias is a proxy name that identifies the plugin’s proxy. An alias name should be unique per plugin. The console backend exposes following proxy endpoint: /api/proxy/plugin/<plugin-name>/<proxy-alias>/<request-path>?<optional-query-parameters> Request example path: /api/proxy/plugin/acm/search/pods?namespace=openshift-apiserver |
|
| authorization provides information about authorization type, which the proxied request should contain |
|
| caCertificate provides the cert authority certificate contents, in case the proxied Service is using custom service CA. By default, the service CA bundle provided by the service-ca operator is used. |
|
| endpoint provides information about endpoint to which the request is proxied to. |
6.1.7. .spec.proxy[].endpoint
- Description
- endpoint provides information about endpoint to which the request is proxied to.
- Type
-
object
- Required
-
type
-
Property | Type | Description |
---|---|---|
|
| service is an in-cluster Service that the plugin will connect to. The Service must use HTTPS. The console backend exposes an endpoint in order to proxy communication between the plugin and the Service. Note: service field is required for now, since currently only "Service" type is supported. |
|
| type is the type of the console plugin’s proxy. Currently only "Service" is supported. --- |
6.1.8. .spec.proxy[].endpoint.service
- Description
- service is an in-cluster Service that the plugin will connect to. The Service must use HTTPS. The console backend exposes an endpoint in order to proxy communication between the plugin and the Service. Note: service field is required for now, since currently only "Service" type is supported.
- Type
-
object
- Required
-
name
-
namespace
-
port
-
Property | Type | Description |
---|---|---|
|
| name of Service that the plugin needs to connect to. |
|
| namespace of Service that the plugin needs to connect to |
|
| port on which the Service that the plugin needs to connect to is listening on. |
6.2. API endpoints
The following API endpoints are available:
/apis/console.openshift.io/v1/consoleplugins
-
DELETE
: delete collection of ConsolePlugin -
GET
: list objects of kind ConsolePlugin -
POST
: create a ConsolePlugin
-
/apis/console.openshift.io/v1/consoleplugins/{name}
-
DELETE
: delete a ConsolePlugin -
GET
: read the specified ConsolePlugin -
PATCH
: partially update the specified ConsolePlugin -
PUT
: replace the specified ConsolePlugin
-
6.2.1. /apis/console.openshift.io/v1/consoleplugins
- HTTP method
-
DELETE
- Description
- delete collection of ConsolePlugin
HTTP code | Reponse body |
---|---|
200 - OK |
|
401 - Unauthorized | Empty |
- HTTP method
-
GET
- Description
- list objects of kind ConsolePlugin
HTTP code | Reponse body |
---|---|
200 - OK |
|
401 - Unauthorized | Empty |
- HTTP method
-
POST
- Description
- create a ConsolePlugin
Parameter | Type | Description |
---|---|---|
|
| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed |
|
| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. |
Parameter | Type | Description |
---|---|---|
|
|
HTTP code | Reponse body |
---|---|
200 - OK |
|
201 - Created |
|
202 - Accepted |
|
401 - Unauthorized | Empty |
6.2.2. /apis/console.openshift.io/v1/consoleplugins/{name}
Parameter | Type | Description |
---|---|---|
|
| name of the ConsolePlugin |
- HTTP method
-
DELETE
- Description
- delete a ConsolePlugin
Parameter | Type | Description |
---|---|---|
|
| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed |
HTTP code | Reponse body |
---|---|
200 - OK |
|
202 - Accepted |
|
401 - Unauthorized | Empty |
- HTTP method
-
GET
- Description
- read the specified ConsolePlugin
HTTP code | Reponse body |
---|---|
200 - OK |
|
401 - Unauthorized | Empty |
- HTTP method
-
PATCH
- Description
- partially update the specified ConsolePlugin
Parameter | Type | Description |
---|---|---|
|
| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed |
|
| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. |
HTTP code | Reponse body |
---|---|
200 - OK |
|
401 - Unauthorized | Empty |
- HTTP method
-
PUT
- Description
- replace the specified ConsolePlugin
Parameter | Type | Description |
---|---|---|
|
| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed |
|
| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. |
Parameter | Type | Description |
---|---|---|
|
|
HTTP code | Reponse body |
---|---|
200 - OK |
|
201 - Created |
|
401 - Unauthorized | Empty |