refactor: move preflight to bootstrap

This commit is contained in:
joshsiv-mulga
2026-09-29 09:54:18 +10:00
parent 04b41a62c4
commit 25fa01a3d6
9 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"os"
"text/tabwriter"
"github.com/mulgadc/spinifex/spinifex/preflight"
"github.com/mulgadc/spinifex/spinifex/bootstrap/preflight"
"github.com/spf13/cobra"
)
+2 -2
View File
@@ -1,7 +1,7 @@
#!/bin/bash
# gen-asset-manifest.sh — extracts the canonical bytes of each managed asset
# heredoc from the provisioning scripts, sha256s them, and (re)writes
# spinifex/preflight/manifest_gen.go.
# spinifex/bootstrap/preflight/manifest_gen.go.
#
# Run this after editing a managed heredoc in setup.sh or setup-ovn.sh.
# manifest_gen_test.go re-extracts the same heredocs and fails if the
@@ -12,7 +12,7 @@ set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
OUT="$ROOT/spinifex/preflight/manifest_gen.go"
OUT="$ROOT/spinifex/bootstrap/preflight/manifest_gen.go"
# extract_heredoc FILE ANCHOR
# Prints the body of the first quoted 'HELPER' heredoc starting after the
@@ -14,7 +14,7 @@ import (
"github.com/mulgadc/spinifex/spinifex/utils"
)
//go:generate ../../scripts/gen-asset-manifest.sh
//go:generate ../../../scripts/gen-asset-manifest.sh
// Status is the outcome of checking one managed asset against this build's manifest.
type Status int
+1 -1
View File
@@ -32,6 +32,7 @@ import (
"github.com/mulgadc/bluebottle/pkg/tlsconfig"
"github.com/mulgadc/spinifex/spinifex/admin"
"github.com/mulgadc/spinifex/spinifex/awserrors"
"github.com/mulgadc/spinifex/spinifex/bootstrap/preflight"
"github.com/mulgadc/spinifex/spinifex/config"
"github.com/mulgadc/spinifex/spinifex/ebsprovider"
"github.com/mulgadc/spinifex/spinifex/gpu"
@@ -69,7 +70,6 @@ import (
"github.com/mulgadc/spinifex/spinifex/network/host"
"github.com/mulgadc/spinifex/spinifex/objectstore"
"github.com/mulgadc/spinifex/spinifex/otelsetup"
"github.com/mulgadc/spinifex/spinifex/preflight"
"github.com/mulgadc/spinifex/spinifex/services/viperblockd/vbwire"
"github.com/mulgadc/spinifex/spinifex/types"
"github.com/mulgadc/spinifex/spinifex/utils"