@@ -484,23 +484,36 @@ specific OCIRepository, e.g.
484
484
The OCIRepository reports the latest synchronized state from the OCI repository
485
485
as an Artifact object in the `.status.artifact` of the resource.
486
486
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
+
487
497
The Artifact file is a gzip compressed TAR archive (`<commit sha>.tar.gz`), and
488
498
can be retrieved in-cluster from the `.status.artifact.url` HTTP address.
489
499
490
500
# ### Artifact example
491
501
492
502
` ` ` yaml
493
- ---
494
503
apiVersion: source.toolkit.fluxcd.io/v1beta2
495
504
kind: OCIRepository
496
505
metadata:
497
506
name: <repository-name>
498
507
status:
499
508
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
502
515
path: ocirepository/<namespace>/<repository-name>/<digest>.tar.gz
503
- revision: master/363a6a8fe6a7f13e05d34c163b0ef02a777da20a
516
+ revision: <digest>
504
517
url: http://source-controller.<namespace>.svc.cluster.local./ocirepository/<namespace>/<repository-name>/<digest>.tar.gz
505
518
` ` `
506
519
0 commit comments