CustomResourceDefinitionVersionPatchArgs

data class CustomResourceDefinitionVersionPatchArgs(val additionalPrinterColumns: Output<List<CustomResourceColumnDefinitionPatchArgs>>? = null, val deprecated: Output<Boolean>? = null, val deprecationWarning: Output<String>? = null, val name: Output<String>? = null, val schema: Output<CustomResourceValidationPatchArgs>? = null, val served: Output<Boolean>? = null, val storage: Output<Boolean>? = null, val subresources: Output<CustomResourceSubresourcesPatchArgs>? = null) : ConvertibleToJava<CustomResourceDefinitionVersionPatchArgs>

CustomResourceDefinitionVersion describes a version for CRD.

Constructors

Link copied to clipboard
constructor(additionalPrinterColumns: Output<List<CustomResourceColumnDefinitionPatchArgs>>? = null, deprecated: Output<Boolean>? = null, deprecationWarning: Output<String>? = null, name: Output<String>? = null, schema: Output<CustomResourceValidationPatchArgs>? = null, served: Output<Boolean>? = null, storage: Output<Boolean>? = null, subresources: Output<CustomResourceSubresourcesPatchArgs>? = null)

Properties

Link copied to clipboard

additionalPrinterColumns specifies additional columns returned in Table output. See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details. 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). If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used.

Link copied to clipboard
val deprecated: Output<Boolean>? = null

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.

Link copied to clipboard
val deprecationWarning: Output<String>? = null

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.

Link copied to clipboard
val name: Output<String>? = null

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.

Link copied to clipboard

schema describes the schema used for validation and pruning of this version of the custom resource. 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).

Link copied to clipboard
val served: Output<Boolean>? = null

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

Link copied to clipboard
val storage: Output<Boolean>? = null

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

Link copied to clipboard

subresources specify what subresources this version of the defined custom resource have. 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).

Functions

Link copied to clipboard
open override fun toJava(): CustomResourceDefinitionVersionPatchArgs