Skip to content

Commit b2848f8

Browse files
authored
Merge pull request #2108 from robnester-rh/EC-905
EC-905 - Document input.snapshot in policy.input
2 parents 7d75122 + 366e712 commit b2848f8

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

docs/modules/ROOT/pages/policy_input.adoc

+19-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ being available. Not all information is available for all images. This is noted
1111
description of each attribute.
1212

1313
It is important to note that this command may proccess multiple images at the same time. In such
14-
cases, a different input is generated for each image. In other words, policy rules only eve have
14+
cases, a different input is generated for each image. In other words, policy rules only ever have
1515
access to the information about a single image.
1616

1717
[,json]
@@ -29,6 +29,7 @@ access to the information about a single image.
2929
}
3030
],
3131
"image": #ImageDescriptor
32+
"snapshot": #SnapshotDescriptor
3233
}
3334
3435
#ImageDescriptor: {
@@ -54,6 +55,19 @@ access to the information about a single image.
5455
"url": "<STRING>"
5556
}
5657
}
58+
59+
#SnapshotDescriptor: {
60+
"application": "<STRING>",
61+
"displayName": "<STRING>",
62+
"displayDescription": "<STRING>",
63+
"components": [..."#SnapshotComponentDescriptor"]
64+
}
65+
66+
#SnapshotComponentDescriptor: {
67+
"name": "<STRING>",
68+
"containerImage": "<STRING>",
69+
"source": #SourceDescriptor"
70+
}
5771
----
5872

5973
`.attestations` is an array of objects. Each object contains the `.statement` and the `.signatures`
@@ -101,3 +115,7 @@ information is not given to the command.
101115
The SourceDescriptor contains the the single `git` attribute which hold an object with information
102116
about a git repository. `.revision` is a string holding a git reference. This could be a commit ID,
103117
branch, etc. `url` is the the URL of the git repository.
118+
119+
The SnapshotDescriptor contains the information about the application snapshot provided to the `ec validate image` command. `.application` is a string holding the name of the application. `.displayName` is a string holding the display name of the application. `.displayDescription` is a string holding the display description of the application. `.components` is an array of SnapshotComponentDescriptor objects.
120+
121+
The SnapshotComponentDescriptor contains the information about the components of the application snapshot provided to the `ec validate image` command. `.name` is a string holding the name of the component. `.containerImage` is a string holding the container image of the component. `.source` is a SourceDescriptor object.

0 commit comments

Comments
 (0)