Worker model can be defined ascode. That’s mean the definition of the worker model will be in a git repository, and each time you will push something, CDS will update it.
To be detected by CDS, your worker model files must be in this directory .cds/worker-models/
*: mandatory field
name: my-worker-model-name
description: my description
osarch: linux/amd64
type: docker
spec:
image: myregistry.org/ns/myworkermodel:1.0
username: foo
password: bar
envs:
myvar: myvalue
Fields:
name: Name of the worker modeldescription: Description of the worker modeltype: Type of worker modelosarch: OS and architecture of the modelspec.image: Docker image namespec.username: Docker registry usernamespec.password: Docker registry password. The field must be encrypted with cdsctlspec.envs: Additional environment variablesname: my-worker-model-name
description: my description
type: openstack
osarch: linux/amd64
spec:
image: Ubuntu
flavor: "b2-4"
Fields:
name: Name of the worker modeldescription: Description of the worker modelosarch: OS and architecture of the modeltype: Type of worker modelspec.image: Openstack image namespec.flavor: Openstack flavor to usename: my-worker-model-name
description: my description
osarch: linux/amd64
type: vsphere
spec:
image: Ubuntu
username: foo
password: bar
Fields:
name: Name of the worker modeldescription: Description of the worker modelosarch: OS and architecture of the modeltype: Type of worker modelspec.image: vSphere template namespec.username: username to use to connect to the VMspec.password: password to use to connect to the VM. The field must be encrypted with cdsctl