Skip to content

Commit

Permalink
Merge pull request #3768 from saschagrunert/krel-push-repo-root
Browse files Browse the repository at this point in the history
Add `krel push --repo-root` CLI flag
  • Loading branch information
k8s-ci-robot authored Sep 19, 2024
2 parents 9eca193 + b917464 commit ca77abf
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 ca77abf

Please sign in to comment.