Commit Graph

18 Commits

Author SHA1 Message Date
Dave Protasowski 4e27b2e680
bump min k8s version to 1.32 (#3184)
* bump version strings

* bump go.mod

* run ./hack/update-deps.sh

* run ./hack/update-codegen.sh

* fix build

* fix fuzzing lib change

* switch fuzzers to use randfill

* run ./hack/update-deps.sh

* gofumpt file

* fix webhook build on go1.24

* ignore endpoint deprecation

* disable a staticcheck that isn't really that bad

* fix nolint directives

* don't use deprecated List and WatchFuncs

* fix deprecation of gengo.ExtractCommentTags

* apply demorgan's law where it makes sense
2025-06-10 21:07:45 +00:00
Dave Protasowski accfe36491
Satisfy linter (#3132)
* drop deprecated linter

* fix uint64=>int64 overflow

* fix unnecessary fmt.Sprintf

* ignore false positive fatcontext

* fix integer overflows

* update golangci-lint config - properly was moved

* fix formatting calls

* use new integer range syntax

* adjust nolint comments

* stop using deprecated k8s types
2025-01-10 15:06:18 +00:00
Dave Protasowski ee1db869c7
Update linter config and address lint warnings/failures (#3068)
* fix whitespace linter

* fix usestdlibvars

* fix staticheck

* ignore spancheck warning

* fix linter perfsprint

* fix nolintlint feedback

* fix nilerr lint checks

* fix misspell

* fix mirror lint

* fix intrange linter

* fix gofumpt linter

* fix gosec linter - ignore warning since default min tls version is 1.3

* fix gocritic linter

* fix whitespace

* fix fatcontext linter

* fix errorlint

* fix errname linter

* fix copyloopvar (go1.22) linter

* fix bodyclose linter

* update linter config

* add script to format code

* fix unit test
2024-06-25 14:49:36 +00:00
Dave Protasowski 8535fcc248
gofumpt the repo (#3067)
* gofumpt the repo

* don't prefix numbers with 0 - otherwise they're octal
2024-06-25 07:27:07 +00:00
Dave Protasowski 44d1d7d978
Go1.19 changes (#2631)
* run goimports

* ignore linter errors for now

* fix boilerplate
2022-11-03 22:34:05 +00:00
Antoine Cotten af53027cbd
Format copyright headers to match boilerplate (#1962) 2020-12-15 02:12:43 -08:00
Scott Nichols fc447086b7
Remove re-definition of kubeconfig from pkg/test (#1820)
* pull flags from injection

* lint

* trim T interface, use flagset
2020-10-19 16:30:58 -07:00
Victor Agababov a371418524
v2 (#1754) 2020-09-29 13:18:29 -07:00
Ville Aikas cb1281d05c
make the rt error message clearer (#1492) 2020-07-14 16:31:32 -07:00
Dave Protasowski d771641c91
Fixed #1057 - Rename ConvertUp/Down to ConvertTo/From (#1122) 2020-02-24 09:44:08 -08:00
Dave Protasowski 5bc49f27e6
use interfaces when testing conditions so we don't need versioned methods (#1120) 2020-02-24 09:23:08 -08:00
Dave Protasowski 4b31f15f21
include testing helpers to fuzz our API types and perform some roundtrip testing (#1010)
* include facilities that make roundtrip testing API types possible

* include helpers for fuzzing apis.URL and status conditions
2020-01-28 06:58:26 -08:00
coryrc 9d8b936ca0 Switch *testing.T uses to equivalent interface + structured logging (#935)
Working to introduce structured logging to our tests. See #907

This work allows these test functions to be called by objects other
than *testing.T. The t.Error() calls are made compatible with
structured logging (wrapping Zap sugared logger calls) or code using
testing.T.
2019-12-13 10:22:54 -08:00
Dan Gerdesmeier 5f0515d336 Version condition testing helper functions (#644) 2019-09-08 16:39:06 -07:00
mattmoor-sockpuppet 1864f499dc golang format tools (#497)
Produced via:
  `gofmt -s -w $(find -path './vendor' -prune -o -type f -name '*.go' -print))`
  `goimports -w $(find -name '*.go' | grep -v vendor)`
/assign @mattmoor
2019-06-27 07:37:08 -07:00
Matt Moore 222dd25986 Migrate pkg to use the knative.dev/pkg import path (#489)
* Manual changes.

* scripted changes.
2019-06-26 13:02:06 -07:00
Victor Agababov 4993c57ea3 Share the common parts of Serving ObjectMeta validation (#367) (#370)
This assumes that we want to strictly allow DNS labels in names everywhere.
2019-04-07 15:19:57 -07:00
Victor Agababov 71f46d3165 Condition checkable utilities (#364)
* add the new files

* checkpoint

* use duck

* test –> testing
2019-04-05 07:26:57 -07:00