# io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionVersion

From **Kubernetes**.

CustomResourceDefinitionVersion describes a version for CRD.

- Type: `object`

## Properties

### `additionalPrinterColumns`

- Required: false
- Type: `array`

additionalPrinterColumns specifies additional columns returned in Table output. See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details. If no columns are specified, a single column displaying the age of the custom resource is used.

### `deprecated`

- Required: false
- Type: `boolean`

deprecated indicates this version of the custom resource API is deprecated. When set to true, API requests to this version receive a warning header in the server response. Defaults to false.

### `deprecationWarning`

- Required: false
- Type: `string`

deprecationWarning overrides the default warning returned to API clients. May only be set when `deprecated` is true. The default warning indicates this version is deprecated and recommends use of the newest served version of equal or greater stability, if one exists.

### `name`

- Required: true
- Type: `string`

name is the version name, e.g. “v1”, “v2beta1”, etc. The custom resources are served under this version at `/apis/<group>/<version>/...` if `served` is true.

### `schema`

- Required: false
schema describes the schema used for validation, pruning, and defaulting of this version of the custom resource.

### `selectableFields`

- Required: false
- Type: `array`

selectableFields specifies paths to fields that may be used as field selectors. A maximum of 8 selectable fields are allowed. See https://kubernetes.io/docs/concepts/overview/working-with-objects/field-selectors

### `served`

- Required: true
- Type: `boolean`
- Default: `false`

served is a flag enabling/disabling this version from being served via REST APIs

### `storage`

- Required: true
- Type: `boolean`
- Default: `false`

storage indicates this version should be used when persisting custom resources to storage. There must be exactly one version with storage=true.

### `subresources`

- Required: false
subresources specify what subresources this version of the defined custom resource have.

## JSON Schema

```json
{"description":"CustomResourceDefinitionVersion describes a version for CRD.","properties":{"additionalPrinterColumns":{"description":"additionalPrinterColumns specifies additional columns returned in Table output. See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details. If no columns are specified, a single column displaying the age of the custom resource is used.","items":{"$ref":"#/components/schemas/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceColumnDefinition"},"type":"array","x-kubernetes-list-type":"atomic"},"deprecated":{"description":"deprecated indicates this version of the custom resource API is deprecated. When set to true, API requests to this version receive a warning header in the server response. Defaults to false.","type":"boolean"},"deprecationWarning":{"description":"deprecationWarning overrides the default warning returned to API clients. May only be set when `deprecated` is true. The default warning indicates this version is deprecated and recommends use of the newest served version of equal or greater stability, if one exists.","type":"string"},"name":{"default":"","description":"name is the version name, e.g. “v1”, “v2beta1”, etc. The custom resources are served under this version at `/apis/\u003cgroup\u003e/\u003cversion\u003e/...` if `served` is true.","type":"string"},"schema":{"allOf":[{"$ref":"#/components/schemas/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceValidation"}],"description":"schema describes the schema used for validation, pruning, and defaulting of this version of the custom resource."},"selectableFields":{"description":"selectableFields specifies paths to fields that may be used as field selectors. A maximum of 8 selectable fields are allowed. See https://kubernetes.io/docs/concepts/overview/working-with-objects/field-selectors","items":{"$ref":"#/components/schemas/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.SelectableField"},"type":"array","x-kubernetes-list-type":"atomic"},"served":{"default":false,"description":"served is a flag enabling/disabling this version from being served via REST APIs","type":"boolean"},"storage":{"default":false,"description":"storage indicates this version should be used when persisting custom resources to storage. There must be exactly one version with storage=true.","type":"boolean"},"subresources":{"allOf":[{"$ref":"#/components/schemas/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceSubresources"}],"description":"subresources specify what subresources this version of the defined custom resource have."}},"required":["name","served","storage"],"type":"object"}
```
