Skip to content

Commit

Permalink
feat(bundle): allow non strict bundle publishing
Browse files Browse the repository at this point in the history
Set WERF_BUNDLE_SCHEMA_NONSTRICT=1 to include all files in the .helm into the published bundle.
  • Loading branch information
distorhead committed Jan 10, 2023
1 parent 32dcb6b commit 96fd4a1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/deploy/helm/chart_extender/bundle.go
Expand Up @@ -250,6 +250,11 @@ var (
)

func CheckBundlePathAllowed(path string) bool {
// TODO(bundles): provide more canonical way to whitelist/blacklist bundle files
if os.Getenv("WERF_BUNDLE_SCHEMA_NONSTRICT") == "1" {
return true
}

for _, p := range AllowedBundleChartFiles {
if p == path {
return true
Expand Down

0 comments on commit 96fd4a1

Please sign in to comment.