mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-30 12:16:03 +09:00
The worker image of a node pool takes one of builtin and factory, a vm-disk source one of disk, http, image and upload, and the oidc customConfig of a kubernetes cluster and of a monitoring stack one of config and secretRef, and each chart refuses a spec that sets two. An installation default for one child merged into an application that chose another built exactly that spec, and nothing warned at create time. The x-kubernetes-map-type: atomic marker makes the defaults merge replace the object whole. Nothing else reads it, so existing applications render as before. The marker stays off objects whose fields must be set together or sit beside independent fields, where replacing the object whole would drop a default the user did not mean to override. The chart guide says when to use it and when not to. The tests run the merge against the four real schemas, and one more pins that a pair like resources cpu and memory still merges field by field. Assisted-by: LLM Signed-off-by: Myasnikov Daniil <myasnikovdaniil2001@gmail.com>
45 lines
2.0 KiB
YAML
45 lines
2.0 KiB
YAML
##
|
|
## @section Common parameters
|
|
##
|
|
|
|
## @typedef {struct} SourceImage - Use image by name.
|
|
## @field {string} name - Name of the image to use.
|
|
## @x-cozystack-options {source: image}
|
|
|
|
## @typedef {struct} SourceUpload - Upload local image.
|
|
|
|
## @typedef {struct} SourceHTTP - Download image from an HTTP source.
|
|
## @field {string} url - URL to download the image.
|
|
|
|
## @typedef {struct} SourceDisk - Clone an existing vm-disk.
|
|
## @field {string} name - Name of the vm-disk to clone.
|
|
|
|
## @typedef {struct} Source - The source image location used to create a disk.
|
|
## @field {*SourceImage} [image] - Use image by name from default collection.
|
|
## @field {*SourceUpload} [upload] - Upload local image.
|
|
## @field {*SourceHTTP} [http] - Download image from an HTTP source.
|
|
## @field {*SourceDisk} [disk] - Clone an existing vm-disk.
|
|
|
|
## @param {Source} source - The source image location used to create a disk.
|
|
## @x-kubernetes-map-type atomic
|
|
## @immutable
|
|
source: {}
|
|
|
|
## @param {bool} optical - Defines if disk should be considered optical.
|
|
optical: false
|
|
|
|
## @param {quantity} storage - The size of the disk allocated for the virtual machine.
|
|
storage: 5Gi
|
|
|
|
## @param {string} storageClass - StorageClass used to store the data.
|
|
## @immutable
|
|
## @x-cozystack-options {source: storageclass}
|
|
storageClass: replicated
|
|
|
|
## @param {bool} bindImmediately - Provision the volume at disk creation instead of waiting for a consumer.
|
|
bindImmediately: true
|
|
|
|
## @param {string} schedulingClass - Name of a SchedulingClass CR (cluster-scoped, group cozystack.io) used in place of the tenant's for this application's pods. A pod gets its class when it is created, so running pods keep theirs until they are recreated. Must be the tenant's own class or one listed in the tenant's `allowedSchedulingClasses`. Setting any other value is refused, and the pods of an application whose class is not, or no longer, in that list get the tenant's class. Empty means inherit from the tenant.
|
|
## @maxLength 63
|
|
schedulingClass: ""
|