Provide fake kubeconfig for openapi-spec generation
@@ -28,9 +28,11 @@ functest:
./hack/build-go.sh functest ${WHAT}
generate-openapi-spec: build
+ echo -e "apiVersion: v1\nclusters:\n- cluster:\n server: https://127.0.0.1:6443\nkind: Config\n" > .test.kubeconfig
./cmd/virt-api/virt-api \
- --kubeconfig cluster/vagrant/.kubeconfig \
+ --kubeconfig .test.kubeconfig \
--dump-api-spec --dump-api-spec-path api/openapi-spec/swagger.json
+ rm -f .test.kubeconfig
clean:
./hack/build-go.sh clean ${WHAT}
