Skip to content

Commit 1f127a8

Browse files
author
Lyubo Kamenov
authored
Fix refernce, registry can be nil when schema is not used (#50)
1 parent 03fcdd3 commit 1f127a8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

api/v1alpha/conduit_webhook.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,10 @@ func validateConduitVersion(ver string) bool {
201201
}
202202

203203
func validateRegistry(sr *SchemaRegistry) error {
204+
if sr == nil {
205+
return nil
206+
}
207+
204208
if sr.URL == "" {
205209
return nil
206210
}

0 commit comments

Comments
 (0)