Skip to content

Commit

Permalink
feat: Add imageIndex field to imageData (#1433)
Browse files Browse the repository at this point in the history
Signed-off-by: ShutingZhao <[email protected]>
Co-authored-by: ShutingZhao <[email protected]>
  • Loading branch information
vishal-chdhry and realshuting authored Nov 14, 2024
1 parent cb0f70d commit e75c8e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion content/en/docs/writing-policies/external-data-sources.md
Original file line number Diff line number Diff line change
Expand Up @@ -752,6 +752,7 @@ the output `imageData` variable will have a structure which looks like the follo
"registry": "ghcr.io",
"repository": "kyverno/kyverno",
"identifier": "latest",
"imageIndex": imageIndex,
"manifest": manifest,
"configData": config,
}
Expand All @@ -771,7 +772,7 @@ The `imageData` variable represents a "normalized" view of an image after any re
```
{{% /alert %}}

The `manifest` and `config` keys contain the output from `crane manifest <image>` and `crane config <image>` respectively.
The `imageIndex`, `manifest` and `config` keys contain the output from `crane manifest <image>` and `crane config <image>` respectively.

For example, one could inspect the labels, entrypoint, volumes, history, layers, etc of a given image. Using the [crane](https://github.com/google/go-containerregistry/tree/main/cmd/crane) tool, show the config of the `ghcr.io/kyverno/kyverno:latest` image:

Expand Down

0 comments on commit e75c8e4

Please sign in to comment.