Skip to content

Commit e436944

Browse files
Code style fixes for PR 1061 (#1062)
* upgrade to latest dependencies bumping knative.dev/reconciler-test 177f826...6c535f1: > 6c535f1 Fix data race on publish images (# 412) bumping knative.dev/pkg 4a03844...9d7bd23: > 9d7bd23 [release-1.7] Fix nil pointer deref in drain when it's reset (# 2652) > 5f92031 [release-1.7] gofmt with go1.19 (# 2650) > 3b65316 [release-1.7] Function AllowRestrictedPodSecurityStandard for modifying test pods (# 2636) bumping knative.dev/eventing a9151b5...96c9d32: > 96c9d32 [release-1.7] Set transition time initially on sequence statuses (# 6654) > 057ee26 [release-1.7] Rebuild using Go 1.19.4 (to address CVEs) (# 6641) > a4a252f [release-1.7] Fix PingSource adapter metrics (# 6630) > d9552f7 [release-1.7] [Scheduler] Handle permanent pending pods (# 6604) > f17bf2f [release-1.7] Updates for Go 1.19 (# 6594) (# 6607) > 52dc53c Add readiness and liveness probes in controller (# 6570) > 0bf545a [release-1.7] Properly export trace for duplicated "finished" event (# 6540) > 9967e86 [release-1.7] Remove strict check in scorer plugins and respect maxskew, requeue when no pods available rather than fail Scheduler (# 6528) > 6ffef0f Make some broker conformance tests decoratable with broker options (# 6517) > 6822f0d [release-1.7] InMemoryChannel receiver validates received events (# 6512) Signed-off-by: Knative Automation <[email protected]> * Fixes for code style --------- Signed-off-by: Knative Automation <[email protected]> Co-authored-by: Knative Automation <[email protected]>
1 parent b4d2f33 commit e436944

File tree

193 files changed

+510
-876
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

193 files changed

+510
-876
lines changed

go.mod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ require (
2121
k8s.io/client-go v0.23.9
2222
k8s.io/code-generator v0.23.9
2323
k8s.io/kube-openapi v0.0.0-20211115234752-e816edb12b65
24-
knative.dev/eventing v0.34.1
24+
knative.dev/eventing v0.34.7
2525
knative.dev/hack v0.0.0-20220823140917-8d1e4ccf9dc3
26-
knative.dev/pkg v0.0.0-20220818004048-4a03844c0b15
27-
knative.dev/reconciler-test v0.0.0-20220818122349-177f8264c28c
26+
knative.dev/pkg v0.0.0-20221123011941-9d7bd235ceed
27+
knative.dev/reconciler-test v0.0.0-20221028112809-6c535f10406b
2828
sigs.k8s.io/controller-runtime v0.11.2
2929
)
3030

go.sum

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1260,14 +1260,14 @@ k8s.io/utils v0.0.0-20210802155522-efc7438f0176/go.mod h1:jPW/WVKK9YHAvNhRxK0md/
12601260
k8s.io/utils v0.0.0-20211116205334-6203023598ed/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA=
12611261
k8s.io/utils v0.0.0-20220210201930-3a6ce19ff2f9 h1:HNSDgDCrr/6Ly3WEGKZftiE7IY19Vz2GdbOCyI4qqhc=
12621262
k8s.io/utils v0.0.0-20220210201930-3a6ce19ff2f9/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA=
1263-
knative.dev/eventing v0.34.1 h1:r6QuQmDCmmSANdTRLdbKb6YcYaJoeNpEuFfS8Bq0ZgQ=
1264-
knative.dev/eventing v0.34.1/go.mod h1:6UnNnPrEUNAM9PfCpf7L8N7G/1vq+HQlpOjzndY6ryw=
1263+
knative.dev/eventing v0.34.7 h1:P2YmnDBxpqQatVTZRVHftPv3wuO/+GN83kCXQVgtM20=
1264+
knative.dev/eventing v0.34.7/go.mod h1:6UnNnPrEUNAM9PfCpf7L8N7G/1vq+HQlpOjzndY6ryw=
12651265
knative.dev/hack v0.0.0-20220823140917-8d1e4ccf9dc3 h1:umaeMRecA0g5g48L9tnEAkTBIitr9eKWMyJYo9YttAA=
12661266
knative.dev/hack v0.0.0-20220823140917-8d1e4ccf9dc3/go.mod h1:t/azP8I/Cygaw+87O7rkAPrNRjCelmtfSzWzu/9TM7I=
1267-
knative.dev/pkg v0.0.0-20220818004048-4a03844c0b15 h1:GNmzHVaUo3zoi/wtIN71LPQaWy6DdoYzmb+GIq2s4fw=
1268-
knative.dev/pkg v0.0.0-20220818004048-4a03844c0b15/go.mod h1:YLjXbkQLlGHok+u0FLfMbBHFzY9WGu3GHhnrptoAy8I=
1269-
knative.dev/reconciler-test v0.0.0-20220818122349-177f8264c28c h1:wWtcZ1ZyP+mXx4xQmcKzKyXkk/t07/iSq/jqhqxoyCM=
1270-
knative.dev/reconciler-test v0.0.0-20220818122349-177f8264c28c/go.mod h1:A437yxlDVDVKQv779WlB9Nj9lWAMoOKHQXFXls24Sps=
1267+
knative.dev/pkg v0.0.0-20221123011941-9d7bd235ceed h1:Xk4DRdbRdI7Ky8vOGQK4S3nUHTRRpTjRMsK+9Zif94s=
1268+
knative.dev/pkg v0.0.0-20221123011941-9d7bd235ceed/go.mod h1:M+Amt1YZl5Nkl6+5FDFVIPaivsk2o5K/cIzOVq6Nsg0=
1269+
knative.dev/reconciler-test v0.0.0-20221028112809-6c535f10406b h1:spcYq+Lz7G/ErdgtsqVhhb8Zt9RAGEGUB+bGZ9NMsSU=
1270+
knative.dev/reconciler-test v0.0.0-20221028112809-6c535f10406b/go.mod h1:A437yxlDVDVKQv779WlB9Nj9lWAMoOKHQXFXls24Sps=
12711271
pgregory.net/rapid v0.3.3 h1:jCjBsY4ln4Atz78QoBWxUEvAHaFyNDQg9+WU62aCn1U=
12721272
pgregory.net/rapid v0.3.3/go.mod h1:UYpPVyjFHzYBGHIxLFoupi8vwk6rXNzRY9OMvVxFIOU=
12731273
rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8=

pkg/adapter/adapter_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ package rabbitmq
1919
import (
2020
"context"
2121
"encoding/json"
22-
"io/ioutil"
22+
"io"
2323
"net/http"
2424
"net/http/httptest"
2525
"reflect"
@@ -209,7 +209,7 @@ func (h *fakeHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
209209
h.mu.Lock()
210210
defer h.mu.Unlock()
211211
h.header = r.Header
212-
body, err := ioutil.ReadAll(r.Body)
212+
body, err := io.ReadAll(r.Body)
213213
if err != nil {
214214
http.Error(w, "can not read body", http.StatusBadRequest)
215215
return

pkg/apis/duck/v1beta1/register_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
11
/*
22
Copyright 2020 The Knative Authors
3+
34
Licensed under the Apache License, Version 2.0 (the "License");
45
you may not use this file except in compliance with the License.
56
You may obtain a copy of the License at
7+
68
http://www.apache.org/licenses/LICENSE-2.0
9+
710
Unless required by applicable law or agreed to in writing, software
811
distributed under the License is distributed on an "AS IS" BASIS,
912
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1013
See the License for the specific language governing permissions and
1114
limitations under the License.
1215
*/
16+
1317
package v1beta1
1418

1519
import (

pkg/client/clientset/versioned/fake/register.go

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/client/clientset/versioned/scheme/register.go

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/dispatcher/dispatcher_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ package dispatcher
1818

1919
import (
2020
"context"
21-
"io/ioutil"
21+
"io"
2222
"net/http"
2323
"net/http/httptest"
2424
"sync"
@@ -152,7 +152,7 @@ func (h *fakeHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
152152
h.mu.Lock()
153153
defer h.mu.Unlock()
154154
h.header = r.Header
155-
body, err := ioutil.ReadAll(r.Body)
155+
body, err := io.ReadAll(r.Body)
156156
if err != nil {
157157
http.Error(w, "can not read body", http.StatusBadRequest)
158158
return

third_party/pkg/client/clientset/versioned/fake/register.go

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

third_party/pkg/client/clientset/versioned/scheme/register.go

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)