Skip to content

Commit 3c741ed

Browse files
committed
grpc changes
1 parent f2285a2 commit 3c741ed

File tree

6 files changed

+351
-231
lines changed

6 files changed

+351
-231
lines changed

alpha/declcfg/declcfg_to_model.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func ConvertToModel(cfg DeclarativeConfig) (model.Model, error) {
3737
mpkgs[p.Name] = mpkg
3838
}
3939

40-
channelDefinedEntries := map[string]sets.String{}
40+
channelDefinedEntries := map[string]sets.Set[string]{}
4141
for _, c := range cfg.Channels {
4242
mpkg, ok := mpkgs[c.Package]
4343
if !ok {
@@ -62,7 +62,7 @@ func ConvertToModel(cfg DeclarativeConfig) (model.Model, error) {
6262
Properties: c.Properties,
6363
}
6464

65-
cde := sets.NewString()
65+
cde := sets.Set[string]{}
6666
for _, entry := range c.Entries {
6767
if _, ok := mch.Bundles[entry.Name]; ok {
6868
return nil, fmt.Errorf("invalid package %q, channel %q: duplicate entry %q", c.Package, c.Name, entry.Name)
@@ -89,7 +89,7 @@ func ConvertToModel(cfg DeclarativeConfig) (model.Model, error) {
8989

9090
// packageBundles tracks the set of bundle names for each package
9191
// and is used to detect duplicate bundles.
92-
packageBundles := map[string]sets.String{}
92+
packageBundles := map[string]sets.Set[string]{}
9393

9494
for _, b := range cfg.Bundles {
9595
if b.Package == "" {
@@ -102,7 +102,7 @@ func ConvertToModel(cfg DeclarativeConfig) (model.Model, error) {
102102

103103
bundles, ok := packageBundles[b.Package]
104104
if !ok {
105-
bundles = sets.NewString()
105+
bundles = sets.Set[string]{}
106106
}
107107
if bundles.Has(b.Name) {
108108
return nil, fmt.Errorf("package %q has duplicate bundle %q", b.Package, b.Name)
@@ -151,7 +151,7 @@ func ConvertToModel(cfg DeclarativeConfig) (model.Model, error) {
151151

152152
for pkg, entries := range channelDefinedEntries {
153153
if entries.Len() > 0 {
154-
return nil, fmt.Errorf("no olm.bundle blobs found in package %q for olm.channel entries %s", pkg, entries.List())
154+
return nil, fmt.Errorf("no olm.bundle blobs found in package %q for olm.channel entries %s", pkg, sets.List[string](entries))
155155
}
156156
}
157157

pkg/api/grpc_health_v1/health.pb.go

Lines changed: 4 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/api/grpc_health_v1/health_grpc.pb.go

Lines changed: 8 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)