This documentation is for a release that is no longer maintained
See documentation for the latest supported version 3 or the latest supported version 4.3.2. 运行 Cluster Loader
流程
使用内置的测试配置执行 Cluster Loader,它会部署五个模板构建并等待它们完成:
sudo podman run -v ${LOCAL_KUBECONFIG}:/root/.kube/config:z -i \ quay.io/openshift/origin-tests:4.2 /bin/bash -c 'export KUBECONFIG=/root/.kube/config && \ openshift-tests run-test "[Feature:Performance][Serial][Slow] Load cluster should load the \ cluster [Suite:openshift]"'$ sudo podman run -v ${LOCAL_KUBECONFIG}:/root/.kube/config:z -i \ quay.io/openshift/origin-tests:4.2 /bin/bash -c 'export KUBECONFIG=/root/.kube/config && \ openshift-tests run-test "[Feature:Performance][Serial][Slow] Load cluster should load the \ cluster [Suite:openshift]"'Copy to Clipboard Copied! Toggle word wrap Toggle overflow 或者,通过设置
VIPERCONFIG环境变量来执行带有用户定义的配置的 Cluster Loader:Copy to Clipboard Copied! Toggle word wrap Toggle overflow 在这个示例中,
${LOCAL_KUBECONFIG}代表kubeconfig在本地文件系统中的路径。另外,还有一个名为${LOCAL_CONFIG_FILE_PATH}的目录,它被挂载到包含名为test.yaml的配置文件的容器中。另外,如果test.yaml引用了任何外部模板文件或 podspec 文件,则也应该被挂载到容器中。