UNPKG

@jkcfg/kubernetes

Version:
51 lines 2.83 kB
{ "description": "CustomResourceDefinitionVersion describes a version for CRD.", "required": [ "name", "served", "storage" ], "properties": { "additionalPrinterColumns": { "description": "AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column. Top-level and per-version columns are mutually exclusive. Per-version columns must not all be set to identical values (top-level columns should be used instead) This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature. NOTE: CRDs created prior to 1.13 populated the top-level additionalPrinterColumns field by default. To apply an update that changes to per-version additionalPrinterColumns, the top-level additionalPrinterColumns field must be explicitly set to null", "type": [ "array", "null" ], "items": { "$ref": "_definitions.json#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceColumnDefinition" } }, "name": { "description": "Name is the version name, e.g. \u201cv1\u201d, \u201cv2beta1\u201d, etc.", "type": [ "string", "null" ] }, "schema": { "description": "Schema describes the schema for CustomResource used in validation, pruning, and defaulting. Top-level and per-version schemas are mutually exclusive. Per-version schemas must not all be set to identical values (top-level validation schema should be used instead) This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.", "$ref": "_definitions.json#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceValidation" }, "served": { "description": "Served is a flag enabling/disabling this version from being served via REST APIs", "type": [ "boolean", "null" ] }, "storage": { "description": "Storage flags the version as storage version. There must be exactly one flagged as storage version.", "type": [ "boolean", "null" ] }, "subresources": { "description": "Subresources describes the subresources for CustomResource Top-level and per-version subresources are mutually exclusive. Per-version subresources must not all be set to identical values (top-level subresources should be used instead) This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.", "$ref": "_definitions.json#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceSubresources" } }, "$schema": "http://json-schema.org/schema#", "type": "object" }