1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-10 01:46:55 +00:00
kyverno/test/scenarios/samples/best_practices
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
..
add_networkPolicy.yaml change RuleStatus values to lowercase 2021-09-30 00:04:13 -07:00
add_ns_quota.yaml change RuleStatus values to lowercase 2021-09-30 00:04:13 -07:00
add_safe_to_evict.yaml updates for foreach and mutate (#2891) 2022-01-05 09:36:33 +08:00
add_safe_to_evict2.yaml updates for foreach and mutate (#2891) 2022-01-05 09:36:33 +08:00
add_safe_to_evict3.yaml updates for foreach and mutate (#2891) 2022-01-05 09:36:33 +08:00
disallow_bind_mounts_fail.yaml [Bugbash] Kceu22 bugbash/fix staticcheck warnings (#3917) 2022-05-14 22:04:35 +01:00
disallow_bind_mounts_pass.yaml change RuleStatus values to lowercase 2021-09-30 00:04:13 -07:00
disallow_host_network_port.yaml change RuleStatus values to lowercase 2021-09-30 00:04:13 -07:00
disallow_host_pid_ipc.yaml change RuleStatus values to lowercase 2021-09-30 00:04:13 -07:00
disallow_priviledged.yaml change RuleStatus values to lowercase 2021-09-30 00:04:13 -07:00
disallow_sysctls.yaml change RuleStatus values to lowercase 2021-09-30 00:04:13 -07:00