File tree Expand file tree Collapse file tree 3 files changed +3
-4
lines changed
Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 2121 uses : golangci/golangci-lint-action@v6
2222 with :
2323 # Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
24- version : v1.57.2
24+ version : v1.64.8
25+ args : --timeout 10m
2526 go-unit-test :
2627 runs-on : ubuntu-latest
2728 needs : [style-check]
Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ linters:
1414 disable-all : true
1515 enable :
1616 - errcheck
17- - exportloopref
1817 - gocritic
1918 - gofumpt
2019 - goimports
Original file line number Diff line number Diff line change 44 "context"
55 "encoding/json"
66 "fmt"
7- "k8s.io/utils/pointer"
87 "sort"
98 "strconv"
109
@@ -35,7 +34,7 @@ type imageConfig struct {
3534func (p * PodImageWebhookAdmission ) SetupWebhookWithManager (mgr manager.Manager ) error {
3635 mgr .GetWebhookServer ().Register ("/mutate-v1-pod" , & webhook.Admission {
3736 Handler : p ,
38- RecoverPanic : pointer . Bool (true ),
37+ RecoverPanic : lo . ToPtr (true ),
3938 })
4039 return ctrl .NewWebhookManagedBy (mgr ).For (& corev1.Pod {}).Complete ()
4140}
You can’t perform that action at this time.
0 commit comments