Skip to content

Commit

Permalink
Revert "feat: Add imageIndex field to imageData (#1362)"
Browse files Browse the repository at this point in the history
This reverts commit 66ed9c0.
  • Loading branch information
realshuting authored Nov 7, 2024
1 parent 917c908 commit 214034f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions content/en/docs/writing-policies/external-data-sources.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
Expand All @@ -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 <image>` and `crane config <image>` respectively.
The `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 214034f

Please sign in to comment.