Skip to content

Commit 532fc2a

Browse files
authored
Fixing hardoc issue
1 parent 4da07a9 commit 532fc2a

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

‎.github/workflows/ci.yaml‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -383,14 +383,13 @@ jobs:
383383
if kubectl -n ${NS} cp access_token.txt pod/${POD}:/workspace/access_token.txt 2>/dev/null; then
384384
echo "Token copied into pod via kubectl cp"
385385
else
386-
echo "kubectl cp failed; falling back to cat > /workspace/access_token.txt"
386+
echo "kubectl cp failed; falling back to pipe into pod"
387387
TOKEN_CONTENT=$(cat access_token.txt)
388-
kubectl -n ${NS} exec -i pod/${POD} -- bash -lc "cat > /workspace/access_token.txt" <<EOF
389-
$TOKEN_CONTENT
390-
EOF
388+
printf '%s' "$TOKEN_CONTENT" | kubectl -n ${NS} exec -i pod/${POD} -- tee /workspace/access_token.txt >/dev/null
391389
echo "Token written into pod via fallback"
392390
fi
393391
392+
394393
- name: Run tests inside python pod
395394
run: |
396395
NS=my-verticadb-operator

0 commit comments

Comments
 (0)