Worker Model

Description

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.

As Code directory

A workflow is described directly on your repository inside the directory .cds/worker-models

Permission

To be able to manage a workflow you will need the permission manage-worker-model on your project

Files

*: mandatory field

Docker

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:

Openstack

name: my-worker-model-name
description: my description
type: openstack
osarch: linux/amd64
spec: 
  image: Ubuntu

Fields:

vSphere

name: my-worker-model-name
description: my description
osarch: linux/amd64
type: vsphere
spec:
  image: Ubuntu
  username: foo
  password: bar

Fields: