mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 13:37:30 +00:00
Merge pull request #40763 from derekwaynecarr/log-noise-aws
Automatic merge from submit-queue (batch tested with PRs 40638, 40742, 40710, 40718, 40763) Reduce log noise when aws cloud cannot find public-ip4 metadata **What this PR does / why we need it**: The PR removes excessive log spam produced by the aws cloud provider for normal operating conditions. **Which issue this PR fixes** fixes https://github.com/kubernetes/kubernetes/issues/23155 **Special notes for your reviewer**: **Release note**: ```release-note NONE ```
This commit is contained in:
commit
9ae2dfacf1
@ -27,7 +27,7 @@ import (
|
|||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"gopkg.in/gcfg.v1"
|
gcfg "gopkg.in/gcfg.v1"
|
||||||
|
|
||||||
"github.com/aws/aws-sdk-go/aws"
|
"github.com/aws/aws-sdk-go/aws"
|
||||||
"github.com/aws/aws-sdk-go/aws/awserr"
|
"github.com/aws/aws-sdk-go/aws/awserr"
|
||||||
@ -904,7 +904,7 @@ func (c *Cloud) NodeAddresses(name types.NodeName) ([]v1.NodeAddress, error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
//TODO: It would be nice to be able to determine the reason for the failure,
|
//TODO: It would be nice to be able to determine the reason for the failure,
|
||||||
// but the AWS client masks all failures with the same error description.
|
// but the AWS client masks all failures with the same error description.
|
||||||
glog.V(2).Info("Could not determine public IP from AWS metadata.")
|
glog.V(4).Info("Could not determine public IP from AWS metadata.")
|
||||||
} else {
|
} else {
|
||||||
addresses = append(addresses, v1.NodeAddress{Type: v1.NodeExternalIP, Address: externalIP})
|
addresses = append(addresses, v1.NodeAddress{Type: v1.NodeExternalIP, Address: externalIP})
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user