Add support for disabling all staged content

This reduces the binary footprint for downstream users that won't use
these files anyway.

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
This commit is contained in:
Brad Davidson
2020-09-11 14:51:45 -07:00
committed by Brad Davidson
parent edb3e5b7a7
commit fcaeebaa18
7 changed files with 24 additions and 0 deletions

View File

@@ -44,6 +44,7 @@ func main() {
NoMetadata: true,
Prefix: "manifests/",
Output: "pkg/deploy/zz_generated_bindata.go",
Tags: "!no_stage",
}
if err := bindata.Translate(bc); err != nil {
logrus.Fatal(err)
@@ -60,6 +61,7 @@ func main() {
NoMetadata: true,
Prefix: "build/static/",
Output: "pkg/static/zz_generated_bindata.go",
Tags: "!no_stage",
}
if err := bindata.Translate(bc); err != nil {
logrus.Fatal(err)