From 96fd4a17a17104ed56b42430f4110d9aa5f956d5 Mon Sep 17 00:00:00 2001 From: Timofey Kirillov Date: Tue, 10 Jan 2023 14:16:42 +0300 Subject: [PATCH] feat(bundle): allow non strict bundle publishing Set WERF_BUNDLE_SCHEMA_NONSTRICT=1 to include all files in the .helm into the published bundle. --- pkg/deploy/helm/chart_extender/bundle.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/deploy/helm/chart_extender/bundle.go b/pkg/deploy/helm/chart_extender/bundle.go index 5df66bb795..ed45bcb764 100644 --- a/pkg/deploy/helm/chart_extender/bundle.go +++ b/pkg/deploy/helm/chart_extender/bundle.go @@ -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