@@ -484,23 +484,36 @@ specific OCIRepository, e.g.
484484The OCIRepository reports the latest synchronized state from the OCI repository
485485as an Artifact object in the `.status.artifact` of the resource.
486486
487+ The `.status.artifact.revision` holds the SHA256 digest of the upstream OCI artifact.
488+
489+ The `.status.artifact.metadata` holds the upstream OCI artifact metadata such as the
490+ [OpenContainers standard annotations](https://github.com/opencontainers/image-spec/blob/main/annotations.md).
491+ If the OCI artifact was created with `flux push artifact`, then the `metadata` will contain the following
492+ annotations :
493+ - ` org.opencontainers.image.created` the date and time on which the artifact was built
494+ - ` org.opencontainers.image.source` the URL of the Git repository containing the source files
495+ - ` org.opencontainers.image.revision` the Git branch and commit SHA1 of the source files
496+
487497The Artifact file is a gzip compressed TAR archive (`<commit sha>.tar.gz`), and
488498can be retrieved in-cluster from the `.status.artifact.url` HTTP address.
489499
490500# ### Artifact example
491501
492502` ` ` yaml
493- ---
494503apiVersion: source.toolkit.fluxcd.io/v1beta2
495504kind: OCIRepository
496505metadata:
497506 name: <repository-name>
498507status:
499508 artifact:
500- checksum: e750c7a46724acaef8f8aa926259af30bbd9face2ae065ae8896ba5ee5ab832b
501- lastUpdateTime: "2022-06-29T06:59:23Z"
509+ checksum: 9f3bc0f341d4ecf2bab460cc59320a2a9ea292f01d7b96e32740a9abfd341088
510+ lastUpdateTime: "2022-08-08T09:35:45Z"
511+ metadata:
512+ org.opencontainers.image.created: "2022-08-08T12:31:41+03:00"
513+ org.opencontainers.image.revision: 6.1.8/b3b00fe35424a45d373bf4c7214178bc36fd7872
514+ org.opencontainers.image.source: https://github.com/stefanprodan/podinfo.git
502515 path: ocirepository/<namespace>/<repository-name>/<digest>.tar.gz
503- revision: master/363a6a8fe6a7f13e05d34c163b0ef02a777da20a
516+ revision: <digest>
504517 url: http://source-controller.<namespace>.svc.cluster.local./ocirepository/<namespace>/<repository-name>/<digest>.tar.gz
505518` ` `
506519
0 commit comments