e2e

package
v0.13.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 27, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

README

E2E 测试

前提条件
  • 确保kubectl命令能正常使用
  • kubectl版本和集群版本一致,避免出现API参数不对应问题
  • 确保ginkgo命令可用
kind集群测试
  • 创建kind集群
make kc
  • 删除kind集群
make kd
  • 特别注意:

    • kind创建的集群每个节点是一个docker服务,其/dev目录是共享的,lsblk视图也是共享的,所以在每个节点创建loop device是互相可见的, 这样会对测试效果产生一定影响
    • 由于kind创建的k8s集群运行在一台机器,在执行e2e测试时k8s集群性能对测试结果产生较大影响
    • 所以建议使用多主机节点集群执行测试,实际在使用vagrant创建的多个k8s集群中运行良好
    • 当服务器不支持bcache时,需要删除deploycarina/csi-carina-node.yaml关于bcache内容
    # init-container中删除bcache的内核加载
    # csi-carina-node中删除关于bcahce的目录挂载
    - name: host-bcache
      mountPath: /sys/fs/bcache
    
    - name: host-bcache
      hostPath:
        path: /sys/fs/bcache  
    
    
    
  • 安装carina

make install
  • 执行e2e测试
make e2e
  • 卸载carina
make uninstall

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunE2ETests

func RunE2ETests(t *testing.T)

RunE2ETests checks configuration parameters (specified through flags) and then runs E2E tests using the Ginkgo runner.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL