Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
soapy1 committed Jan 21, 2025
1 parent 602f7e9 commit d5cb0e7
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/test_local_integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,12 @@ jobs:
working-directory: ${{ steps.init.outputs.directory }}
run: nebari deploy --config ${{ steps.init.outputs.config }} --disable-prompt

- name: Try to get state
working-directory: ${{ steps.init.outputs.directory }}
run: |
kubectl kub get secret -n default tfstate-default-projectname-dev-07-kubernetes-services --template={{.data}} | cut -d ":" -f2 | cut -d "]" -f1 | base64 --decode | gzip -d --to-stdout > terraform_state
cat terraform_state | jq | grep conda-store-service-account | sed -n '2 p' | tr -s ' ' | sed "s/\"config.json\": \"//" | sed -e 's/\\\"/\"/g' -e 's/^.//g' -e 's/.$//g' | jq '."service-tokens-mapping"."conda-store-service-account"'
- name: Health check
uses: ./.github/actions/health-check
with:
Expand Down Expand Up @@ -172,12 +178,13 @@ jobs:
# install conda-store-server
python -m pip install conda-store/conda-store-server
- name: Get conda store token from terraform state
- name: Get conda-store token from terraform state
id: conda-store-token
working-directory: ${{ steps.init.outputs.directory }}
run: |
cat stages/07-kubernetes-services/terraform.tfstate | jq | grep conda-store-service-account | sed -n '2 p' | tr -s ' ' | sed "s/\"config.json\": \"//" | sed -e 's/\\\"/\"/g' -e 's/^.//g' -e 's/.$//g' | jq '."service-tokens-mapping"."conda-store-service-account"'
echo "CONDA_STORE_TOKEN=$(cat stages/07-kubernetes-services/terraform.tfstate | jq | grep conda-store-service-account | sed -n '2 p' | tr -s ' ' | sed "s/\"config.json\": \"//" | sed -e 's/\\\"/\"/g' -e 's/^.//g' -e 's/.$//g' | jq '."service-tokens-mapping"."conda-store-service-account"')" >> "$GITHUB_OUTPUT"
kubectl get secret -n default tfstate-default-projectname-dev-07-kubernetes-services --template={{.data}} | cut -d ":" -f2 | cut -d "]" -f1 | base64 --decode | gzip -d --to-stdout > terraform_state
cat terraform_state | jq | grep conda-store-service-account | sed -n '2 p' | tr -s ' ' | sed "s/\"config.json\": \"//" | sed -e 's/\\\"/\"/g' -e 's/^.//g' -e 's/.$//g' | jq '."service-tokens-mapping"."conda-store-service-account"'
echo "CONDA_STORE_TOKEN=$(cat terraform_state | jq | grep conda-store-service-account | sed -n '2 p' | tr -s ' ' | sed "s/\"config.json\": \"//" | sed -e 's/\\\"/\"/g' -e 's/^.//g' -e 's/.$//g' | jq '."service-tokens-mapping"."conda-store-service-account"')" >> "$GITHUB_OUTPUT"
- name: Run conda-store-server user_journey tests
env:
Expand Down

0 comments on commit d5cb0e7

Please sign in to comment.