Skip to content

Commit

Permalink
Update Kevin's advice
Browse files Browse the repository at this point in the history
Signed-off-by: Future-Outlier <[email protected]>
  • Loading branch information
Future-Outlier committed Oct 31, 2024
1 parent 5f112c9 commit 5d67ee9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions flytekit/clients/friendly.py
Original file line number Diff line number Diff line change
Expand Up @@ -1090,5 +1090,14 @@ def get_download_artifact_signed_url(
)

def get_control_plane_version(self) -> str:
"""
Retrieve the Control Plane version from Flyteadmin.
This method calls Flyteadmin's GetVersion API to obtain the current version information of the control plane.
The retrieved version can be used to enable or disable specific features based on the Flyteadmin version.
Returns:
str: The version string of the control plane.
"""
version_response = self._stub.GetVersion(_version_pb2.GetVersionRequest(), metadata=self._metadata)
return version_response.control_plane_version.Version

0 comments on commit 5d67ee9

Please sign in to comment.