Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to configure the command for the sync image #1322

Merged
merged 1 commit into from
Nov 27, 2019

Conversation

andresmgot
Copy link
Contributor

@andresmgot andresmgot commented Nov 27, 2019

Description of the change

Remove the hardcoded reference to the command executed in the chart-repo image. It's needed to replace chart-repo for something else.

Benefits

The image and the command can now change.

Applicable issues

@andresmgot
Copy link
Contributor Author

merging this as trivial cc/ @absoludity

@andresmgot andresmgot merged commit 7bab7f1 into vmware-tanzu:master Nov 27, 2019
@@ -78,6 +79,7 @@ func init() {
flag.StringVar(&kubeconfig, "kubeconfig", "", "Path to a kubeconfig. Only required if out-of-cluster.")
flag.StringVar(&masterURL, "master", "", "The address of the Kubernetes API server. Overrides any value in kubeconfig. Only required if out-of-cluster.")
flag.StringVar(&repoSyncImage, "repo-sync-image", "quay.io/helmpack/chart-repo:latest", "container repo/image to use in CronJobs")
flag.StringVar(&repoSyncCommand, "repo-sync-cmd", "/chart-repo", "command used to sync/delete repos for repo-sync-image")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine. Only confusion here is why it's called a Command rather than an Endpoint, but small detail. Thanks!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's called command because it's the actual path to the binary to execute (it's not an API endpoint)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh - I misread. Great. thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants