Add your description here
Project description
ctfroute-k8s
This package exposes a lightweight interface to ctfroute via Kubernetes CRDs. Specifically, it allows to create gate instances in Kubernetes via CRDs that will be handled by the ctfroute operator.
Installation
The package can be installed from pypi:
uv add ctfroute-k8s
Managing gates
To create instances, you can either use the models or the wrapper functions which should allow for more intuitive gate declaration.
from ctfroute_k8s import add_connection_gate
await add_connection_gate(
namespace=NAMESPACE,
name="close-network",
conn_src="any-team",
conn_dst="any-team",
)
If you want to remove gates, fall back to the functionality provided by cloudcoil via the Gate model.
from ctfroute_k8s import Gate
gate = await Get.async_get(namespace="myctf", name="close-network")
await gate.async_delete()
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ctfroute_k8s-0.2.0.tar.gz.
File metadata
- Download URL: ctfroute_k8s-0.2.0.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e92483ab7289b31540e8b28fc16ffdfd9628ce10993b440ce75c4d11e8ad2bc5
|
|
| MD5 |
db1f64cdcaf4dec2cd29bfcb8c2ca067
|
|
| BLAKE2b-256 |
0fa8188aea2e1fa67e43cb7fdba333b07f68c1a7a3057c0ae13f9441e799c8a3
|
File details
Details for the file ctfroute_k8s-0.2.0-py3-none-any.whl.
File metadata
- Download URL: ctfroute_k8s-0.2.0-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f7dff4838564c826136540ed173e6570118ad08dfafd4fb7af5592fe0e502651
|
|
| MD5 |
1eb655cd4359c260333b2aeee6fbf891
|
|
| BLAKE2b-256 |
a4437b704645beb5c95594e310e05b43ef846e2fd68c38cfe30942431a7ed2b5
|