Skip to content

Commit 7478976

Browse files
nixpanicmergify[bot]
authored andcommitted
volume-condition: fail when passing an unknown recorder
Signed-off-by: Niels de Vos <ndevos@ibm.com>
1 parent 99f509f commit 7478976

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sidecar/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ func main() {
164164
case volumeConditionPVCEventRecorder:
165165
recorderOptions = append(recorderOptions, condition.WithEventRecorder())
166166
default:
167-
klog.Infof("condition recorder %q is unknown, skipping", vcr)
167+
klog.Fatalf("condition recorder %q is unknown", vcr)
168168
}
169169
}
170170

0 commit comments

Comments
 (0)