Skip to content

Commit

Permalink
change name of var
Browse files Browse the repository at this point in the history
Signed-off-by: zachaller <[email protected]>
  • Loading branch information
zachaller committed Jan 16, 2023
1 parent e0f1618 commit 7c887c3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/rollouts-controller/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func newCommand() *cobra.Command {
namespaced bool
printVersion bool
metricPluginLocation string
metricSha256 string
metricPluginSha256 string
)
electOpts := controller.NewLeaderElectionOptions()
var command = cobra.Command{
Expand Down Expand Up @@ -203,7 +203,7 @@ func newCommand() *cobra.Command {
jobInformerFactory)

defaults.SetMetricPluginLocation(metricPluginLocation)
err = plugin.InitMetricsPlugin(metricPluginLocation, plugin.FileDownloaderImpl{}, metricSha256)
err = plugin.InitMetricsPlugin(metricPluginLocation, plugin.FileDownloaderImpl{}, metricPluginSha256)
if err != nil {
log.Fatalf("Failed to init metric plugin: %v", err)
}
Expand Down Expand Up @@ -250,7 +250,7 @@ func newCommand() *cobra.Command {
command.Flags().DurationVar(&electOpts.LeaderElectionRenewDeadline, "leader-election-renew-deadline", controller.DefaultLeaderElectionRenewDeadline, "The interval between attempts by the acting master to renew a leadership slot before it stops leading. This must be less than or equal to the lease duration. This is only applicable if leader election is enabled.")
command.Flags().DurationVar(&electOpts.LeaderElectionRetryPeriod, "leader-election-retry-period", controller.DefaultLeaderElectionRetryPeriod, "The duration the clients should wait between attempting acquisition and renewal of a leadership. This is only applicable if leader election is enabled.")
command.Flags().StringVar(&metricPluginLocation, "metric-plugin-location", defaults.DefaultMetricsPluginLocation, "The file path to the location of the metric plugin binary")
command.Flags().StringVar(&metricSha256, "metric-plugin-sha256", "", "The expected sha256 of the metric plugin binary")
command.Flags().StringVar(&metricPluginSha256, "metric-plugin-sha256", "", "The expected sha256 of the metric plugin binary")
return &command
}

Expand Down

0 comments on commit 7c887c3

Please sign in to comment.