fix(bootstrap): 在源码构建后安装分布式节点防火墙
首次源码安装或旧发布版升级时,等待新二进制构建完成后调用 node firewall;worker 的源码安装也按所请求的版本重新构建。补充安装顺序回归检查和 main 接入说明,更新单机默认与多节点运维边界。 验证:Linux VM 上 bootstrap shell 测试全量通过;go test ./cmd/felis;shell 语法和 git diff --check。
This commit is contained in:
4 files changed
+28
-13
No files matched your search
@@ -4911,9 +4911,15 @@ esac
|
||||
rm -rf "$credir" "$credcalls"
|
||||
|
||||
# Worker admission reuses the installer but must never enter host control-plane setup.
|
||||
before "distributed host firewall runs the newly built binary" \
|
||||
' build_image' '"$HOST_BIN" node firewall --controller' "$(bsfn main)"
|
||||
before "distributed host firewall is installed before platform deployment" \
|
||||
'"$HOST_BIN" node firewall --controller' ' deploy_postgres' "$(bsfn main)"
|
||||
expect "distributed admission preserves existing API-server arguments" \
|
||||
"echo 'kube-apiserver-arg+:'" "$(bsfn write_k3s_config)"
|
||||
worker="$(bsfn main_worker)"
|
||||
expect "source worker install builds the requested binary even when an older binary exists" \
|
||||
'if [ -z "$HAVE_PREBUILT_BINARY" ]; then install_go_toolchain; build_nano_binary; fi' "$worker"
|
||||
before "worker identity is checked before the agent config is written" \
|
||||
'refusing to rename it' 'cat > "$K3S_CONFIG_DROPIN"' "$worker"
|
||||
expect "worker rejects server tokens and verifies the CA-pinned bootstrap shape" \
|
||||
|
||||
Reference in new issue
Block a user