Currently the translation for catalog contents --> entity is lossy when it comes to bundle properties. As we can see from
|
for _, prop := range bundle.Spec.Properties { |
|
switch prop.Type { |
|
case property.TypePackage: |
|
// this is already a json marshalled object, so it doesn't need to be marshalled |
|
// like the other ones |
|
props[property.TypePackage] = string(prop.Value) |
|
} |
|
} |
we are only passing through bundle properties that are of type
olm.package and therefore losing any other bundle property information.
We should update this to ensure that all bundle properties are being forwarded through during the entity translation so they can be used properly.
Currently the translation for catalog contents --> entity is lossy when it comes to bundle properties. As we can see from
operator-controller/internal/resolution/entitysources/catalogdsource.go
Lines 83 to 90 in 80a5786
olm.packageand therefore losing any other bundle property information.We should update this to ensure that all bundle properties are being forwarded through during the entity translation so they can be used properly.