Skip to content

Commit b3ce088

Browse files
committed
Ignore G115 for probes
1 parent a66c0b7 commit b3ce088

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pkg/kube/probes/probes.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -31,28 +31,28 @@ func WithExecCommand(cmd []string) Modification {
3131

3232
func WithFailureThreshold(failureThreshold int) Modification {
3333
return func(probe *corev1.Probe) {
34-
probe.FailureThreshold = int32(failureThreshold)
34+
probe.FailureThreshold = int32(failureThreshold) // #nosec G115
3535
}
3636
}
3737

3838
func WithInitialDelaySeconds(initialDelaySeconds int) Modification {
3939
return func(probe *corev1.Probe) {
40-
probe.InitialDelaySeconds = int32(initialDelaySeconds)
40+
probe.InitialDelaySeconds = int32(initialDelaySeconds) // #nosec G115
4141
}
4242
}
4343
func WithSuccessThreshold(successThreshold int) Modification {
4444
return func(probe *corev1.Probe) {
45-
probe.SuccessThreshold = int32(successThreshold)
45+
probe.SuccessThreshold = int32(successThreshold) // #nosec G115
4646
}
4747
}
4848
func WithPeriodSeconds(periodSeconds int) Modification {
4949
return func(probe *corev1.Probe) {
50-
probe.PeriodSeconds = int32(periodSeconds)
50+
probe.PeriodSeconds = int32(periodSeconds) // #nosec G115
5151
}
5252
}
5353
func WithTimeoutSeconds(timeoutSeconds int) Modification {
5454
return func(probe *corev1.Probe) {
55-
probe.TimeoutSeconds = int32(timeoutSeconds)
55+
probe.TimeoutSeconds = int32(timeoutSeconds) // #nosec G115
5656
}
5757
}
5858

0 commit comments

Comments
 (0)