Skip to content

Commit e75c8e4

Browse files
feat: Add imageIndex field to imageData (#1433)
Signed-off-by: ShutingZhao <shuting@nirmata.com> Co-authored-by: ShutingZhao <shuting@nirmata.com>
1 parent cb0f70d commit e75c8e4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

content/en/docs/writing-policies/external-data-sources.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -752,6 +752,7 @@ the output `imageData` variable will have a structure which looks like the follo
752752
"registry": "ghcr.io",
753753
"repository": "kyverno/kyverno",
754754
"identifier": "latest",
755+
"imageIndex": imageIndex,
755756
"manifest": manifest,
756757
"configData": config,
757758
}
@@ -771,7 +772,7 @@ The `imageData` variable represents a "normalized" view of an image after any re
771772
```
772773
{{% /alert %}}
773774

774-
The `manifest` and `config` keys contain the output from `crane manifest <image>` and `crane config <image>` respectively.
775+
The `imageIndex`, `manifest` and `config` keys contain the output from `crane manifest <image>` and `crane config <image>` respectively.
775776

776777
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:
777778

0 commit comments

Comments
 (0)