mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
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:
parent
edb3e5b7a7
commit
fcaeebaa18
@ -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)
|
||||
|
7
pkg/deploy/nostage.go
Normal file
7
pkg/deploy/nostage.go
Normal file
@ -0,0 +1,7 @@
|
||||
// +build no_stage
|
||||
|
||||
package deploy
|
||||
|
||||
func Stage(dataDir string, templateVars map[string]string, skips map[string]bool) error {
|
||||
return nil
|
||||
}
|
@ -1,3 +1,5 @@
|
||||
// +build !no_stage
|
||||
|
||||
package deploy
|
||||
|
||||
import (
|
||||
|
@ -12,6 +12,8 @@
|
||||
// manifests/metrics-server/resource-reader.yaml
|
||||
// manifests/rolebindings.yaml
|
||||
// manifests/traefik.yaml
|
||||
// +build !no_stage
|
||||
|
||||
package deploy
|
||||
|
||||
import (
|
||||
|
7
pkg/static/nostage.go
Normal file
7
pkg/static/nostage.go
Normal file
@ -0,0 +1,7 @@
|
||||
// +build no_stage
|
||||
|
||||
package static
|
||||
|
||||
func Stage(dataDir string) error {
|
||||
return nil
|
||||
}
|
@ -1,3 +1,5 @@
|
||||
// +build !no_stage
|
||||
|
||||
package static
|
||||
|
||||
import (
|
||||
|
@ -1,6 +1,8 @@
|
||||
// Code generated for package static by go-bindata DO NOT EDIT. (@generated)
|
||||
// sources:
|
||||
// build/static/charts/traefik-1.81.0.tgz
|
||||
// +build !no_stage
|
||||
|
||||
package static
|
||||
|
||||
import (
|
||||
|
Loading…
Reference in New Issue
Block a user