Quality gate service¶
This service is used to check the quality gate status of workflows.
A quality gate is a set of rules a workflow execution must satisfy. It exposes two user-facing endpoints that can be used by clients.
There are no service-specific configuration file options.
You can set the
QUALITYGATE_DEBUG_LEVEL (all upper-cased) or
DEBUG_LEVEL environment variables
DEBUG to add additional information in the console for the launched service. It defaults to
INFO. (Please note that setting
DEBUG will produce tons of logs.)
The possible values are
FATAL. Those values
are from the most verbose,
NOTSET, which shows all logs, to the least verbose,
only shows fatal errors.
QUALITYGATE_DEBUG_LEVEL is not defined then the value of
DEBUG_LEVEL is used (or
DEBUG_LEVEL is not defined either).
Access logs are only shown at
Quality gate definitions¶
QUALITYGATE_DEFINITIONS (all upper-cased) environment variable, if defined, must refer to
an existing file that contains quality gate definitions.
(Two default quality gate modes are provided and are always available:
For more information about quality gate definitions, see “Quality gate syntax.”
If the content of this referred file changes, the quality gates definitions used by the quality gate service will change accordingly. You do not need to restart the quality gate plugin.
This service has a configuration file (
qualitygate.yaml by default) that describes the host,
port, ssl_context, and trusted_authorities to use. It can also enable insecure logins.
If no configuration file is found it will default to the following values:
The configuration included in the ‘allinone’ image is described in “Common settings.” The
listening port is
12312 and the bind address is
0.0.0.0 as the service exposes user-facing endpoints.
There are no service-specific configuration options besides the common ones.
The quality gate service subscribes to no event.
If you want to manually start the quality gate service, use the following command:
python -m opentf.qualitygate.qualitygate [--context context] [--config configfile]
Additional command-line options are available and described in “Command-line options.”