コード例 #1
0
 def __init__(self, kubeconfig, test_namespace, keep_objects, value_pvc, value_vs_class, number_of_snapshots, image_name, cluster_id):
     config.load_kube_config(config_file=kubeconfig)
     self.value_pvc = value_pvc
     self.value_vs_class = value_vs_class
     self.number_of_snapshots = number_of_snapshots
     self.image_name = image_name
     self.cluster_id = cluster_id
     d.set_test_namespace_value(test_namespace)
     snapshot.set_test_namespace_value(test_namespace)
     cleanup.set_keep_objects(keep_objects)
     cleanup.set_test_namespace_value(test_namespace)
コード例 #2
0
 def __init__(self, kubeconfig_value, value_pvc, value_pod, cluster_id, test_ns, keep_object, image_name):
     self.value_pvc = value_pvc
     self.value_pod = value_pod
     self.cluster_id = cluster_id
     self.test_ns = test_ns
     self.keep_objects = keep_object
     self.kubeconfig = kubeconfig_value
     self.image_name = image_name
     d.set_test_namespace_value(self.test_ns)
     cleanup.set_keep_objects(self.keep_objects)
     cleanup.set_test_namespace_value(self.test_ns)