source-controller/api/v1beta2
Hidde Beydals 440f1d599c api: omit empty Digest in Artifact
While we initially decided against it, this otherwise causes the regexp
validator to error on an empty field when it goes through a YAML -> JSON
encode loop (even when marked with `+optional`).

This is not actually a viable path the controller could take, as the
controller trying to update the Artifact with an older version of the
API package would omit the `Digest` field (because it does not exist
in that version), while a newer version of the controller would always
include the field (because we produce it for all kinds). While in cases
where the controller would be backed by a Persistent Volume (and a
partial status update is made), the validation rule would not be
triggered because the field is not part of the patch.

However, for sake of correctness, we still issue a patch.

Signed-off-by: Hidde Beydals <hello@hidde.co>
2023-02-16 21:57:03 +01:00
..
artifact_types.go api: omit empty Digest in Artifact 2023-02-16 21:57:03 +01:00
artifact_types_test.go api: introduce TransformLegacyRevision helper 2023-02-14 12:48:36 +01:00
bucket_types.go Bucket: Add status.observedIgnore 2022-10-10 23:06:02 +05:30
condition_types.go Introduce Initial OCIRepository Source Verification 2022-09-20 14:07:10 +03:00
doc.go Introduce v1beta2 API package 2022-02-23 12:34:35 +01:00
gitrepository_types.go add support for checking out to Git refs 2023-02-16 17:33:11 +05:30
groupversion_info.go Introduce v1beta2 API package 2022-02-23 12:34:35 +01:00
helmchart_types.go Fix verification condition 2022-10-21 15:21:10 +02:00
helmrepository_types.go fix typo in helmRepo secretRef spec CRD 2023-01-16 19:52:06 +05:30
ocirepository_types.go OCIRepo: Add observed content config in status 2022-10-10 23:06:02 +05:30
source.go Document Bucket API v1beta2 spec 2022-03-11 10:04:14 +01:00
zz_generated.deepcopy.go implement Cosign verification for HelmCharts 2022-10-21 10:00:08 +02:00