Skip to content

Commit 7d8ef08

Browse files
Merge pull request operator-framework#691 from joelanford/declcfg-allow-non-existent-replaces
declcfg: validation should allow non-existent replaces value
2 parents 6ebda78 + 4e0767f commit 7d8ef08

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

internal/model/model.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -230,13 +230,6 @@ func (b *Bundle) Validate() error {
230230
if b.Channel != nil && b.Package != nil && b.Package != b.Channel.Package {
231231
result = multierror.Append(result, errors.New("package does not match channel's package"))
232232
}
233-
if b.Replaces != "" {
234-
if b.Channel != nil && b.Channel.Bundles != nil {
235-
if _, ok := b.Channel.Bundles[b.Replaces]; !ok {
236-
result = multierror.Append(result, fmt.Errorf("replaces %q not found in channel", b.Replaces))
237-
}
238-
}
239-
}
240233
props, err := property.Parse(b.Properties)
241234
if err != nil {
242235
result = multierror.Append(result, err)

0 commit comments

Comments
 (0)