From e5f1397cbb37a475e4cf46cb382ac367f5155802 Mon Sep 17 00:00:00 2001 From: Toni Finger Date: Mon, 11 Nov 2024 12:10:56 +0100 Subject: [PATCH] Fixup: remove version parameter form delete Signed-off-by: Toni Finger --- Tests/kaas/plugin/interface.py | 5 ++--- Tests/kaas/plugin/plugin_kind.py | 2 +- Tests/kaas/plugin/run_plugin.py | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Tests/kaas/plugin/interface.py b/Tests/kaas/plugin/interface.py index ba6f8134b..f62e3b3e2 100644 --- a/Tests/kaas/plugin/interface.py +++ b/Tests/kaas/plugin/interface.py @@ -31,7 +31,7 @@ def create_cluster(self, cluster_name, version, kubeconfig_filepath): self.cluster = ClusterAPI(name=cluster_name, image=cluster_image, kubeconfig_filepath) self.cluster.create(self.config) - def delete_cluster(self, cluster_name, version): + def delete_cluster(self, cluster_name): self.cluster = ClusterAPI(cluster_name) self.cluster.delete() .. @@ -46,10 +46,9 @@ def create_cluster(self, cluster_name, version, kubeconfig_filepath): """ raise NotImplementedError - def delete_cluster(self, cluster_name, version): + def delete_cluster(self, cluster_name): """ This method is to be called in order to unprovision a cluster :param: cluster_name: - :param: version: """ raise NotImplementedError diff --git a/Tests/kaas/plugin/plugin_kind.py b/Tests/kaas/plugin/plugin_kind.py index 4bf091b43..0b2d78bc9 100644 --- a/Tests/kaas/plugin/plugin_kind.py +++ b/Tests/kaas/plugin/plugin_kind.py @@ -45,6 +45,6 @@ def create_cluster(self, cluster_name, version, kubeconfig): else: self.cluster.create(self.config) - def delete_cluster(self, cluster_name, version): + def delete_cluster(self, cluster_name): self.cluster = KindCluster(cluster_name) self.cluster.delete() diff --git a/Tests/kaas/plugin/run_plugin.py b/Tests/kaas/plugin/run_plugin.py index 518d1c62c..b9807e28a 100755 --- a/Tests/kaas/plugin/run_plugin.py +++ b/Tests/kaas/plugin/run_plugin.py @@ -54,7 +54,7 @@ def delete(plugin_kind, plugin_config, clusterspec_path, clusterspec_cluster): clusterinfo = clusterspec[clusterspec_cluster] cluster_id = clusterspec_cluster plugin = init_plugin(plugin_kind, plugin_config) - plugin.delete_cluster(cluster_id, clusterinfo['branch']) + plugin.delete_cluster(cluster_id) if __name__ == '__main__':