Commit 2817b07
authored
<!-- markdownlint-disable MD041 -->
#### What this PR does / why we need it
The release of Helm v3.7.0 included the implementation of HIP 6 for OCI
support. The chart layer media type was switched from
application/tar+gzip to
application/vnd.cncf.helm.chart.content.v1.tar+gzip.
To support HELM Charts created before this version, we should maintain
compatibility with a legacy layer detection.
This implements this detection to make sure we don't have breaking
changes after our recent adjustment to media type based checking.
See
https://helm.sh/docs/topics/registries/#oci-feature-deprecation-and-behavior-changes-with-v370
for context
#### Which issue(s) this PR fixes
<!--
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`. -->
fix #1469
relates to #1470 and
needs to be backported the same
(cherry picked from commit 729a19f)
1 parent 78a6207 commit 2817b07
3 files changed
Lines changed: 20 additions & 1 deletion
File tree
- api/ocm/extensions/download/handlers/helm
- testdata
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
56 | 60 | | |
57 | 61 | | |
58 | 62 | | |
| |||
88 | 92 | | |
89 | 93 | | |
90 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
91 | 105 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
132 | | - | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
133 | 138 | | |
134 | 139 | | |
135 | 140 | | |
| |||
Binary file not shown.
0 commit comments