From b032b344176914e69e4186dfb3d533b763ae2291 Mon Sep 17 00:00:00 2001 From: Arkadiusz Galwas Date: Fri, 22 Sep 2023 12:12:55 +0200 Subject: [PATCH] Linter issue fixed --- cmd/main.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cmd/main.go b/cmd/main.go index 76291b83..6cb147ee 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -50,6 +50,8 @@ func init() { //+kubebuilder:scaffold:scheme } +const defaultExpirationTimeInHours = 7 * 12 + func main() { var metricsAddr string var enableLeaderElection bool @@ -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, }