<#371 Settings CLI and remote apis> Pull request o...
# flyte-github
a
#371 Settings CLI and remote apis Pull request opened by kumare3 This pull request introduces a new interactive settings management feature to the Flyte CLI, enabling users to view and edit hierarchical settings via both interactive and non-interactive workflows. It also adds support for settings management in the backend client and updates several dependencies. The most significant changes are grouped below: New CLI Features: • Adds a new
edit
command group to the CLI (
src/flyte/cli/_edit.py
,
src/flyte/cli/main.py
), allowing users to interactively or non-interactively edit hierarchical settings, with YAML round-tripping, error recovery, and diff previews. [1] [2] [3] [4] • Adds a
get settings
subcommand to the CLI (
src/flyte/cli/_get.py
), which outputs editable YAML for settings, supports writing to a file, and visually distinguishes between local, inherited, and available settings. Backend and API Support: • Integrates a new
SettingsService
protocol and client, wiring it into the backend control plane for fetching and updating settings. (
src/flyte/remote/_client/_protocols.py
,
src/flyte/remote/_client/controlplane.py
) [1] [2] [3] [4] [5] • Exposes the
Settings
API at the Flyte Python client level for use in CLI and automation. (
src/flyte/remote/__init__.py
) [1] [2] Dependency Updates: • Updates
flyteidl2
to version
2.0.13
and pins
pydantic-monty
to
0.0.17
for consistency across environments. (
pyproject.toml
) [1] [2] Other Fixes: • Fixes argument passing in the Flyte sandbox bridge to align with the expected Monty API. (
src/flyte/sandbox/_bridge.py
) [1] [2] These changes collectively enable robust, user-friendly settings management in the Flyte CLI, with strong backend integration and improved developer experience. flyteorg/flyte-sdk