debug
Some checks failed
Schemas / Schemas (push) Failing after 19s

This commit is contained in:
Joseph Hanson 2024-05-29 12:01:36 -05:00
parent 0f3c3640f0
commit e3c9f76a8f
Signed by: jahanson
SSH key fingerprint: SHA256:vy6dKBECV522aPAwklFM3ReKAVB086rT3oWwiuiFG7o

View file

@ -56,10 +56,20 @@ jobs:
fileName: config.json
fileDir: $GITHUB_WORKSPACE
- name: test kubectl
- name: Extracting CRDs to yaml
env:
KUBECONFIG: "${{ steps.kubeconfig.outputs.filePath }}"
run: |
# Create temp folder for CRDs
TMP_CRD_DIR=$(mktemp -d)
echo "Temp directory: $TMP_CRD_DIR"
# Create final schemas directory
SCHEMAS_DIR=$GITHUB_WORKSPACE/crdSchemas
mkdir -p $SCHEMAS_DIR
echo "Schemas directory: $SCHEMAS_DIR"
cd $SCHEMAS_DIR
# Extract CRDs from cluster
NUM_OF_CRDS=0
while read -r crd
@ -93,4 +103,4 @@ jobs:
MC_CONFIG_DIR: $GITHUB_WORKSPACE
shell: bash
run: |
mc cp --recursive $HOME/.datree/crdSchemas/ r2-ks/kubernetes-schemas
mc cp --recursive $SCHEMAS_DIR r2-ks/kubernetes-schemas