Skip to content

Commit b42b259

Browse files
upgrade to latest dependencies (#877)
bumping knative.dev/pkg 8535fcc...3f6a546: > 3f6a546 Fix rand source in name (# 3070) > ee1db86 Update linter config and address lint warnings/failures (# 3068) > 26bc7b4 Register AuthenticatableType in schema (# 3069) Signed-off-by: Knative Automation <[email protected]>
1 parent 46bd851 commit b42b259

File tree

23 files changed

+61
-50
lines changed

23 files changed

+61
-50
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ require (
1111
k8s.io/code-generator v0.29.2
1212
k8s.io/kube-openapi v0.0.0-20231010175941-2dd684a91f00
1313
knative.dev/hack v0.0.0-20240607132042-09143140a254
14-
knative.dev/pkg v0.0.0-20240625072707-8535fcc248ae
14+
knative.dev/pkg v0.0.0-20240626134149-3f6a546ac3a4
1515
)
1616

1717
require (

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -663,8 +663,8 @@ k8s.io/utils v0.0.0-20240102154912-e7106e64919e h1:eQ/4ljkx21sObifjzXwlPKpdGLrCf
663663
k8s.io/utils v0.0.0-20240102154912-e7106e64919e/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0=
664664
knative.dev/hack v0.0.0-20240607132042-09143140a254 h1:1YFnu3U6dWZg0oxm6GU8kEdA9A+BvSWKJO7sg3N0kq8=
665665
knative.dev/hack v0.0.0-20240607132042-09143140a254/go.mod h1:yk2OjGDsbEnQjfxdm0/HJKS2WqTLEFg/N6nUs6Rqx3Q=
666-
knative.dev/pkg v0.0.0-20240625072707-8535fcc248ae h1:unXplcQLqwO+QtSepyRI2zy4ZD/tciPro9Y4uVG6n6g=
667-
knative.dev/pkg v0.0.0-20240625072707-8535fcc248ae/go.mod h1:Wikg4u73T6vk9TctrxZt60VXzqmGEQIx0iKfk1+9o4c=
666+
knative.dev/pkg v0.0.0-20240626134149-3f6a546ac3a4 h1:slPKf3UKdBFZlz+hFy+KXzTgY9yOePLzRuEhKzgc5a4=
667+
knative.dev/pkg v0.0.0-20240626134149-3f6a546ac3a4/go.mod h1:Wikg4u73T6vk9TctrxZt60VXzqmGEQIx0iKfk1+9o4c=
668668
rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8=
669669
rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0=
670670
rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA=

vendor/knative.dev/pkg/apis/condition_set.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ limitations under the License.
1717
package apis
1818

1919
import (
20+
"errors"
2021
"fmt"
2122
"reflect"
2223
"sort"
@@ -233,7 +234,7 @@ func (r conditionsImpl) ClearCondition(t ConditionType) error {
233234
}
234235
// Terminal conditions are not handled as they can't be nil
235236
if r.isTerminal(t) {
236-
return fmt.Errorf("clearing terminal conditions not implemented")
237+
return errors.New("clearing terminal conditions not implemented")
237238
}
238239
cond := r.GetCondition(t)
239240
if cond == nil {

vendor/knative.dev/pkg/apis/deprecated.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ func getPrefixedNamedFieldValues(prefix string, obj interface{}) (map[string]ref
9494
return fields, inlined
9595
}
9696

97-
for i := 0; i < objValue.NumField(); i++ {
97+
for i := range objValue.NumField() {
9898
tf := objValue.Type().Field(i)
9999
if v := objValue.Field(i); v.IsValid() {
100100
jTag := tf.Tag.Get("json")

vendor/knative.dev/pkg/apis/duck/v1/destination.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,11 @@ func (d *Destination) SetDefaults(ctx context.Context) {
103103
}
104104
}
105105

106-
func validateCACerts(CACert *string) *apis.FieldError {
106+
func validateCACerts(caCert *string) *apis.FieldError {
107107
// Check the object.
108108
var errs *apis.FieldError
109109

110-
block, err := pem.Decode([]byte(*CACert))
110+
block, err := pem.Decode([]byte(*caCert))
111111
if err != nil && block == nil {
112112
errs = errs.Also(apis.ErrInvalidValue("CA Cert provided is invalid", "caCert"))
113113
return errs

vendor/knative.dev/pkg/apis/duck/v1/knative_reference.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ func (kr *KReference) Validate(ctx context.Context) *apis.FieldError {
102102
Details: fmt.Sprintf("parent namespace: %q does not match ref: %q", parentNS, kr.Namespace),
103103
})
104104
}
105-
106105
}
107106
}
108107
return errs

vendor/knative.dev/pkg/apis/duck/v1/register.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ func addKnownTypes(scheme *runtime.Scheme) error {
5252
(&KResource{}).GetListType(),
5353
&AddressableType{},
5454
(&AddressableType{}).GetListType(),
55+
&AuthenticatableType{},
56+
(&AuthenticatableType{}).GetListType(),
5557
&Source{},
5658
(&Source{}).GetListType(),
5759
&WithPod{},

vendor/knative.dev/pkg/apis/duck/v1/status_types.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ func (s *Status) ConvertTo(ctx context.Context, sink *Status, predicates ...func
9797

9898
conditions := make(apis.Conditions, 0, len(s.Conditions))
9999
for _, c := range s.Conditions {
100-
101100
// Copy over the "happy" condition, which is the only condition that
102101
// we can reliably transfer.
103102
if c.Type == apis.ConditionReady || c.Type == apis.ConditionSucceeded {

vendor/knative.dev/pkg/apis/kind2resource.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ limitations under the License.
1717
package apis
1818

1919
import (
20-
"fmt"
2120
"strings"
2221

2322
"k8s.io/apimachinery/pkg/runtime/schema"
@@ -41,7 +40,7 @@ func KindToResource(gvk schema.GroupVersionKind) schema.GroupVersionResource {
4140
func pluralizeKind(kind string) string {
4241
ret := strings.ToLower(kind)
4342
if strings.HasSuffix(ret, "s") {
44-
return fmt.Sprintf("%ses", ret)
43+
return ret + "es"
4544
}
46-
return fmt.Sprintf("%ss", ret)
45+
return ret + "s"
4746
}

vendor/knative.dev/pkg/codegen/cmd/injection-gen/args/args.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ limitations under the License.
1717
package args
1818

1919
import (
20-
"fmt"
20+
"errors"
2121

2222
"github.com/spf13/pflag"
2323
"k8s.io/gengo/args"
@@ -59,13 +59,13 @@ func Validate(genericArgs *args.GeneratorArgs) error {
5959
customArgs := genericArgs.CustomArgs.(*CustomArgs)
6060

6161
if len(genericArgs.OutputPackagePath) == 0 {
62-
return fmt.Errorf("output package cannot be empty")
62+
return errors.New("output package cannot be empty")
6363
}
6464
if len(customArgs.VersionedClientSetPackage) == 0 {
65-
return fmt.Errorf("versioned clientset package cannot be empty")
65+
return errors.New("versioned clientset package cannot be empty")
6666
}
6767
if len(customArgs.ExternalVersionsInformersPackage) == 0 {
68-
return fmt.Errorf("external versions informers package cannot be empty")
68+
return errors.New("external versions informers package cannot be empty")
6969
}
7070

7171
return nil

0 commit comments

Comments
 (0)