Skip to content

Commit 8782157

Browse files
committed
Ensure max pod name length for Run
1 parent 8f11d2f commit 8782157

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/cmd.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1275,7 +1275,7 @@ command!(
12751275
clickwrite!(writer, "Couldon't get container image\n");
12761276
return;
12771277
};
1278-
let pod_name = format!("one-off-shell-{}", container_image.as_str());
1278+
let pod_name = format!("one-off-shell-{}", shorten_to(container_image.to_string(), 63));
12791279

12801280
if matches.is_present("terminal") {
12811281
let terminal = if let Some(t) = matches.value_of("terminal") {

0 commit comments

Comments
 (0)