1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-31 03:45:17 +00:00
kyverno/pkg
Dhaval Shah fce35b91d2
[Bugbash] Kceu22 bugbash/fix staticcheck warnings (#3917)
* cleanup: error string formating

Fixes Staticcheck ST1005
KubeCon EU 2022 BugBash

Signed-off-by: Dhaval Shah <30974879+dhavalgshah@users.noreply.github.com>

* cleanup: merge var declaration with assignment

Fixes staticcheck S1021

Kubecon EU 2022 Bugbash

Signed-off-by: Dhaval Shah <30974879+dhavalgshah@users.noreply.github.com>

* cleanup normalize yoda condition to simple compare

fixes staticcheck ST1017

Signed-off-by: Dhaval Shah <30974879+dhavalgshah@users.noreply.github.com>

* cleanup: remove extraneous err param on executeTest

err is not used anywhere except to throw Fatal inside execureTest()
fix staticcheck SA4009

Signed-off-by: Dhaval Shah <30974879+dhavalgshah@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Sambhav Kothari <sambhavs.email@gmail.com>
Signed-off-by: Dhaval Shah <30974879+dhavalgshah@users.noreply.github.com>

* fix: match validation error message to actual errors

Signed-off-by: Dhaval Shah <30974879+dhavalgshah@users.noreply.github.com>

* cleanup: more of normalize validation error messages

Signed-off-by: Dhaval Shah <30974879+dhavalgshah@users.noreply.github.com>

* cleanup: additional error message formatting fixes

Signed-off-by: Dhaval Shah <30974879+dhavalgshah@users.noreply.github.com>

Co-authored-by: Sambhav Kothari <sambhavs.email@gmail.com>
2022-05-14 22:04:35 +01:00
..
auth refactor: dclient package (#3775) 2022-05-03 13:30:04 +08:00
autogen chore: enable more linters (#3862) 2022-05-10 21:20:04 +05:30
background [Bugbash] Kceu22 bugbash/fix staticcheck warnings (#3917) 2022-05-14 22:04:35 +01:00
client chore: remove unused custom expansions from client (#3697) 2022-04-27 21:14:49 +08:00
common chore: enable wastedassign linter (#3898) 2022-05-12 11:03:26 +00:00
config refactor: make config vars private (#3823) 2022-05-11 06:14:30 +00:00
controllers feat: gracefull certificates rotation support (#3890) 2022-05-12 14:07:25 +00:00
cosign Timeout and init (#3893) 2022-05-12 10:55:14 +08:00
dclient refactor: make config vars private (#3823) 2022-05-11 06:14:30 +00:00
engine [Bugbash] Kceu22 bugbash/fix staticcheck warnings (#3917) 2022-05-14 22:04:35 +01:00
event Add rule to PolicyViolation event messages (#3787) 2022-05-03 18:35:42 +00:00
leaderelection Remove unused function (#2517) 2021-10-11 12:46:28 -07:00
metrics refactor: metrics package logger (#3734) 2022-04-29 19:33:08 +02:00
openapi chore: enable whitespace linter (#3864) 2022-05-10 17:01:29 +00:00
policy [Bugbash] Kceu22 bugbash/fix staticcheck warnings (#3917) 2022-05-14 22:04:35 +01:00
policycache handle subresources (#3841) 2022-05-09 18:50:50 -07:00
policymutation handle subresources (#3841) 2022-05-09 18:50:50 -07:00
policyreport chore: enable wastedassign linter (#3898) 2022-05-12 11:03:26 +00:00
registryclient Multiple keys (#3636) 2022-04-22 07:10:02 +00:00
signal Dynamic webhooks (#2425) 2021-10-05 00:15:09 -07:00
testrunner chore: enable tenv thelper and tparallel linters (#3868) 2022-05-10 22:48:45 +00:00
tls feat: gracefull certificates rotation support (#3890) 2022-05-12 14:07:25 +00:00
toggle feat: stop mutating rules (#3410) 2022-03-28 22:01:27 +08:00
userinfo chore: enable whitespace linter (#3864) 2022-05-10 17:01:29 +00:00
utils chore: enable whitespace linter (#3864) 2022-05-10 17:01:29 +00:00
version Revert "754 merge conflicts" 2020-03-28 16:36:19 +05:30
webhookconfig feat: gracefull certificates rotation support (#3890) 2022-05-12 14:07:25 +00:00
webhooks [Bugbash] Kceu22 bugbash/fix staticcheck warnings (#3917) 2022-05-14 22:04:35 +01:00