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) }