- class flytekit.configuration.PlatformConfig(endpoint='localhost:30081', insecure=False, insecure_skip_verify=False, console_endpoint=None, command=None, client_id=None, client_credentials_secret=None, scopes=<factory>, auth_mode=AuthType.STANDARD)#
This object contains the settings to talk to a Flyte backend (the DNS location of your Admin server basically).
endpoint (str) – DNS for Flyte backend
insecure (bool) – Whether or not to use SSL
insecure_skip_verify (bool) – Wether to skip SSL certificate verification
client_id (Optional[str]) – This is the public identifier for the app which handles authorization for a Flyte deployment. More details here: https://www.oauth.com/oauth2-servers/client-registration/client-id-secret/.
client_credentials_secret (Optional[str]) – Used for service auth, which is automatically called during pyflyte. This will allow the Flyte engine to read the password directly from the environment variable. Note that this is less secure! Please only use this if mounting the secret as a file is impossible.
auth_mode (flytekit.configuration.AuthType) – The OAuth mode to use. Defaults to pkce flow.
- Return type
- classmethod auto(config_file=None)#
Reads from Config file, and overrides from Environment variables. Refer to ConfigEntry for details :param config_file: :return:
- classmethod for_endpoint(endpoint, insecure=False)#
- auth_mode: flytekit.configuration.AuthType = 'standard'#