Skip to content

Commit 99c5130

Browse files
committed
feat(installer): enable logagent default
1 parent 17c2509 commit 99c5130

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

cmd/tke-installer/app/installer/installer.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -594,6 +594,7 @@ func (t *TKE) setConfigDefault(config *types.Config) {
594594
}
595595
}
596596

597+
config.Logagent = new(types.Logagent)
597598
}
598599
func (t *TKE) setClusterDefault(cluster *platformv1.Cluster, config *types.Config) {
599600
if cluster.APIVersion == "" {

cmd/tke-installer/app/installer/types/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ type Config struct {
3939
Registry Registry `json:"registry"`
4040
Business *Business `json:"business,omitempty"`
4141
Monitor *Monitor `json:"monitor,omitempty"`
42-
Logagent Logagent `json:"logagent,omitempty"`
42+
Logagent *Logagent `json:"logagent,omitempty"`
4343
HA *HA `json:"ha,omitempty"`
4444
Gateway *Gateway `json:"gateway,omitempty"`
4545
Audit *Audit `json:"audit,omitempty"`

0 commit comments

Comments
 (0)