Skip to content

Commit

Permalink
Merge pull request #208 from roman-kiselenko/feature/ignore-empty-def…
Browse files Browse the repository at this point in the history
…ault-cni

Reduce useless log messages about default CNI network
  • Loading branch information
openshift-merge-bot[bot] authored Jul 8, 2024
2 parents 48da106 + e4a886b commit 0692f4e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/ocicni/ocicni.go
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,9 @@ func (plugin *cniNetworkPlugin) syncNetworkConfig(ctx context.Context) error {
// Update defaultNetName if it is changeable
if plugin.defaultNetName.changeable {
plugin.defaultNetName.name = defaultNetName
logrus.Infof("Updated default CNI network name to %s", defaultNetName)
if defaultNetName != "" {
logrus.Infof("Updated default CNI network name to %s", defaultNetName)
}
} else {
logrus.Debugf("Default CNI network name %s is unchangeable", plugin.defaultNetName.name)
}
Expand Down

0 comments on commit 0692f4e

Please sign in to comment.