Skip to content

Commit 1927031

Browse files
authored
doc: restricted & provision on worker models (#2510)
Signed-off-by: Yvonnick Esnault <[email protected]>
1 parent 7440e2d commit 1927031

File tree

6 files changed

+33
-4
lines changed

6 files changed

+33
-4
lines changed

docs/content/workflows/pipelines/requirements/worker-model/_index.md

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,38 @@ The goal of a worker model is to describe the capabilities of a given docker/iso
1313

1414
### Types
1515

16-
There are 2 types of worker models:
16+
There are 3 types of worker models:
1717

1818
* Docker images, see [how to create a worker model docker]({{< relref "workflows/pipelines/requirements/worker-model/docker/_index.md" >}})
1919
* Openstack images, see [how to create a worker model openstack]({{< relref "workflows/pipelines/requirements/worker-model/openstack.md" >}})
20+
* VSphere images, see [how to create a worker model VSphere]({{< relref "workflows/pipelines/requirements/worker-model/vshpere.md" >}})
2021

2122
### Behavior
2223

2324
All registered CDS [hatcheries]({{< relref "hatchery/_index.md" >}}) start/kill workers as needed.
25+
26+
### Add a worker model
27+
28+
![Add a worker model](/images/workflows.pipelines.requirements.docker.worker-model.add.png)
29+
30+
A user can add a worker model by setting a owner group if user is administrator of group.
31+
32+
A CDS administrator can add a worker model, attach it to 'shared.infra' group and set provision as he want.
33+
34+
### What's a restricted worker model?
35+
36+
A `shared.infra` hatchery can launch all worker models, except 'restricted' worker models.
37+
38+
**Use case**: users can launch their own [hatchery]({{< relref "hatchery/_index.md" >}}).
39+
To use their worker models only with their hatchery, they have to set worker model as 'restricted'.
40+
41+
### What's workers provisioning?
42+
43+
A [hatchery]({{< relref "hatchery/_index.md" >}}) can start workers based on worker models with provisioning > 0.
44+
45+
On 'restricted' worker models, users can set provisioning, as they launch CDS Workers on their infrastructure.
46+
47+
Otherwise, provisioning is only editable by CDS Administrators.
48+
49+
**Notice**: if you use [Service Requirement]({{< relref "/workflows/pipelines/requirements/service/_index.md" >}}), you can't
50+
use provisioned workers.
37.8 KB
Loading

ui/src/app/views/settings/worker-model/add/worker-model.add.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ <h2 *ngIf="!workerModel || !workerModel.id">{{ 'worker_model_new_title' | transl
2626
<label>{{'worker_model_restricted' | translate}}</label>
2727
<div class="ui checkbox">
2828
<input type="checkbox" id="restricted" name="restricted" [(ngModel)]="workerModel.restricted" [disabled]="loading">
29-
<label for="restricted">{{'worker_model_restricted_help' | translate}}</label>
29+
<label for="restricted">{{'worker_model_restricted_help' | translate}} <a target="_blank" href="https://ovh.github.io/cds/workflows/pipelines/requirements/worker-model/#what-s-a-restricted-worker-model">{{'common_see_documentation' | translate}}</a></label>
3030
</div>
3131
</div>
3232
<div class="field">

ui/src/app/views/settings/worker-model/edit/worker-model.edit.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ <h2 *ngIf="workerModel && workerModel.id">{{ 'worker_model_edit_title' | transla
2626
<label>{{'worker_model_restricted' | translate}}</label>
2727
<div class="ui checkbox">
2828
<input type="checkbox" id="restricted" name="restricted" [(ngModel)]="workerModel.restricted" [disabled]="loading">
29-
<label for="restricted">{{'worker_model_restricted_help' | translate}}</label>
29+
<label for="restricted">{{'worker_model_restricted_help' | translate}} <a target="_blank" href="https://ovh.github.io/cds/workflows/pipelines/requirements/worker-model/#what-s-a-restricted-worker-model">{{'common_see_documentation' | translate}}</a></label>
3030
</div>
3131
</div>
3232
<div class="field">

ui/src/assets/i18n/en.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@
164164
"common_date_start": "Start",
165165
"common_description": "Description",
166166
"common_disabled_f": "Disabled",
167+
"common_see_documentation": "See documentation",
167168
"common_documentation": "Documentation",
168169
"common_cds_documentation": "CDS Documentation",
169170
"common_download": "Download",

ui/src/assets/i18n/fr.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@
164164
"common_date_start": "Date de début",
165165
"common_description": "Description",
166166
"common_disabled_f": "Désactivée",
167+
"common_see_documentation": "Voir documentation",
167168
"common_documentation": "Documentation",
168169
"common_cds_documentation": "Documentation CDS",
169170
"common_download": "Télécharger",
@@ -683,7 +684,7 @@
683684
"worker_model_none": "Aucun modèle de worker",
684685
"worker_model_provision": "Provision de workers",
685686
"worker_model_restricted": "Restreint",
686-
"worker_model_restricted_help": "Ne peut être utilisé que par une hatchery utilisateur - cocher si oui",
687+
"worker_model_restricted_help": "Ne peut être utilisé que par une hatchery utilisateur - cocher si oui.",
687688
"worker_model_run_script": "Script de lancement",
688689
"worker_model_status": "Statut",
689690
"worker_model_template": "Template",

0 commit comments

Comments
 (0)