Untitled

 avatar
unknown
python
3 years ago
856 B
5
Indexable
from typing import List

from systests_infra.plugins.k8s import base_ver
from systests_infra.plugins.k8s_1_19 import K8s1x19
from testos.racktest import rootfs


_K8S_VERSION = "1.22.5"

class K8s1x22(K8s1x19):
    @staticmethod
    def k8s_ver() -> str:
        return _K8S_VERSION

    @staticmethod
    def base_k8s_ver() -> str:
        return base_ver(_K8S_VERSION)

    @staticmethod
    def deploy_yaml_file() -> str:
        return "lb-csi-plugin-k8s-v1.22.yaml"

    @staticmethod
    def flannel_yaml_file() -> str:
        return "lb-kube-flannel-v0.14.1.yml"

    @staticmethod
    def rootfs() -> str:
        # see rootfs comment in vm_cluster_config()
        # pylint: disable-msg=no-member
        # type: ignore
        return rootfs.K8S_1_22

    @staticmethod
    def deps() -> List[str]:
        return ['rootfs:rootfs_host_k8s_1_22']
Editor is loading...