Files
Felis/bootstrap_asset.go
T
2026-06-29 20:17:17 +08:00

21 lines
568 B
Go

package felis
import "embed"
//go:embed deploy/bootstrap.sh
var bootstrapScript string
//go:embed deploy/crd/*.yaml
var bootstrapAssets embed.FS
// BootstrapScript returns the host bootstrap installer embedded in the felis binary.
func BootstrapScript() string {
return bootstrapScript
}
// MinecraftServerCRD returns the embedded MinecraftServer CRD YAML used by the
// host bootstrap path that runs without a source checkout.
func MinecraftServerCRD() ([]byte, error) {
return bootstrapAssets.ReadFile("deploy/crd/felis.lolicon.best_minecraftservers.yaml")
}