@@ -1185,7 +1185,7 @@ def delete_finished_jobs(self, delete_failed=False, namespace=None, label_filter
11851185 This operation is only valid for a Kubernetes cluster.
11861186
11871187 :param bool delete_failed: if True, delete both completed and failed jobs, otherwise only delete completed jobs
1188- :param str namespace: the namespace in which to delete the jobs
1188+ :param str namespace: the namespace in which to delete the jobs, if None, uses the namespace set in kubectl's current context
11891189 :param str label_filter: delete only jobs matching a label filter
11901190 :param bool dry_run: if True, execute the command as a "dry run"
11911191 :return: a dict containing whether the deletion succeeded, a list of deleted job names, and
@@ -1202,7 +1202,7 @@ def delete_finished_pods(self, namespace=None, label_filter=None, dry_run=False)
12021202
12031203 This operation is only valid for a Kubernetes cluster.
12041204
1205- :param str namespace: the namespace in which to delete the pods
1205+ :param str namespace: the namespace in which to delete the pods, if None, uses the namespace set in kubectl's current context
12061206 :param str label_filter: delete only pods matching a label filter
12071207 :param bool dry_run: if True, execute the command as a "dry run"
12081208 :return: a dict containing whether the deletion succeeded, a list of deleted pod names, and
@@ -1219,7 +1219,7 @@ def delete_all_pods(self, namespace=None, label_filter=None, dry_run=False):
12191219
12201220 This operation is only valid for a Kubernetes cluster.
12211221
1222- :param str namespace: the namespace in which to delete the pods
1222+ :param str namespace: the namespace in which to delete the pods, if None, uses the namespace set in kubectl's current context
12231223 :param str label_filter: delete only pods matching a label filter
12241224 :param bool dry_run: if True, execute the command as a "dry run"
12251225 :return: a dict containing whether the deletion succeeded, a list of deleted pod names, and
@@ -1230,6 +1230,7 @@ def delete_all_pods(self, namespace=None, label_filter=None, dry_run=False):
12301230 "POST" , "/admin/clusters/%s/k8s/delete-all-pods" % self .cluster_id ,
12311231 params = {'namespace' : namespace , 'labelFilter' : label_filter , 'dryRun' : dry_run })
12321232
1233+
12331234class DSSClusterSettings (object ):
12341235 """
12351236 The settings of a cluster
@@ -1265,6 +1266,7 @@ def save(self):
12651266 return self .client ._perform_json (
12661267 "PUT" , "/admin/clusters/%s" % (self .cluster_id ), body = self .settings )
12671268
1269+
12681270class DSSClusterStatus (object ):
12691271 """
12701272 The status of a cluster
0 commit comments