ci: run constellation commands with --debug (#1321)

This commit is contained in:
Otto Bittner 2023-03-02 09:40:21 +01:00 committed by GitHub
parent f67594a5ea
commit a5d4970753
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -76,9 +76,9 @@ runs:
if: inputs.existingConfig != 'true' if: inputs.existingConfig != 'true'
run: | run: |
if [[ ${{ inputs.kubernetesVersion != '' }} == true ]]; then if [[ ${{ inputs.kubernetesVersion != '' }} == true ]]; then
constellation config generate ${{ inputs.cloudProvider }} --kubernetes="${{ inputs.kubernetesVersion }}" constellation config generate ${{ inputs.cloudProvider }} --kubernetes="${{ inputs.kubernetesVersion }}" --debug
else else
constellation config generate ${{ inputs.cloudProvider }} constellation config generate ${{ inputs.cloudProvider }} --debug
fi fi
yq eval -i "(.name) = \"e2e-test\"" constellation-conf.yaml yq eval -i "(.name) = \"e2e-test\"" constellation-conf.yaml
@ -164,7 +164,7 @@ runs:
echo "Creating cluster using config:" echo "Creating cluster using config:"
cat constellation-conf.yaml cat constellation-conf.yaml
sudo sh -c 'echo "127.0.0.1 license.confidential.cloud" >> /etc/hosts' || true sudo sh -c 'echo "127.0.0.1 license.confidential.cloud" >> /etc/hosts' || true
constellation create -c ${{ inputs.controlNodesCount }} -w ${{ inputs.workerNodesCount }} -y --force constellation create -c ${{ inputs.controlNodesCount }} -w ${{ inputs.workerNodesCount }} -y --force --debug
- name: Cdbg deploy - name: Cdbg deploy
if: inputs.isDebugImage == 'true' if: inputs.isDebugImage == 'true'
@ -190,7 +190,7 @@ runs:
id: constellation-init id: constellation-init
shell: bash shell: bash
run: | run: |
constellation init --force constellation init --force --debug
echo "KUBECONFIG=$(pwd)/constellation-admin.conf" >> $GITHUB_OUTPUT echo "KUBECONFIG=$(pwd)/constellation-admin.conf" >> $GITHUB_OUTPUT
echo "MASTERSECRET=$(pwd)/constellation-mastersecret.json" >> $GITHUB_OUTPUT echo "MASTERSECRET=$(pwd)/constellation-mastersecret.json" >> $GITHUB_OUTPUT