fix: force ownership for hwlab node infra apply (#582)
Co-authored-by: Codex <codex@noreply.local>
This commit is contained in:
@@ -1803,7 +1803,7 @@ set +e
|
||||
manifest=$(mktemp /tmp/hwlab-node-infra.XXXXXX.yaml)
|
||||
printf %s ${shQuote(encoded)} | base64 -d >"$manifest"
|
||||
field_manager=${shQuote(controlPlaneFieldManager(target))}
|
||||
kubectl apply --server-side --field-manager="$field_manager" -f "$manifest" >/tmp/hwlab-node-infra-apply.out 2>/tmp/hwlab-node-infra-apply.err
|
||||
kubectl apply --server-side --force-conflicts --field-manager="$field_manager" -f "$manifest" >/tmp/hwlab-node-infra-apply.out 2>/tmp/hwlab-node-infra-apply.err
|
||||
kubectl_rc=$?
|
||||
${k3sApplyScriptFragment(node.k3s, target)}
|
||||
python3 - "$kubectl_rc" "$k3s_report_file" <<'PY'
|
||||
|
||||
Reference in New Issue
Block a user