Skip to content

Commit

Permalink
New feature update : Add 'allow' and 'disallow' setting to each manager
Browse files Browse the repository at this point in the history
Signed-off-by: Shreekara <sshreeka@redhat.com>
  • Loading branch information
shreekarSS committed Oct 17, 2022
1 parent 48d4aee commit c54451a
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions docs/managers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,63 @@ Kebechet works as a part of Thoth Ecosystem, please raise an issue or add the
new manager to the `KebechetGithubAppInstallations
<https://github.com/thoth-station/storages/blob/15ed39ef6c8d7bf58037046f3bab2465c5c4bb22/thoth/storages/graph/models.py#L1434>`_
table.


Configure different managers per Overlays
-----------------------------------------

- Add allow and disallow to each manager's configuration options, where the user can specify which repos each manager is (dis)allowed to act on.


Example: .thoth.yaml

.. code-block:: yaml
host: khemenu.thoth-station.ninja
tls_verify: true
requirements_format: pipenv
overlays_dir: overlays
runtime_environments:
- name: ps-nlp
operating_system:
name: ubi
version: "8"
python_version: "3.8"
recommendation_type: latest
- name: ps-nlp-pytorch
operating_system:
name: ubi
version: "8"
python_version: "3.8"
recommendation_type: latest
- name: ps-nlp-tensorflow
operating_system:
name: ubi
version: "8"
python_version: "3.8"
recommendation_type: latest
- name: ps-nlp-tensorflow-gpu
operating_system:
name: ubi
version: "8"
python_version: "3.8"
recommendation_type: latest
managers:
- name: thoth-advise
# Do not run this manager in the ps-nlp-tensorflow-gpu overlay
disallow:
- ps-nlp-tensorflow-gpu
configuration:
labels: [bot]
- name: update
# Run this manager in the ps-nlp-tensorflow-gpu overlay (only)
allow:
- ps-nlp-tensorflow-gpu
configuration:
labels: [bot]
- name: info
# No allow/disallow present: this manager applies to all runtimes

0 comments on commit c54451a

Please sign in to comment.