File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -31,28 +31,28 @@ func WithExecCommand(cmd []string) Modification {
31
31
32
32
func WithFailureThreshold (failureThreshold int ) Modification {
33
33
return func (probe * corev1.Probe ) {
34
- probe .FailureThreshold = int32 (failureThreshold )
34
+ probe .FailureThreshold = int32 (failureThreshold ) // #nosec G115
35
35
}
36
36
}
37
37
38
38
func WithInitialDelaySeconds (initialDelaySeconds int ) Modification {
39
39
return func (probe * corev1.Probe ) {
40
- probe .InitialDelaySeconds = int32 (initialDelaySeconds )
40
+ probe .InitialDelaySeconds = int32 (initialDelaySeconds ) // #nosec G115
41
41
}
42
42
}
43
43
func WithSuccessThreshold (successThreshold int ) Modification {
44
44
return func (probe * corev1.Probe ) {
45
- probe .SuccessThreshold = int32 (successThreshold )
45
+ probe .SuccessThreshold = int32 (successThreshold ) // #nosec G115
46
46
}
47
47
}
48
48
func WithPeriodSeconds (periodSeconds int ) Modification {
49
49
return func (probe * corev1.Probe ) {
50
- probe .PeriodSeconds = int32 (periodSeconds )
50
+ probe .PeriodSeconds = int32 (periodSeconds ) // #nosec G115
51
51
}
52
52
}
53
53
func WithTimeoutSeconds (timeoutSeconds int ) Modification {
54
54
return func (probe * corev1.Probe ) {
55
- probe .TimeoutSeconds = int32 (timeoutSeconds )
55
+ probe .TimeoutSeconds = int32 (timeoutSeconds ) // #nosec G115
56
56
}
57
57
}
58
58
You can’t perform that action at this time.
0 commit comments