mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 10:33:35 +00:00
rebase: bump the github-dependencies group across 1 directory with 7 updates
Bumps the github-dependencies group with 6 updates in the / directory: | Package | From | To | | --- | --- | --- | | [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) | `1.55.5` | `1.55.6` | | [github.com/aws/aws-sdk-go-v2/service/sts](https://github.com/aws/aws-sdk-go-v2) | `1.33.2` | `1.33.10` | | [github.com/kubernetes-csi/csi-lib-utils](https://github.com/kubernetes-csi/csi-lib-utils) | `0.19.0` | `0.20.0` | | [github.com/onsi/ginkgo/v2](https://github.com/onsi/ginkgo) | `2.22.0` | `2.22.2` | | [github.com/Azure/azure-sdk-for-go/sdk/azidentity](https://github.com/Azure/azure-sdk-for-go) | `1.8.0` | `1.8.1` | | [github.com/csi-addons/kubernetes-csi-addons](https://github.com/csi-addons/kubernetes-csi-addons) | `0.9.0` | `0.11.0` | Updates `github.com/aws/aws-sdk-go` from 1.55.5 to 1.55.6 - [Release notes](https://github.com/aws/aws-sdk-go/releases) - [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG_PENDING.md) - [Commits](https://github.com/aws/aws-sdk-go/compare/v1.55.5...v1.55.6) Updates `github.com/aws/aws-sdk-go-v2/service/sts` from 1.33.2 to 1.33.10 - [Release notes](https://github.com/aws/aws-sdk-go-v2/releases) - [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json) - [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/fms/v1.33.2...service/sns/v1.33.10) Updates `github.com/kubernetes-csi/csi-lib-utils` from 0.19.0 to 0.20.0 - [Release notes](https://github.com/kubernetes-csi/csi-lib-utils/releases) - [Commits](https://github.com/kubernetes-csi/csi-lib-utils/compare/v0.19.0...v0.20.0) Updates `github.com/onsi/ginkgo/v2` from 2.22.0 to 2.22.2 - [Release notes](https://github.com/onsi/ginkgo/releases) - [Changelog](https://github.com/onsi/ginkgo/blob/master/CHANGELOG.md) - [Commits](https://github.com/onsi/ginkgo/compare/v2.22.0...v2.22.2) Updates `github.com/onsi/gomega` from 1.36.1 to 1.36.2 - [Release notes](https://github.com/onsi/gomega/releases) - [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md) - [Commits](https://github.com/onsi/gomega/compare/v1.36.1...v1.36.2) Updates `github.com/Azure/azure-sdk-for-go/sdk/azidentity` from 1.8.0 to 1.8.1 - [Release notes](https://github.com/Azure/azure-sdk-for-go/releases) - [Changelog](https://github.com/Azure/azure-sdk-for-go/blob/main/documentation/release.md) - [Commits](https://github.com/Azure/azure-sdk-for-go/compare/sdk/azcore/v1.8.0...sdk/azidentity/v1.8.1) Updates `github.com/csi-addons/kubernetes-csi-addons` from 0.9.0 to 0.11.0 - [Release notes](https://github.com/csi-addons/kubernetes-csi-addons/releases) - [Commits](https://github.com/csi-addons/kubernetes-csi-addons/compare/v0.9.0...v0.11.0) --- updated-dependencies: - dependency-name: github.com/aws/aws-sdk-go dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-dependencies - dependency-name: github.com/aws/aws-sdk-go-v2/service/sts dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-dependencies - dependency-name: github.com/kubernetes-csi/csi-lib-utils dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-dependencies - dependency-name: github.com/onsi/ginkgo/v2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-dependencies - dependency-name: github.com/onsi/gomega dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-dependencies - dependency-name: github.com/Azure/azure-sdk-for-go/sdk/azidentity dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-dependencies - dependency-name: github.com/csi-addons/kubernetes-csi-addons dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-dependencies ... Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
committed by
mergify[bot]
parent
b1834552c1
commit
6bea1775bd
10
vendor/github.com/aws/smithy-go/CHANGELOG.md
generated
vendored
10
vendor/github.com/aws/smithy-go/CHANGELOG.md
generated
vendored
@ -1,3 +1,13 @@
|
||||
# Release (2025-01-21)
|
||||
|
||||
## General Highlights
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
## Module Highlights
|
||||
* `github.com/aws/smithy-go`: v1.22.2
|
||||
* **Bug Fix**: Fix HTTP metrics data race.
|
||||
* **Bug Fix**: Replace usages of deprecated ioutil package.
|
||||
|
||||
# Release (2024-11-15)
|
||||
|
||||
## General Highlights
|
||||
|
31
vendor/github.com/aws/smithy-go/CONTRIBUTING.md
generated
vendored
31
vendor/github.com/aws/smithy-go/CONTRIBUTING.md
generated
vendored
@ -39,6 +39,37 @@ To send us a pull request, please:
|
||||
GitHub provides additional document on [forking a repository](https://help.github.com/articles/fork-a-repo/) and
|
||||
[creating a pull request](https://help.github.com/articles/creating-a-pull-request/).
|
||||
|
||||
### Changelog Documents
|
||||
|
||||
(You can SKIP this step if you are only changing the code generator, and not the runtime).
|
||||
|
||||
When submitting a pull request please include a changelog file on a folder named `.changelog`.
|
||||
These are used to generate the content `CHANGELOG.md` and Release Notes. The format of the file is as follows:
|
||||
|
||||
```
|
||||
{
|
||||
"id": "12345678-1234-1234-1234-123456789012"
|
||||
"type": "bugfix"
|
||||
"collapse": true
|
||||
"description": "Fix improper use of printf-style functions.",
|
||||
"modules": [
|
||||
"."
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
* id: a UUID. This should also be used for the name of the file, so if your id is `12345678-1234-1234-1234-123456789012` the file should be named `12345678-1234-1234-1234-123456789012.json/`
|
||||
* type: one of the following:
|
||||
* bugfix: Fixing an existing bug
|
||||
* Feature: Adding a new feature to an existing service
|
||||
* Release: Releasing a new module
|
||||
* Dependency: Updating dependencies
|
||||
* Announcement: Making an announcement, like deprecation of a module
|
||||
* collapse: whether this change should appear separately on the release notes on every module listed on `modules` (`"collapse": false`), or if it should show up as a single entry (`"collapse": true`)
|
||||
* For the smithy-go repository this should always be `false`
|
||||
* description: Description of this change. Most of the times is the same as the title of the PR
|
||||
* modules: which Go modules does this change impact. The root module is expressed as "."
|
||||
|
||||
|
||||
## Finding contributions to work on
|
||||
Looking at the existing issues is a great way to find something to contribute on. As our projects, by default, use the default GitHub issue labels (enhancement/bug/duplicate/help wanted/invalid/question/wontfix), looking at any 'help wanted' issues is a great place to start.
|
||||
|
7
vendor/github.com/aws/smithy-go/Makefile
generated
vendored
7
vendor/github.com/aws/smithy-go/Makefile
generated
vendored
@ -98,5 +98,12 @@ module-version:
|
||||
##############
|
||||
.PHONY: install-changelog
|
||||
|
||||
external-changelog:
|
||||
mkdir -p .changelog
|
||||
cp changelog-template.json .changelog/00000000-0000-0000-0000-000000000000.json
|
||||
@echo "Generate a new UUID and update the file at .changelog/00000000-0000-0000-0000-000000000000.json"
|
||||
@echo "Make sure to rename the file with your new id, like .changelog/12345678-1234-1234-1234-123456789012.json"
|
||||
@echo "See CONTRIBUTING.md 'Changelog Documents' and an example at https://github.com/aws/smithy-go/pull/543/files"
|
||||
|
||||
install-changelog:
|
||||
go install ${REPOTOOLS_MODULE}/cmd/changelog@${REPOTOOLS_VERSION}
|
||||
|
9
vendor/github.com/aws/smithy-go/changelog-template.json
generated
vendored
Normal file
9
vendor/github.com/aws/smithy-go/changelog-template.json
generated
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"id": "00000000-0000-0000-0000-000000000000",
|
||||
"type": "feature|bugfix|dependency",
|
||||
"description": "Description of your changes",
|
||||
"collapse": false,
|
||||
"modules": [
|
||||
"."
|
||||
]
|
||||
}
|
2
vendor/github.com/aws/smithy-go/go_module_metadata.go
generated
vendored
2
vendor/github.com/aws/smithy-go/go_module_metadata.go
generated
vendored
@ -3,4 +3,4 @@
|
||||
package smithy
|
||||
|
||||
// goModuleVersion is the tagged release for this module
|
||||
const goModuleVersion = "1.22.1"
|
||||
const goModuleVersion = "1.22.2"
|
||||
|
2
vendor/github.com/aws/smithy-go/transport/http/host.go
generated
vendored
2
vendor/github.com/aws/smithy-go/transport/http/host.go
generated
vendored
@ -69,7 +69,7 @@ func ValidPortNumber(port string) bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// ValidHostLabel returns whether the label is a valid RFC 3986 host abel.
|
||||
// ValidHostLabel returns whether the label is a valid RFC 3986 host label.
|
||||
func ValidHostLabel(label string) bool {
|
||||
if l := len(label); l == 0 || l > 63 {
|
||||
return false
|
||||
|
44
vendor/github.com/aws/smithy-go/transport/http/metrics.go
generated
vendored
44
vendor/github.com/aws/smithy-go/transport/http/metrics.go
generated
vendored
@ -5,6 +5,7 @@ import (
|
||||
"crypto/tls"
|
||||
"net/http"
|
||||
"net/http/httptrace"
|
||||
"sync/atomic"
|
||||
"time"
|
||||
|
||||
"github.com/aws/smithy-go/metrics"
|
||||
@ -42,10 +43,10 @@ type timedClientDo struct {
|
||||
}
|
||||
|
||||
func (c *timedClientDo) Do(r *http.Request) (*http.Response, error) {
|
||||
c.hm.doStart = now()
|
||||
c.hm.doStart.Store(now())
|
||||
resp, err := c.ClientDo.Do(r)
|
||||
|
||||
c.hm.DoRequestDuration.Record(r.Context(), elapsed(c.hm.doStart))
|
||||
c.hm.DoRequestDuration.Record(r.Context(), c.hm.doStart.Elapsed())
|
||||
return resp, err
|
||||
}
|
||||
|
||||
@ -58,10 +59,10 @@ type httpMetrics struct {
|
||||
DoRequestDuration metrics.Float64Histogram // client.http.do_request_duration
|
||||
TimeToFirstByte metrics.Float64Histogram // client.http.time_to_first_byte
|
||||
|
||||
doStart time.Time
|
||||
dnsStart time.Time
|
||||
connectStart time.Time
|
||||
tlsStart time.Time
|
||||
doStart safeTime
|
||||
dnsStart safeTime
|
||||
connectStart safeTime
|
||||
tlsStart safeTime
|
||||
}
|
||||
|
||||
func newHTTPMetrics(meter metrics.Meter) (*httpMetrics, error) {
|
||||
@ -115,15 +116,15 @@ func newHTTPMetrics(meter metrics.Meter) (*httpMetrics, error) {
|
||||
}
|
||||
|
||||
func (m *httpMetrics) DNSStart(httptrace.DNSStartInfo) {
|
||||
m.dnsStart = now()
|
||||
m.dnsStart.Store(now())
|
||||
}
|
||||
|
||||
func (m *httpMetrics) ConnectStart(string, string) {
|
||||
m.connectStart = now()
|
||||
m.connectStart.Store(now())
|
||||
}
|
||||
|
||||
func (m *httpMetrics) TLSHandshakeStart() {
|
||||
m.tlsStart = now()
|
||||
m.tlsStart.Store(now())
|
||||
}
|
||||
|
||||
func (m *httpMetrics) GotConn(ctx context.Context) func(httptrace.GotConnInfo) {
|
||||
@ -140,25 +141,25 @@ func (m *httpMetrics) PutIdleConn(ctx context.Context) func(error) {
|
||||
|
||||
func (m *httpMetrics) DNSDone(ctx context.Context) func(httptrace.DNSDoneInfo) {
|
||||
return func(httptrace.DNSDoneInfo) {
|
||||
m.DNSLookupDuration.Record(ctx, elapsed(m.dnsStart))
|
||||
m.DNSLookupDuration.Record(ctx, m.dnsStart.Elapsed())
|
||||
}
|
||||
}
|
||||
|
||||
func (m *httpMetrics) ConnectDone(ctx context.Context) func(string, string, error) {
|
||||
return func(string, string, error) {
|
||||
m.ConnectDuration.Record(ctx, elapsed(m.connectStart))
|
||||
m.ConnectDuration.Record(ctx, m.connectStart.Elapsed())
|
||||
}
|
||||
}
|
||||
|
||||
func (m *httpMetrics) TLSHandshakeDone(ctx context.Context) func(tls.ConnectionState, error) {
|
||||
return func(tls.ConnectionState, error) {
|
||||
m.TLSHandshakeDuration.Record(ctx, elapsed(m.tlsStart))
|
||||
m.TLSHandshakeDuration.Record(ctx, m.tlsStart.Elapsed())
|
||||
}
|
||||
}
|
||||
|
||||
func (m *httpMetrics) GotFirstResponseByte(ctx context.Context) func() {
|
||||
return func() {
|
||||
m.TimeToFirstByte.Record(ctx, elapsed(m.doStart))
|
||||
m.TimeToFirstByte.Record(ctx, m.doStart.Elapsed())
|
||||
}
|
||||
}
|
||||
|
||||
@ -177,8 +178,21 @@ func (m *httpMetrics) addConnIdle(ctx context.Context, incr int64) {
|
||||
})
|
||||
}
|
||||
|
||||
func elapsed(start time.Time) float64 {
|
||||
type safeTime struct {
|
||||
atomic.Value // time.Time
|
||||
}
|
||||
|
||||
func (st *safeTime) Store(v time.Time) {
|
||||
st.Value.Store(v)
|
||||
}
|
||||
|
||||
func (st *safeTime) Load() time.Time {
|
||||
t, _ := st.Value.Load().(time.Time)
|
||||
return t
|
||||
}
|
||||
|
||||
func (st *safeTime) Elapsed() float64 {
|
||||
end := now()
|
||||
elapsed := end.Sub(start)
|
||||
elapsed := end.Sub(st.Load())
|
||||
return float64(elapsed) / 1e9
|
||||
}
|
||||
|
8
vendor/github.com/aws/smithy-go/transport/http/middleware_close_response_body.go
generated
vendored
8
vendor/github.com/aws/smithy-go/transport/http/middleware_close_response_body.go
generated
vendored
@ -2,10 +2,10 @@ package http
|
||||
|
||||
import (
|
||||
"context"
|
||||
"io"
|
||||
|
||||
"github.com/aws/smithy-go/logging"
|
||||
"github.com/aws/smithy-go/middleware"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
)
|
||||
|
||||
// AddErrorCloseResponseBodyMiddleware adds the middleware to automatically
|
||||
@ -30,7 +30,7 @@ func (m *errorCloseResponseBodyMiddleware) HandleDeserialize(
|
||||
if err != nil {
|
||||
if resp, ok := out.RawResponse.(*Response); ok && resp != nil && resp.Body != nil {
|
||||
// Consume the full body to prevent TCP connection resets on some platforms
|
||||
_, _ = io.Copy(ioutil.Discard, resp.Body)
|
||||
_, _ = io.Copy(io.Discard, resp.Body)
|
||||
// Do not validate that the response closes successfully.
|
||||
resp.Body.Close()
|
||||
}
|
||||
@ -64,7 +64,7 @@ func (m *closeResponseBody) HandleDeserialize(
|
||||
|
||||
if resp, ok := out.RawResponse.(*Response); ok {
|
||||
// Consume the full body to prevent TCP connection resets on some platforms
|
||||
_, copyErr := io.Copy(ioutil.Discard, resp.Body)
|
||||
_, copyErr := io.Copy(io.Discard, resp.Body)
|
||||
if copyErr != nil {
|
||||
middleware.GetLogger(ctx).Logf(logging.Warn, "failed to discard remaining HTTP response body, this may affect connection reuse")
|
||||
}
|
||||
|
5
vendor/github.com/aws/smithy-go/transport/http/request.go
generated
vendored
5
vendor/github.com/aws/smithy-go/transport/http/request.go
generated
vendored
@ -4,7 +4,6 @@ import (
|
||||
"context"
|
||||
"fmt"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"strings"
|
||||
@ -167,7 +166,7 @@ func (r *Request) Build(ctx context.Context) *http.Request {
|
||||
|
||||
switch stream := r.stream.(type) {
|
||||
case *io.PipeReader:
|
||||
req.Body = ioutil.NopCloser(stream)
|
||||
req.Body = io.NopCloser(stream)
|
||||
req.ContentLength = -1
|
||||
default:
|
||||
// HTTP Client Request must only have a non-nil body if the
|
||||
@ -175,7 +174,7 @@ func (r *Request) Build(ctx context.Context) *http.Request {
|
||||
// Client will interpret a non-nil body and ContentLength 0 as
|
||||
// "unknown". This is unwanted behavior.
|
||||
if req.ContentLength != 0 && r.stream != nil {
|
||||
req.Body = iointernal.NewSafeReadCloser(ioutil.NopCloser(stream))
|
||||
req.Body = iointernal.NewSafeReadCloser(io.NopCloser(stream))
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user