-
Notifications
You must be signed in to change notification settings - Fork 929
/
action.yaml
42 lines (42 loc) · 1.32 KB
/
action.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: DumpLogs
description: 'Dump logs and debug information from the cluster after a test run'
inputs:
account_id:
description: "Account ID to access AWS"
required: true
role:
description: "Role to access AWS"
required: true
region:
description: "Region to access AWS"
required: true
cluster_name:
description: 'Name of the cluster to be launched by eksctl'
required: true
runs:
using: "composite"
steps:
- name: configure aws credentials
uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2
with:
role-to-assume: arn:aws:iam::${{ inputs.account_id }}:role/${{ inputs.role }}
aws-region: ${{ inputs.region }}
role-duration-seconds: 21600
- name: update cluster context
shell: bash
env:
CLUSTER_NAME: ${{ inputs.cluster_name }}
run: |
aws eks update-kubeconfig --name "$CLUSTER_NAME"
- name: controller-logs
shell: bash
run: |
kubectl logs -n kube-system -l app.kubernetes.io/name=karpenter --all-containers --ignore-errors
- name: describe karpenter pods
shell: bash
run: |
kubectl describe pods -n kube-system -l app.kubernetes.io/name=karpenter
- name: describe nodes
shell: bash
run: |
kubectl describe nodes