Skip to content

Commit

Permalink
Add krel push --repo-root CLI flag
Browse files Browse the repository at this point in the history
Signed-off-by: Sascha Grunert <[email protected]>
  • Loading branch information
saschagrunert committed Sep 19, 2024
1 parent 27310fb commit b917464
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions cmd/krel/cmd/push.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
}

Expand Down

0 comments on commit b917464

Please sign in to comment.