Skip to content

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
Signed-off-by: Zahari Dichev <zaharidichev@gmail.com>
  • Loading branch information
zaharidichev committed Apr 2, 2024
1 parent dcb5582 commit c8d362b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/iptables/iptables.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func ConfigureFirewall(firewallConfiguration FirewallConfiguration) error {
return nil
}

// CleanupFirewallConfig removed the iptables rules that have been added as a result of
// CleanupFirewallConfig removes the iptables rules that have been added as a result of
// calling ConfigureFirewall.
func CleanupFirewallConfig(firewallConfiguration FirewallConfiguration) error {
log.Debugf("tracing script execution as [%s]", executionTraceID)
Expand Down Expand Up @@ -167,8 +167,7 @@ func (fc FirewallConfiguration) cleanupRules(commands []*exec.Cmd) []*exec.Cmd {
return commands
}

// formatComment is used to format iptables comments in such way that it is possible to identify when the rules were added.
// This helps debug when iptables has some stale rules from previous runs, something that can happen frequently on minikube.
// formatComment is used to format iptables comments
func formatComment(text string) string {
return fmt.Sprintf("proxy-init/%s", text)
}
Expand Down

0 comments on commit c8d362b

Please sign in to comment.