from __future__ import absolute_import from flytekit.configuration import common as _config_common from flytekit.common import constants as _constants URL = _config_common.FlyteRequiredStringConfigurationEntry('platform', 'url') INSECURE = _config_common.FlyteBoolConfigurationEntry('platform', 'insecure', default=False) CLOUD_PROVIDER = _config_common.FlyteStringConfigurationEntry( 'platform', 'cloud_provider', default=_constants.CloudProvider.AWS)
from flytekit.configuration import common as _config_common GCS_PREFIX = _config_common.FlyteRequiredStringConfigurationEntry( "gcp", "gcs_prefix") GSUTIL_PARALLELISM = _config_common.FlyteBoolConfigurationEntry( "gcp", "gsutil_parallelism", default=False)
from flytekit.common import constants as _constants from flytekit.configuration import common as _config_common URL = _config_common.FlyteStringConfigurationEntry("platform", "url") HTTP_URL = _config_common.FlyteStringConfigurationEntry("platform", "http_url", default=None) """ If not starting with either http or https, this setting should begin with // as per the urlparse library and https://tools.ietf.org/html/rfc1808.html, otherwise the netloc will not be properly parsed. Currently the only use-case for this configuration setting is for Auth discovery. This setting supports the case where Flyte Admin's gRPC and HTTP points are deployed on different ports. """ INSECURE = _config_common.FlyteBoolConfigurationEntry("platform", "insecure", default=False) CLOUD_PROVIDER = _config_common.FlyteStringConfigurationEntry( "platform", "cloud_provider", default=_constants.CloudProvider.AWS ) AUTH = _config_common.FlyteBoolConfigurationEntry("platform", "auth", default=False) """ This config setting should not normally be filled in. Whether or not an admin server requires authentication should be something published by the admin server itself (typically by returning a 401). However, to help with migration, this config object is here to force the SDK to attempt the auth flow even without prompting by Admin. """
S3_SHARD_STRING_LENGTH = _config_common.FlyteIntegerConfigurationEntry( "aws", "s3_shard_string_length", default=2) S3_ENDPOINT = _config_common.FlyteStringConfigurationEntry("aws", "endpoint", default=None) S3_ACCESS_KEY_ID = _config_common.FlyteStringConfigurationEntry( "aws", "access_key_id", default=None) S3_SECRET_ACCESS_KEY = _config_common.FlyteStringConfigurationEntry( "aws", "secret_access_key", default=None) S3_ACCESS_KEY_ID_ENV_NAME = "AWS_ACCESS_KEY_ID" S3_SECRET_ACCESS_KEY_ENV_NAME = "AWS_SECRET_ACCESS_KEY" S3_ENDPOINT_ARG_NAME = "--endpoint-url" ENABLE_DEBUG = _config_common.FlyteBoolConfigurationEntry("aws", "enable_debug", default=False) RETRIES = _config_common.FlyteIntegerConfigurationEntry("aws", "retries", default=3) BACKOFF_SECONDS = _config_common.FlyteIntegerConfigurationEntry( "aws", "backoff_seconds", default=5)
from flytekit.configuration import common as _common_config HOST = _common_config.FlyteStringConfigurationEntry("statsd", "host", default="localhost") PORT = _common_config.FlyteIntegerConfigurationEntry("statsd", "port", default=8125) DISABLED = _common_config.FlyteBoolConfigurationEntry("statsd", "disabled", default=False)