From 52f7a5100756b0b42125fa54fa6d30837b2e2c69 Mon Sep 17 00:00:00 2001 From: "Roland.Ma" Date: Mon, 30 Aug 2021 04:53:18 +0000 Subject: [PATCH] fix coding style Signed-off-by: Roland.Ma --- config/gateway/values.yaml | 3 ++- pkg/apiserver/config/config.go | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/config/gateway/values.yaml b/config/gateway/values.yaml index 0210eb666..9ca7b68ae 100644 --- a/config/gateway/values.yaml +++ b/config/gateway/values.yaml @@ -22,4 +22,5 @@ service: ## for nginx controller, same with controller deployment: annotations: {} - replicas: 1 \ No newline at end of file + replicas: 1 + \ No newline at end of file diff --git a/pkg/apiserver/config/config.go b/pkg/apiserver/config/config.go index 5e0d0907e..833ecd51d 100644 --- a/pkg/apiserver/config/config.go +++ b/pkg/apiserver/config/config.go @@ -105,7 +105,7 @@ type Config struct { NotificationOptions *notification.Options `json:"notification,omitempty" yaml:"notification,omitempty" mapstructure:"notification"` KubeEdgeOptions *kubeedge.Options `json:"kubeedge,omitempty" yaml:"kubeedge,omitempty" mapstructure:"kubeedge"` MeteringOptions *metering.Options `json:"metering,omitempty" yaml:"metering,omitempty" mapstructure:"metering"` - GatewayOptions *gateway.Options `json:"gateway,omitempty" yaml:"router,omitempty" mapstructure:"router"` + GatewayOptions *gateway.Options `json:"gateway,omitempty" yaml:"gateway,omitempty" mapstructure:"gateway"` } // newConfig creates a default non-empty Config