From 70f7b52b9ef09e81a09e0b5a82466153eea9e28e Mon Sep 17 00:00:00 2001 From: Giulia Naponiello Date: Oct 24 2019 14:31:32 +0000 Subject: Update doc for new allowed type in remote policies The new type is ``redhat-container-image``. JIRA: FACTORY-5233. Signed-off-by: Giulia Naponiello --- diff --git a/docs/messaging.rst b/docs/messaging.rst index d187b1b..1615e36 100644 --- a/docs/messaging.rst +++ b/docs/messaging.rst @@ -86,8 +86,8 @@ Greenwave tries to guess the product version from the subject identifier or get the value from Koji. Sometimes, the product version cannot be guessed, e.g. for container image -builds or subject types other than "koji_build", "brew-build", "compose" or -"redhat-module". +builds or subject types other than "koji_build", "brew-build", "compose", +"redhat-module" or "redhat-container-image". If the product version cannot be guessed, policies with any product version are considered (subject type and test case name is still used for further diff --git a/docs/package-specific-policies.rst b/docs/package-specific-policies.rst index 2314979..6909de2 100644 --- a/docs/package-specific-policies.rst +++ b/docs/package-specific-policies.rst @@ -43,8 +43,8 @@ policy defined in the Greenwave conf that contains the ``RemoteRule`` that will enable this check. The ``subject_type`` should always be defined and the permitted values are -``koji_build`` and ``redhat-module``. If no ``subject_type`` will be -specified the default value is ``koji_build``. +``koji_build``, ``redhat-module`` and ``redhat-container-image``. +If no ``subject_type`` will be specified the default value is ``koji_build``. Refer to :doc:`policies` for details about each of the keys in the YAML file. diff --git a/docs/policies.rst b/docs/policies.rst index 247a3b9..6db6fa8 100644 --- a/docs/policies.rst +++ b/docs/policies.rst @@ -72,10 +72,6 @@ The document is a map (dictionary) with the following keys: The subject type can be any string. A list of commonly used subject types can be found in the :ref:`subject-types` section. - In the ``gating.yaml`` files (see :ref:`remote-rule`) the allowed values - are ``koji_build`` and ``redhat-module`` - if not specified - the default value will be ``koji_build``. - ``product_versions`` A policy applies to one or more "product versions". When you ask Greenwave for a decision, you must tell it which product version you are working @@ -158,9 +154,6 @@ But these are common examples of types (just for reference): reflected in their directory name, for example ``Fedora-Rawhide-20170508.n.0``. -The ``RemoteRule`` feature is enabled only for ``subject_type`` equal to ``koji_build`` -and ``redhat-module``. - .. _rule-types: Rule types