Skip to content
Merged
Show file tree
Hide file tree
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: 9 additions & 0 deletions changelog/fragments/get-csv-manifest-bugfix.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# entries is a list of entries to include in
# release notes and/or the migration guide
entries:
- description: >
CSV manifests read from disk are now properly marshaled into the CSV struct

kind: "bugfix"

breaking: false
2 changes: 1 addition & 1 deletion internal/generate/olm-catalog/csv_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func getCSVFromDir(dir string) (*olmapiv1alpha1.ClusterServiceVersion, error) {
}
if typeMeta.Kind == olmapiv1alpha1.ClusterServiceVersionKind {
csv := &olmapiv1alpha1.ClusterServiceVersion{}
if err := yaml.Unmarshal(b, csv); err != nil {
if err := yaml.Unmarshal(manifest, csv); err != nil {
return nil, fmt.Errorf("error unmarshalling ClusterServiceVersion from manifest %s: %v", path, err)
}
return csv, nil
Expand Down