Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions test/operator-framework-e2e/create_fbc_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const (

// Forms the FBC declartive config and creates the FBC by calling functions for forming the package, channel and bundles.
func CreateFBC(operatorName, channelName string, bundleRefsVersions map[string]string) *declcfg.DeclarativeConfig {
dPackage := formPackage(operatorName)
dPackage := formPackage(operatorName, channelName)
bundleVersions := make([]string, 0)
for _, bundleVersion := range bundleRefsVersions {
bundleVersions = append(bundleVersions, bundleVersion)
Expand All @@ -37,10 +37,11 @@ func CreateFBC(operatorName, channelName string, bundleRefsVersions map[string]s
}

// Forms package schema for the FBC
func formPackage(pkgName string) declcfg.Package {
func formPackage(pkgName, defaultChannelName string) declcfg.Package {
packageFormed := declcfg.Package{
Schema: declcfg.SchemaPackage,
Name: pkgName,
Schema: declcfg.SchemaPackage,
Name: pkgName,
DefaultChannel: defaultChannelName,
}
return packageFormed
}
Expand Down