parent
0f3c3640f0
commit
e3c9f76a8f
1 changed files with 12 additions and 2 deletions
|
@ -56,10 +56,20 @@ jobs:
|
||||||
fileName: config.json
|
fileName: config.json
|
||||||
fileDir: $GITHUB_WORKSPACE
|
fileDir: $GITHUB_WORKSPACE
|
||||||
|
|
||||||
- name: test kubectl
|
- name: Extracting CRDs to yaml
|
||||||
env:
|
env:
|
||||||
KUBECONFIG: "${{ steps.kubeconfig.outputs.filePath }}"
|
KUBECONFIG: "${{ steps.kubeconfig.outputs.filePath }}"
|
||||||
run: |
|
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
|
# Extract CRDs from cluster
|
||||||
NUM_OF_CRDS=0
|
NUM_OF_CRDS=0
|
||||||
while read -r crd
|
while read -r crd
|
||||||
|
@ -93,4 +103,4 @@ jobs:
|
||||||
MC_CONFIG_DIR: $GITHUB_WORKSPACE
|
MC_CONFIG_DIR: $GITHUB_WORKSPACE
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
mc cp --recursive $HOME/.datree/crdSchemas/ r2-ks/kubernetes-schemas
|
mc cp --recursive $SCHEMAS_DIR r2-ks/kubernetes-schemas
|
||||||
|
|
Loading…
Reference in a new issue