From 214034fcc1685758997e795e034e060b92b096dc Mon Sep 17 00:00:00 2001 From: shuting Date: Thu, 7 Nov 2024 15:32:44 +0800 Subject: [PATCH] Revert "feat: Add imageIndex field to imageData (#1362)" This reverts commit 66ed9c09367df0f570fc400f83c41ff70261acac. --- content/en/docs/writing-policies/external-data-sources.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/content/en/docs/writing-policies/external-data-sources.md b/content/en/docs/writing-policies/external-data-sources.md index e305735c2..17c16cec4 100644 --- a/content/en/docs/writing-policies/external-data-sources.md +++ b/content/en/docs/writing-policies/external-data-sources.md @@ -752,7 +752,6 @@ 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, } @@ -772,7 +771,7 @@ The `imageData` variable represents a "normalized" view of an image after any re ``` {{% /alert %}} -The `imageIndex`, `manifest` and `config` keys contain the output from `crane manifest ` and `crane config ` respectively. +The `manifest` and `config` keys contain the output from `crane manifest ` and `crane config ` 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: