Skip to content

Commit

Permalink
Linter issue fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
akgalwas committed Sep 22, 2023
1 parent 812c5cd commit b032b34
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ func init() {
//+kubebuilder:scaffold:scheme
}

const defaultExpirationTimeInHours = 7 * 12

func main() {
var metricsAddr string
var enableLeaderElection bool
Expand All @@ -64,8 +66,8 @@ func main() {
"Enable leader election for controller manager. "+
"Enabling this will ensure there is only one active controller manager.")
flag.StringVar(&gardenerKubeconfigPath, "gardener-kubeconfig-path", "/gardener/kubeconfig/kubeconfig", "Kubeconfig file for Gardener cluster")
flag.StringVar(&gardenerProjectName, "gardener-project-name", "gardener-project", "Name of the Gardener project")
flag.Int64Var(&expirationInHours, "expiration-in-hours", 12, "Dynamic kubeconfig expiration time in seconds")
flag.StringVar(&gardenerProjectName, "gardener-project-name", "frog-dev", "Name of the Gardener project")
flag.Int64Var(&expirationInHours, "expiration-in-hours", defaultExpirationTimeInHours, "Dynamic kubeconfig expiration time in seconds")
opts := zap.Options{
Development: true,
}
Expand Down

0 comments on commit b032b34

Please sign in to comment.