Skip to content

Commit

Permalink
refactor: refactor by code review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
zyy17 committed Sep 30, 2024
1 parent d1870e6 commit 7a0b910
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apis/v1alpha1/defaulting.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,11 +189,11 @@ func (in *GreptimeDBCluster) defaultMonitoringStandaloneSpec() *GreptimeDBStanda
}

if root := osp.GetOSSStorage().GetRoot(); root != "" {
standalone.Spec.ObjectStorageProvider.GCS.Root = fmt.Sprintf("%s/monitoring", root)
standalone.Spec.ObjectStorageProvider.OSS.Root = fmt.Sprintf("%s/monitoring", root)
}

if root := osp.GetGCSStorage().GetRoot(); root != "" {
standalone.Spec.ObjectStorageProvider.OSS.Root = fmt.Sprintf("%s/monitoring", root)
standalone.Spec.ObjectStorageProvider.GCS.Root = fmt.Sprintf("%s/monitoring", root)
}
}

Expand Down

0 comments on commit 7a0b910

Please sign in to comment.