mirror of
https://github.com/mulgadc/spinifex.git
synced 2026-10-15 17:11:30 +00:00
refactor: move preflight to bootstrap
This commit is contained in:
@@ -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"
|
||||
)
|
||||
|
||||
|
||||
@@ -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
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user