Skip to content

Commit

Permalink
reference variable value corrected. (#1176)
Browse files Browse the repository at this point in the history
changing the incorrect digest example

Signed-off-by: Shubham Singh <shubhammahar1306@gmail.com>
  • Loading branch information
1Shubham7 committed Mar 2, 2024
1 parent c3e8e2b commit 9693798
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/en/docs/Writing policies/variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ Reference the image properties of container `nginx`:

`{{images.containers.nginx.referenceWithTag}}`

For the container `nginx`, `referenceWithTag` corresponds to `https://docker.io/library/nginx:`. Since the image was specified with a digest, `reference` corresponds to `https://docker.io/library/nginx@sha256:abcdef1234567890`. `reference` enables referencing the image depending on how it was originally specified: if it was specified with a tag then `reference` will contain the tag; if specified with digest then `reference` will contain the digest.
For the container `nginx`, `referenceWithTag` corresponds to `https://docker.io/library/nginx:`. Since the image was specified with a digest, `reference` corresponds to `https://docker.io/library/nginx@sha256:5f44022eab9198d75939d9eaa5341bc077eca16fa51d4ef32d33f1bd4c8cbe7d`. `reference` enables referencing the image depending on how it was originally specified: if it was specified with a tag then `reference` will contain the tag; if specified with digest then `reference` will contain the digest.

Reference the image properties of initContainer `vault`:

Expand Down

0 comments on commit 9693798

Please sign in to comment.