Skip to content

Commit 574872d

Browse files
committed
Update warning message string for k8s version compatibility check
**Description** The warning message earlier was not formatted well enough. Made it explicitly look like a warning. **Testing Done** - Added unit test case to check if the warning will be displayed or not. - Checking the warning color to be yellow.
1 parent 297102e commit 574872d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sagemaker/hyperpod/common/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ def verify_kubernetes_version_compatibility(logger) -> bool:
487487
click.secho(
488488
f"\nWARNING: Kubernetes client version {client_version_str} is incompatible with server {server_version_str}. "
489489
f"Server requires minimum client version {min_major}.{min_minor}. "
490-
f"\nPlease update kubernetes Python client: pip install --upgrade kubernetes>={min_major}.{min_minor}.0",
490+
f"\nPlease update Kubernetes Python Client: pip install --upgrade kubernetes>={min_major}.{min_minor}.0",
491491
fg="yellow"
492492
)
493493
is_compatible = False

0 commit comments

Comments
 (0)