diff --git a/cmd/tke-installer/app/installer/installer.go b/cmd/tke-installer/app/installer/installer.go index c0bb4ff23..aa65a9991 100644 --- a/cmd/tke-installer/app/installer/installer.go +++ b/cmd/tke-installer/app/installer/installer.go @@ -594,6 +594,7 @@ func (t *TKE) setConfigDefault(config *types.Config) { } } + config.Logagent = new(types.Logagent) } func (t *TKE) setClusterDefault(cluster *platformv1.Cluster, config *types.Config) { if cluster.APIVersion == "" { diff --git a/cmd/tke-installer/app/installer/types/types.go b/cmd/tke-installer/app/installer/types/types.go index 7d00964f3..d56199937 100644 --- a/cmd/tke-installer/app/installer/types/types.go +++ b/cmd/tke-installer/app/installer/types/types.go @@ -39,7 +39,7 @@ type Config struct { Registry Registry `json:"registry"` Business *Business `json:"business,omitempty"` Monitor *Monitor `json:"monitor,omitempty"` - Logagent Logagent `json:"logagent,omitempty"` + Logagent *Logagent `json:"logagent,omitempty"` HA *HA `json:"ha,omitempty"` Gateway *Gateway `json:"gateway,omitempty"` Audit *Audit `json:"audit,omitempty"`