Update openapi updater scripts

This commit is contained in:
Katrina Verey
2021-08-06 17:23:11 -07:00
parent 54383bca25
commit 5cb5e07ac0
3 changed files with 69 additions and 43 deletions

View File

@@ -8,7 +8,7 @@ VERSION=$1
cp $HOME/.kube/config /tmp/kubeconfig.txt | true
$MYGOBIN/kind create cluster --image kindest/node:$VERSION --name=getopenapidata
$MYGOBIN/kpt live fetch-k8s-schema --pretty-print > /tmp/new_swagger.json
$MYGOBIN/kustomize openapi fetch > /tmp/new_swagger.json
$MYGOBIN/kind delete cluster --name=getopenapidata
cp /tmp/kubeconfig.txt $HOME/.kube/config | true
mkdir -p kubernetesapi/"${VERSION//.}"