Remove more unnecessary IMDS request logging #16966
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Ref: #16837 (comment)
Here is the call stack leading to the logging statement:
kops/vendor/github.com/aws/aws-sdk-go-v2/config/load_options.go
Lines 912 to 917 in 323dbae
kops/vendor/github.com/aws/aws-sdk-go-v2/aws/logging.go
Lines 16 to 21 in 323dbae
kops/vendor/github.com/aws/aws-sdk-go-v2/aws/logging.go
Lines 36 to 39 in 323dbae
kops/vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/request_middleware.go
Lines 112 to 115 in 323dbae
kops/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/middleware.go
Lines 402 to 405 in 323dbae
kops/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/middleware.go
Lines 74 to 79 in 323dbae
kops/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/middleware.go
Lines 204 to 205 in 323dbae
The empty
/
in the log is because the IMDS client doesn't use the typical service + operation scheme for its requests.