Skip to content

Commit 70f580c

Browse files
Fix lint errors
Signed-off-by: michal.gubricky <[email protected]>
1 parent 8b893b8 commit 70f580c

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

Tests/kaas/plugin/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ In addition to the core requirements, ensure the following are set up:
4949
* An **OpenStack** environment configured and accessible.
5050
* A `clouds.yaml` file defining OpenStack credentials and endpoints.
5151
* An installing the envsubst via this command:
52+
5253
```bash
5354
GOBIN=/tmp go install github.com/drone/envsubst/v2/cmd/envsubst@latest
5455
```
@@ -57,7 +58,7 @@ In addition to the core requirements, ensure the following are set up:
5758

5859
Before running the `cluster-stacks` plugin, you need to set up the following environment variable:
5960

60-
- **GIT_ACCESS_TOKEN**: This token is required for Git operations, especially if your repository is private.
61+
* **GIT_ACCESS_TOKEN**: This token is required for Git operations, especially if your repository is private.
6162

6263
To set the `GIT_ACCESS_TOKEN`, run the following command in your terminal:
6364

Tests/kaas/plugin/plugin_cluster_stacks.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def setup_environment_variables(self):
122122

123123

124124
class PluginClusterStacks(KubernetesClusterPlugin):
125-
def __init__(self, config_file=None):
125+
def __init__(self, config_file):
126126
self.config = load_config(config_file) if config_file else {}
127127
logger.debug(self.config)
128128
self.working_directory = os.getcwd()
@@ -132,7 +132,7 @@ def __init__(self, config_file=None):
132132
self.cs_namespace = self.config.get('cs_namespace')
133133
logger.debug(f"Working from {self.working_directory}")
134134

135-
def create_cluster(self, cluster_name=None, version=None, kubeconfig_filepath=None):
135+
def create_cluster(self, cluster_name, version, kubeconfig_filepath):
136136
self.cluster_name = cluster_name
137137
self.cluster_version = version
138138
self.kubeconfig_cs_cluster = kubeconfig_filepath
@@ -176,10 +176,9 @@ def create_cluster(self, cluster_name=None, version=None, kubeconfig_filepath=No
176176
self._retrieve_kubeconfig(namespace=self.cs_namespace, kubeconfig=self.kubeconfig_mgmnt)
177177

178178
# Wait for workload system pods to be ready
179-
# wait_for_workload_pods_ready(kubeconfig_path=self.kubeconfig_cs_cluster)
180179
wait_for_pods(self, ["kube-system"], timeout=600, interval=15, kubeconfig=self.kubeconfig_cs_cluster)
181180

182-
def delete_cluster(self, cluster_name=None, kubeconfig_filepath=None):
181+
def delete_cluster(self, cluster_name, kubeconfig_filepath):
183182
self.cluster_name = cluster_name
184183
kubeconfig_cs_cluster_filename = kubeconfig_filepath
185184

Tests/kaas/plugin/requirements.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ google-auth==2.34.0
1616
# via kubernetes
1717
idna==3.8
1818
# via requests
19-
junitparser==3.2.0
20-
# via -r requirements.in
2119
kubernetes==30.1.0
2220
# via -r requirements.in
2321
oauthlib==3.2.2

Tests/kaas/plugin/run_plugin.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ def create(plugin_kind, plugin_config, clusterspec_path, cluster_id):
5151
@click.argument('clusterspec_path', type=click.Path(exists=True, dir_okay=False))
5252
@click.argument('cluster_id', type=str, default="default")
5353
def delete(plugin_kind, plugin_config, clusterspec_path, cluster_id):
54+
clusterspec = load_spec(clusterspec_path)['clusters']
55+
clusterinfo = clusterspec[cluster_id]
5456
plugin = init_plugin(plugin_kind, plugin_config)
5557
plugin.delete_cluster(cluster_id, os.path.abspath(clusterinfo['kubeconfig']))
5658

0 commit comments

Comments
 (0)