Skip to content

Commit

Permalink
undo kubeconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
louiseschmidtgen committed Mar 25, 2024
1 parent 56a5833 commit e647145
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ Sometimes you will want to debug certain situations, and having the models torn

Running the integration tests with extra arguments can be accomplished with
```shell
tox run -e integration-tests -- --positional --arguments
tox run -e integration -- --positional --arguments
```

#### COS Integration
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,11 +244,11 @@ async def kubernetes_cluster(request: pytest.FixtureRequest, ops_test: OpsTest):
async def cluster_kubeconfig(ops_test: OpsTest, kubernetes_cluster: Model):
"""Fixture to pull the kubeconfig out of the kubernetes cluster"""
k8s = kubernetes_cluster.applications["k8s"].units[0]
action = await k8s.run_action("get-kubeconfig")
action = await k8s.run("k8s config")
result = await action.wait()
assert result.results["return-code"] == 0, "Failed to get kubeconfig with kubectl"
kubeconfig_path = ops_test.tmp_path / "kubeconfig"
kubeconfig_path.write_text(result.results["kubeconfig"])
kubeconfig_path.write_text(result.results["stdout"])
yield kubeconfig_path


Expand Down

0 comments on commit e647145

Please sign in to comment.