Skip to content

Commit

Permalink
test(e2e): fix indentation for dump logs (#26)
Browse files Browse the repository at this point in the history
* fix indentation for dump logs

* add panic for failure testing

* undo dump logs change

* Revert "undo dump logs change"

This reverts commit 0c96495.

* Revert "add panic for failure testing"

This reverts commit eca70d7.

---------

Co-authored-by: Charlie McBride <[email protected]>
  • Loading branch information
charliedmcb and Charlie McBride authored Nov 10, 2023
1 parent 68986f4 commit 2d62e49
Showing 1 changed file with 29 additions and 29 deletions.
58 changes: 29 additions & 29 deletions .github/actions/e2e/dump-logs/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,32 +25,32 @@ runs:
- uses: actions/checkout@v4
with:
ref: ${{ inputs.git_ref }}
- name: az login
uses: azure/login@v1
with:
client-id: ${{ inputs.client-id }}
tenant-id: ${{ inputs.tenant-id }}
subscription-id: ${{ inputs.subscription-id }}
- name: az set sub
shell: bash
run: az account set --subscription ${{ inputs.subscription-id }}
- name: controller-logs
shell: bash
run: |
echo "step: controller-logs"
AZURE_CLUSTER_NAME=${{ inputs.cluster_name }} AZURE_RESOURCE_GROUP=${{ inputs.resource_group }} make az-creds
POD_NAME=$(kubectl get pods -n karpenter --no-headers -o custom-columns=":metadata.name" | tail -n 1)
echo "logs from pod ${POD_NAME}"
kubectl logs "${POD_NAME}" -n karpenter -c controller
- name: describe-karpenter-pods
shell: bash
run: |
echo "step: describe-karpenter-pods"
AZURE_CLUSTER_NAME=${{ inputs.cluster_name }} AZURE_RESOURCE_GROUP=${{ inputs.resource_group }} make az-creds
kubectl describe pods -n karpenter
- name: describe-nodes
shell: bash
run: |
echo "step: describe-nodes"
AZURE_CLUSTER_NAME=${{ inputs.cluster_name }} AZURE_RESOURCE_GROUP=${{ inputs.resource_group }} make az-creds
kubectl describe nodes
- name: az login
uses: azure/login@v1
with:
client-id: ${{ inputs.client-id }}
tenant-id: ${{ inputs.tenant-id }}
subscription-id: ${{ inputs.subscription-id }}
- name: az set sub
shell: bash
run: az account set --subscription ${{ inputs.subscription-id }}
- name: controller-logs
shell: bash
run: |
echo "step: controller-logs"
AZURE_CLUSTER_NAME=${{ inputs.cluster_name }} AZURE_RESOURCE_GROUP=${{ inputs.resource_group }} make az-creds
POD_NAME=$(kubectl get pods -n karpenter --no-headers -o custom-columns=":metadata.name" | tail -n 1)
echo "logs from pod ${POD_NAME}"
kubectl logs "${POD_NAME}" -n karpenter -c controller
- name: describe-karpenter-pods
shell: bash
run: |
echo "step: describe-karpenter-pods"
AZURE_CLUSTER_NAME=${{ inputs.cluster_name }} AZURE_RESOURCE_GROUP=${{ inputs.resource_group }} make az-creds
kubectl describe pods -n karpenter
- name: describe-nodes
shell: bash
run: |
echo "step: describe-nodes"
AZURE_CLUSTER_NAME=${{ inputs.cluster_name }} AZURE_RESOURCE_GROUP=${{ inputs.resource_group }} make az-creds
kubectl describe nodes

0 comments on commit 2d62e49

Please sign in to comment.