mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-02-23 16:30:11 -05:00
No custom working directory
This commit is contained in:
parent
fb0563ad03
commit
1926133b11
4
.github/actions/e2e_emergency_ssh/action.yml
vendored
4
.github/actions/e2e_emergency_ssh/action.yml
vendored
@ -14,16 +14,13 @@ runs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Test emergency ssh
|
- name: Test emergency ssh
|
||||||
shell: bash
|
shell: bash
|
||||||
working-directory: e2e/emergency-ssh
|
|
||||||
env:
|
env:
|
||||||
KUBECONFIG: ${{ inputs.kubeconfig }}
|
KUBECONFIG: ${{ inputs.kubeconfig }}
|
||||||
run: |
|
run: |
|
||||||
# Activate emergency ssh access to the cluster
|
# Activate emergency ssh access to the cluster
|
||||||
pushd "${{ inputs.workspace }}/constellation-terraform"
|
|
||||||
echo "emergency_ssh = true" >> terraform.tfvars
|
echo "emergency_ssh = true" >> terraform.tfvars
|
||||||
terraform apply -auto-approve
|
terraform apply -auto-approve
|
||||||
lb="$(terraform output -raw loadbalancer_address)"
|
lb="$(terraform output -raw loadbalancer_address)"
|
||||||
popd
|
|
||||||
|
|
||||||
# write ssh config
|
# write ssh config
|
||||||
cat > ssh_config <<EOF
|
cat > ssh_config <<EOF
|
||||||
@ -39,7 +36,6 @@ runs:
|
|||||||
EOF
|
EOF
|
||||||
|
|
||||||
# generate and try keypair
|
# generate and try keypair
|
||||||
cp "${{ inputs.workspace }}/constellation-mastersecret.json" .
|
|
||||||
ssh-keygen -t ecdsa -q -N "" -f ./access-key
|
ssh-keygen -t ecdsa -q -N "" -f ./access-key
|
||||||
constellation ssh --debug --key ./access-key.pub
|
constellation ssh --debug --key ./access-key.pub
|
||||||
internalIPs="$(kubectl get nodes -o=jsonpath='{.items[*].status.addresses}' | jq -r '.[] | select(.type == "InternalIP") | .address')"
|
internalIPs="$(kubectl get nodes -o=jsonpath='{.items[*].status.addresses}' | jq -r '.[] | select(.type == "InternalIP") | .address')"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user