Skip to content

Commit

Permalink
dev: estra logger
Browse files Browse the repository at this point in the history
  • Loading branch information
sunsingerus committed Dec 13, 2024
1 parent 4b76438 commit 99a5aab
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkg/model/chop_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
"gopkg.in/d4l3k/messagediff.v1"

api "github.com/altinity/clickhouse-operator/pkg/apis/clickhouse.altinity.com/v1"
log "github.com/altinity/clickhouse-operator/pkg/announcer"
"github.com/altinity/clickhouse-operator/pkg/chop"
)

Expand Down Expand Up @@ -157,6 +158,7 @@ func IsConfigurationChangeRequiresReboot(host *api.Host) bool {
}
new = host.GetZookeeper()
if isZookeeperChangeRequiresReboot(host, old, new) {
log.Info("ChangeRequiresReboot isZookeeperChangeRequiresReboot: true")
return true
}
}
Expand All @@ -170,6 +172,7 @@ func IsConfigurationChangeRequiresReboot(host *api.Host) bool {
new = host.GetCR().GetSpec().GetConfiguration().GetProfiles()
}
if isSettingsChangeRequiresReboot(host, configurationRestartPolicyRulesSectionProfiles, old, new) {
log.Info("ChangeRequiresReboot isSettingsChangeRequiresReboot(profiles global): true")
return true
}
}
Expand All @@ -183,6 +186,7 @@ func IsConfigurationChangeRequiresReboot(host *api.Host) bool {
new = host.GetCR().GetSpec().GetConfiguration().GetQuotas()
}
if isSettingsChangeRequiresReboot(host, configurationRestartPolicyRulesSectionQuotas, old, new) {
log.Info("ChangeRequiresReboot isSettingsChangeRequiresReboot(quotas global): true")
return true
}
}
Expand All @@ -196,6 +200,7 @@ func IsConfigurationChangeRequiresReboot(host *api.Host) bool {
new = host.GetCR().GetSpec().GetConfiguration().GetSettings()
}
if isSettingsChangeRequiresReboot(host, configurationRestartPolicyRulesSectionSettings, old, new) {
log.Info("ChangeRequiresReboot isSettingsChangeRequiresReboot(settings global): true")
return true
}
}
Expand All @@ -207,6 +212,7 @@ func IsConfigurationChangeRequiresReboot(host *api.Host) bool {
}
new = host.Settings
if isSettingsChangeRequiresReboot(host, configurationRestartPolicyRulesSectionSettings, old, new) {
log.Info("ChangeRequiresReboot isSettingsChangeRequiresReboot(settings local): true")
return true
}
}
Expand All @@ -228,6 +234,7 @@ func IsConfigurationChangeRequiresReboot(host *api.Host) bool {
)
}
if isSettingsChangeRequiresReboot(host, configurationRestartPolicyRulesSectionFiles, old, new) {
log.Info("ChangeRequiresReboot isSettingsChangeRequiresReboot(files global): true")
return true
}
}
Expand All @@ -247,6 +254,7 @@ func IsConfigurationChangeRequiresReboot(host *api.Host) bool {
true,
)
if isSettingsChangeRequiresReboot(host, configurationRestartPolicyRulesSectionFiles, old, new) {
log.Info("ChangeRequiresReboot isSettingsChangeRequiresReboot(files local): true")
return true
}
}
Expand Down

0 comments on commit 99a5aab

Please sign in to comment.