from polyaxon.config_manager import config ALLOW_USER_PROJECTS = config.get_boolean('POLYAXON_ALLOW_USER_PROJECTS', is_optional=True, default=True) OWNER_TYPES = config.get_string('POLYAXON_OWNER_TYPES', is_optional=True, is_list=True, default=['user']) ROLES = config.get_dict('POLYAXON_ROLES', is_optional=True, is_list=True, default=[]) DEFAULT_ROLE = config.get_string('POLYAXON_DEFAULT_ROLE', is_optional=True, default='dummy') SCOPE_ROLES = config.get_dict_of_dicts('POLYAXON_SCOPE_ROLES', is_optional=True, default={})
from polyaxon.config_manager import config PERSISTENCE_DATA = config.get_dict_of_dicts('POLYAXON_PERSISTENCE_DATA')
from polyaxon.config_manager import config PERSISTENCE_OUTPUTS = config.get_dict_of_dicts('POLYAXON_PERSISTENCE_OUTPUTS')
# DNS Cluster DNS_USE_RESOLVER = config.get_boolean('POLYAXON_DNS_USE_RESOLVER', is_optional=True, default=False) DNS_CUSTOM_CLUSTER = config.get_string('POLYAXON_DNS_CUSTOM_CLUSTER', is_optional=True, default='cluster.local') # Roles ROLE_LABELS_WORKER = config.get_string('POLYAXON_ROLE_LABELS_WORKER') ROLE_LABELS_DASHBOARD = config.get_string('POLYAXON_ROLE_LABELS_DASHBOARD') ROLE_LABELS_LOG = config.get_string('POLYAXON_ROLE_LABELS_LOG') ROLE_LABELS_API = config.get_string('POLYAXON_ROLE_LABELS_API') ROLE_LABELS_CONFIG = config.get_string('POLYAXON_ROLE_LABELS_CONFIG') ROLE_LABELS_HOOKS = config.get_string('POLYAXON_ROLE_LABELS_HOOKS') # Types TYPE_LABELS_CORE = config.get_string('POLYAXON_TYPE_LABELS_CORE') TYPE_LABELS_RUNNER = config.get_string('POLYAXON_TYPE_LABELS_RUNNER') # SECURITY CONTEXT SECURITY_CONTEXT_USER = config.get_int('POLYAXON_SECURITY_CONTEXT_USER', is_optional=True) SECURITY_CONTEXT_GROUP = config.get_int('POLYAXON_SECURITY_CONTEXT_GROUP', is_optional=True) # Plugins PLUGINS = config.get_dict_of_dicts('POLYAXON_PLUGINS', is_optional=True, default={})