Skip to content

Commit 7ba4661

Browse files
Merge pull request #2095 from jhadvig/OCPBUGS-44362
OCPBUGS-44362: Remove the v1alpha1 schema for ConsolePlugin CRD
2 parents 1bc89e0 + 57564f6 commit 7ba4661

File tree

5 files changed

+0
-748
lines changed

5 files changed

+0
-748
lines changed

console/v1/manual-override-crd-manifests/consoleplugins.console.openshift.io/AAA_ungated.yaml

Lines changed: 0 additions & 156 deletions
This file was deleted.

console/v1/zz_generated.crd-manifests/90_consoleplugins-CustomNoUpgrade.crd.yaml

Lines changed: 0 additions & 148 deletions
Original file line numberDiff line numberDiff line change
@@ -349,151 +349,3 @@ spec:
349349
type: object
350350
served: true
351351
storage: true
352-
- name: v1alpha1
353-
schema:
354-
openAPIV3Schema:
355-
description: "ConsolePlugin is an extension for customizing OpenShift web
356-
console by dynamically loading code from another service running on the
357-
cluster. \n Compatibility level 4: No compatibility is provided, the API
358-
can change at any point for any reason. These capabilities should not be
359-
used by applications needing long term support."
360-
properties:
361-
apiVersion:
362-
description: 'APIVersion defines the versioned schema of this representation
363-
of an object. Servers should convert recognized schemas to the latest
364-
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
365-
type: string
366-
kind:
367-
description: 'Kind is a string value representing the REST resource this
368-
object represents. Servers may infer this from the endpoint the client
369-
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
370-
type: string
371-
metadata:
372-
type: object
373-
spec:
374-
description: ConsolePluginSpec is the desired plugin configuration.
375-
properties:
376-
displayName:
377-
description: displayName is the display name of the plugin.
378-
minLength: 1
379-
type: string
380-
proxy:
381-
description: proxy is a list of proxies that describe various service
382-
type to which the plugin needs to connect to.
383-
items:
384-
description: ConsolePluginProxy holds information on various service
385-
types to which console's backend will proxy the plugin's requests.
386-
properties:
387-
alias:
388-
description: "alias is a proxy name that identifies the plugin's
389-
proxy. An alias name should be unique per plugin. The console
390-
backend exposes following proxy endpoint: \n /api/proxy/plugin/<plugin-name>/<proxy-alias>/<request-path>?<optional-query-parameters>
391-
\n Request example path: \n /api/proxy/plugin/acm/search/pods?namespace=openshift-apiserver"
392-
maxLength: 128
393-
minLength: 1
394-
pattern: ^[A-Za-z0-9-_]+$
395-
type: string
396-
authorize:
397-
default: false
398-
description: "authorize indicates if the proxied request should
399-
contain the logged-in user's OpenShift access token in the
400-
\"Authorization\" request header. For example: \n Authorization:
401-
Bearer sha256~kV46hPnEYhCWFnB85r5NrprAxggzgb6GOeLbgcKNsH0
402-
\n By default the access token is not part of the proxied
403-
request."
404-
type: boolean
405-
caCertificate:
406-
description: caCertificate provides the cert authority certificate
407-
contents, in case the proxied Service is using custom service
408-
CA. By default, the service CA bundle provided by the service-ca
409-
operator is used.
410-
pattern: ^-----BEGIN CERTIFICATE-----([\s\S]*)-----END CERTIFICATE-----\s?$
411-
type: string
412-
service:
413-
description: 'service is an in-cluster Service that the plugin
414-
will connect to. The Service must use HTTPS. The console backend
415-
exposes an endpoint in order to proxy communication between
416-
the plugin and the Service. Note: service field is required
417-
for now, since currently only "Service" type is supported.'
418-
properties:
419-
name:
420-
description: name of Service that the plugin needs to connect
421-
to.
422-
maxLength: 128
423-
minLength: 1
424-
type: string
425-
namespace:
426-
description: namespace of Service that the plugin needs
427-
to connect to
428-
maxLength: 128
429-
minLength: 1
430-
type: string
431-
port:
432-
description: port on which the Service that the plugin needs
433-
to connect to is listening on.
434-
format: int32
435-
maximum: 65535
436-
minimum: 1
437-
type: integer
438-
required:
439-
- name
440-
- namespace
441-
- port
442-
type: object
443-
type:
444-
description: type is the type of the console plugin's proxy.
445-
Currently only "Service" is supported.
446-
pattern: ^(Service)$
447-
type: string
448-
required:
449-
- alias
450-
- type
451-
type: object
452-
type: array
453-
service:
454-
description: service is a Kubernetes Service that exposes the plugin
455-
using a deployment with an HTTP server. The Service must use HTTPS
456-
and Service serving certificate. The console backend will proxy
457-
the plugins assets from the Service using the service CA bundle.
458-
properties:
459-
basePath:
460-
default: /
461-
description: basePath is the path to the plugin's assets. The
462-
primary asset it the manifest file called `plugin-manifest.json`,
463-
which is a JSON document that contains metadata about the plugin
464-
and the extensions.
465-
minLength: 1
466-
pattern: ^/
467-
type: string
468-
name:
469-
description: name of Service that is serving the plugin assets.
470-
maxLength: 128
471-
minLength: 1
472-
type: string
473-
namespace:
474-
description: namespace of Service that is serving the plugin assets.
475-
maxLength: 128
476-
minLength: 1
477-
type: string
478-
port:
479-
description: port on which the Service that is serving the plugin
480-
is listening to.
481-
format: int32
482-
maximum: 65535
483-
minimum: 1
484-
type: integer
485-
required:
486-
- basePath
487-
- name
488-
- namespace
489-
- port
490-
type: object
491-
required:
492-
- service
493-
type: object
494-
required:
495-
- metadata
496-
- spec
497-
type: object
498-
served: true
499-
storage: false

0 commit comments

Comments
 (0)