release 0.2.0
This commit is contained in:
parent
75c7b30056
commit
90491d17bf
4 changed files with 22 additions and 1 deletions
8
krayt.py
8
krayt.py
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue