File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
internal/framework/gatewayclass Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -69,13 +69,13 @@ func parseVersionString(version string) apiVersion {
6969 }
7070}
7171
72- func getBundleVersions (crdMetadata map [types.NamespacedName ]* metav1.PartialObjectMetadata ) map [ string ]apiVersion {
73- versions := make (map [ string ]apiVersion )
72+ func getBundleVersions (crdMetadata map [types.NamespacedName ]* metav1.PartialObjectMetadata ) [ ]apiVersion {
73+ versions := make ([ ]apiVersion , 0 , len ( gatewayCRDs ) )
7474
7575 for nsname , md := range crdMetadata {
7676 if _ , ok := gatewayCRDs [nsname .Name ]; ok {
7777 bundleVersion := md .Annotations [BundleVersionAnnotation ]
78- versions [ bundleVersion ] = parseVersionString (bundleVersion )
78+ versions = append ( versions , parseVersionString (bundleVersion ) )
7979 }
8080 }
8181
You can’t perform that action at this time.
0 commit comments