Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

Add docker repo to cmd helper #13

Merged
merged 2 commits into from
Nov 14, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pkg/cmd/docker_image.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ func DockerImage() error {
}

// DockerImageFlags adds to viper flags
func DockerImageFlags(pf *flag.FlagSet, argToEnv map[string]string, tag string) {
func DockerImageFlags(pf *flag.FlagSet, argToEnv map[string]string, repo string, tag string) {
pf.StringP("docker-image-org", "o", "cfcontainerization", "Dockerhub organization that provides the operator docker image")
pf.StringP("docker-image-repository", "r", "cf-operator", "Dockerhub repository that provides the operator docker image")
pf.StringP("docker-image-repository", "r", repo, "Dockerhub repository that provides the operator docker image")
pf.StringP("docker-image-tag", "t", tag, "Tag of the operator docker image")
pf.StringP("docker-image-pull-policy", "", string(corev1.PullIfNotPresent), "Image pull policy")

Expand Down