release 0.2.0

This commit is contained in:
Waylon S. Walker 2025-03-25 10:14:19 -05:00
parent 75c7b30056
commit 90491d17bf
4 changed files with 22 additions and 1 deletions

View file

@ -336,6 +336,7 @@ def create_inspector_job(
volume_mounts: list,
volumes: list,
image: str = "alpine:latest",
imagepullsecret: Optional[str] = None,
):
"""Create a Krayt inspector job with the given mounts"""
timestamp = int(time.time())
@ -532,6 +533,7 @@ def create_inspector_job(
}
],
"volumes": [format_volume(v) for v in volumes if format_volume(v)],
"imagePullSecrets": [{"name": imagepullsecret}] if imagepullsecret else None,
"restartPolicy": "Never",
},
},
@ -777,6 +779,11 @@ def create(
"-i",
help="Container image to use for the inspector pod",
),
imagepullsecret: Optional[str] = typer.Option(
None,
"--imagepullsecret",
help="Name of the image pull secret to use for pulling private images",
),
):
"""
Krack open a Krayt dragon! Create an inspector pod to explore what's inside your volumes.
@ -804,6 +811,7 @@ def create(
volume_mounts,
volumes,
image=image,
imagepullsecret=imagepullsecret,
)
# Output the job manifest