Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

don't log all nodenames #2041

Merged
merged 1 commit into from
Mar 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkg/firewalls/firewalls.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func NewFirewallPool(cloud Firewall, namer *namer_util.Namer, l7SrcRanges []stri

// Sync firewall rules with the cloud.
func (fr *FirewallRules) Sync(nodeNames, additionalPorts, additionalRanges []string, allowNodePort bool) error {
klog.V(4).Infof("Sync(%v)", nodeNames)
klog.V(4).Infof("Sync %d nodes", len(nodeNames))
name := fr.namer.FirewallRule()
existingFirewall, _ := fr.cloud.GetFirewall(name)

Expand Down
4 changes: 2 additions & 2 deletions pkg/instancegroups/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ func (m *manager) add(groupName string, names []string) error {
events.GlobalEventf(m.recorder, core.EventTypeNormal, events.AddNodes, "Adding %s to InstanceGroup %q", events.TruncatedStringList(names), groupName)
var errs []error
for zone, nodeNames := range m.splitNodesByZone(names) {
klog.V(1).Infof("Adding nodes %v to %v in zone %v", nodeNames, groupName, zone)
klog.V(1).Infof("Adding %d nodes to %v in zone %v", len(nodeNames), groupName, zone)
if err := m.cloud.AddInstancesToInstanceGroup(groupName, zone, m.getInstanceReferences(zone, nodeNames)); err != nil {
errs = append(errs, err)
}
Expand All @@ -301,7 +301,7 @@ func (m *manager) remove(groupName string, names []string) error {
events.GlobalEventf(m.recorder, core.EventTypeNormal, events.RemoveNodes, "Removing %s from InstanceGroup %q", events.TruncatedStringList(names), groupName)
var errs []error
for zone, nodeNames := range m.splitNodesByZone(names) {
klog.V(1).Infof("Removing nodes %v from %v in zone %v", nodeNames, groupName, zone)
klog.V(1).Infof("Removing %d nodes from %v in zone %v", len(nodeNames), groupName, zone)
if err := m.cloud.RemoveInstancesFromInstanceGroup(groupName, zone, m.getInstanceReferences(zone, nodeNames)); err != nil {
errs = append(errs, err)
}
Expand Down