Skip to content

crd2types

lib.crd2types.customTypes

The kubenix kubernetes.customTypes of a CustomResourceDefinition, one per served version, for kubernetes.customTypesModuleDefinesCRDSpec = false: each module types the fields of the resource besides apiVersion, kind and metadata, which kubenix types itself. Optional fields default to null, which kubenix leaves out. A list the API server merges by one key (x-kubernetes-list-type: map) is an attribute set by that key, as kubenix has it for its core types; a list still works there. Value validations and defaults stay with the API server. Throws on any other schema construct, naming where it is, so a CRD that starts using one fails evaluation.

Arguments

crd (AttrSet): the CustomResourceDefinition