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.
A workflow is described directly on your repository inside the directory .cds/worker-models
To be able to manage a workflow you will need the permission manage-worker-model
on your project
*: 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
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 namename: 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