mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-01-11 07:29:29 -05:00
ci: replace mastersecret flag in recover (#2186)
This commit is contained in:
parent
29dcb72bea
commit
d5e88115a0
@ -38,9 +38,6 @@ outputs:
|
||||
kubeconfig:
|
||||
description: "The kubeconfig for the cluster."
|
||||
value: ${{ steps.constellation-init.outputs.KUBECONFIG }}
|
||||
masterSecret:
|
||||
description: "The master-secret for the cluster."
|
||||
value: ${{ steps.constellation-init.outputs.MASTERSECRET }}
|
||||
osImageUsed:
|
||||
description: "The OS image used in the cluster."
|
||||
value: ${{ steps.setImage.outputs.image }}
|
||||
@ -137,8 +134,7 @@ runs:
|
||||
shell: bash
|
||||
run: |
|
||||
constellation init --force --debug
|
||||
echo "KUBECONFIG=$(pwd)/constellation-admin.conf" >> $GITHUB_OUTPUT
|
||||
echo "MASTERSECRET=$(pwd)/constellation-mastersecret.json" >> $GITHUB_OUTPUT
|
||||
echo "KUBECONFIG=$(pwd)/constellation-admin.conf" | tee -a $GITHUB_OUTPUT
|
||||
|
||||
- name: Wait for nodes to join and become ready
|
||||
shell: bash
|
||||
|
5
.github/actions/e2e_recover/action.yml
vendored
5
.github/actions/e2e_recover/action.yml
vendored
@ -8,9 +8,6 @@ inputs:
|
||||
kubeconfig:
|
||||
description: "The kubeconfig for the cluster."
|
||||
required: true
|
||||
masterSecret:
|
||||
description: "The master-secret for the cluster."
|
||||
required: true
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
@ -40,7 +37,7 @@ runs:
|
||||
start_time=$(date +%s)
|
||||
recovered=0
|
||||
while true; do
|
||||
output=$(constellation recover --master-secret=${{ inputs.masterSecret }} --force)
|
||||
output=$(constellation recover --force)
|
||||
if echo "$output" | grep -q "Pushed recovery key."; then
|
||||
echo "$output"
|
||||
i=$(echo "$output" | grep -o "Pushed recovery key." | wc -l | sed 's/ //g')
|
||||
|
Loading…
Reference in New Issue
Block a user