release 0.2.0
This commit is contained in:
parent
75c7b30056
commit
90491d17bf
4 changed files with 22 additions and 1 deletions
|
|
@ -1,3 +1,10 @@
|
||||||
|
## 0.2.0
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- Support for imagepullsecret flag on krayt create command
|
||||||
|
- Allows pulling from private container registries by specifying an image pull secret
|
||||||
|
|
||||||
## 0.1.0
|
## 0.1.0
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
|
||||||
|
|
@ -38,6 +38,12 @@ This will install the `krayt` command to `/usr/local/bin`.
|
||||||
# Create a new inspector and apply it directly
|
# Create a new inspector and apply it directly
|
||||||
krayt create | kubectl apply -f -
|
krayt create | kubectl apply -f -
|
||||||
|
|
||||||
|
# Use a custom image
|
||||||
|
krayt create --image custom-image:latest | kubectl apply -f -
|
||||||
|
|
||||||
|
# Use a private image with pull secret
|
||||||
|
krayt create --image private-registry.com/image:latest --imagepullsecret my-registry-secret | kubectl apply -f -
|
||||||
|
|
||||||
# Or review the manifest first
|
# Or review the manifest first
|
||||||
krayt create > inspector.yaml
|
krayt create > inspector.yaml
|
||||||
kubectl apply -f inspector.yaml
|
kubectl apply -f inspector.yaml
|
||||||
|
|
|
||||||
8
krayt.py
8
krayt.py
|
|
@ -336,6 +336,7 @@ def create_inspector_job(
|
||||||
volume_mounts: list,
|
volume_mounts: list,
|
||||||
volumes: list,
|
volumes: list,
|
||||||
image: str = "alpine:latest",
|
image: str = "alpine:latest",
|
||||||
|
imagepullsecret: Optional[str] = None,
|
||||||
):
|
):
|
||||||
"""Create a Krayt inspector job with the given mounts"""
|
"""Create a Krayt inspector job with the given mounts"""
|
||||||
timestamp = int(time.time())
|
timestamp = int(time.time())
|
||||||
|
|
@ -532,6 +533,7 @@ def create_inspector_job(
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"volumes": [format_volume(v) for v in volumes if format_volume(v)],
|
"volumes": [format_volume(v) for v in volumes if format_volume(v)],
|
||||||
|
"imagePullSecrets": [{"name": imagepullsecret}] if imagepullsecret else None,
|
||||||
"restartPolicy": "Never",
|
"restartPolicy": "Never",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
@ -777,6 +779,11 @@ def create(
|
||||||
"-i",
|
"-i",
|
||||||
help="Container image to use for the inspector pod",
|
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.
|
Krack open a Krayt dragon! Create an inspector pod to explore what's inside your volumes.
|
||||||
|
|
@ -804,6 +811,7 @@ def create(
|
||||||
volume_mounts,
|
volume_mounts,
|
||||||
volumes,
|
volumes,
|
||||||
image=image,
|
image=image,
|
||||||
|
imagepullsecret=imagepullsecret,
|
||||||
)
|
)
|
||||||
|
|
||||||
# Output the job manifest
|
# Output the job manifest
|
||||||
|
|
|
||||||
2
version
2
version
|
|
@ -1 +1 @@
|
||||||
0.1.0
|
0.2.0
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue