From b9174648adf9c74f28f4245bb9df333802ce92c8 Mon Sep 17 00:00:00 2001 From: Sascha Grunert Date: Thu, 19 Sep 2024 12:51:32 +0200 Subject: [PATCH] Add `krel push --repo-root` CLI flag Signed-off-by: Sascha Grunert --- cmd/krel/cmd/push.go | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/cmd/krel/cmd/push.go b/cmd/krel/cmd/push.go index 942d261d5f0..bee4af6af60 100644 --- a/cmd/krel/cmd/push.go +++ b/cmd/krel/cmd/push.go @@ -97,10 +97,7 @@ func init() { &pushBuildOpts.BuildDir, "buildDir", release.BuildDir, - fmt.Sprintf( - "Specify an alternate build directory (defaults to '%s')", - release.BuildDir, - ), + "Specify an alternate build directory", ) // TODO: Switch to "--registry" once CI no longer uses it @@ -146,6 +143,13 @@ func init() { "Validate that the remote image digests exists", ) + pushBuildCmd.PersistentFlags().StringVar( + &pushBuildOpts.RepoRoot, + "repo-root", + "", + "Specify an alternate Kubernetes repository directory", + ) + rootCmd.AddCommand(pushBuildCmd) }