code: func appendDefaultEgressIgnoredIPs(egressIgnoredIPs []string) []string {
  	hasTaskMetadataEndpointIP := false
  	hasInstanceMetadataEndpointIP := false
  	for _, egressIgnoredIP := range egressIgnoredIPs {
  		if strings.TrimSpace(egressIgnoredIP) == taskMetadataEndpointIP {
  			hasTaskMetadataEndpointIP = true
  		}
  		if strings.TrimSpace(egressIgnoredIP) == instanceMetadataEndpointIP {
  			hasInstanceMetadataEndpointIP = true
  		}
  	}
  
  	if !hasTaskMetadataEndpointIP {
  		egressIgnoredIPs = append(egressIgnoredIPs, taskMetadataEndpointIP)
  	}
  	if !hasInstanceMetadataEndpointIP {
  		egressIgnoredIPs = append(egressIgnoredIPs, instanceMetadataEndpointIP)
  	}
  
  	return egressIgnoredIPs
  }
docs: // appendDefaultEgressIgnoredIPs append task metadata endpoint ip and
  // instance metadata ip address to egress ignored IPs if does not exist