API
Group: imageinventory.io
Version: v1alpha1
Kind: Image
Scope: Namespaced
Short name: img
Spec
| Field |
Type |
Description |
image |
string |
Normalized image reference (required) |
apiVersion: imageinventory.io/v1alpha1
kind: Image
metadata:
name: docker-io-library-nginx-1-27-<hash>
namespace: my-app
labels:
app.kubernetes.io/managed-by: image-inventory-controller
spec:
image: docker.io/library/nginx:1.27
Status
| Field |
Type |
Description |
kinds |
string |
Comma-separated sorted kinds (e.g. Deployment,Pod) |
status:
kinds: Deployment,Pod
Printer columns
| Column |
JSONPath |
| IMAGE |
.spec.image |
| KINDS |
.status.kinds |
Ownership
Label app.kubernetes.io/managed-by=image-inventory-controller marks controller ownership.
- GC deletes managed Images that are no longer in the desired set.
- Objects with that label are owned by the controller (
spec may be overwritten).
- Objects without the label are ignored.
CRD
config/crd/imageinventory.io_images.yaml