source-controller/api/v1
Sanskar Jaiswal 6002ef51a6
gitrepo: add HEAD, Tag, TagAndHEAD as verification modes
Add three new verification modes for `.spec.verify.mode`:
* `HEAD`: Verify the commit that the HEAD of the repo points to after
  checking out to the ref specified in `.spec.ref`. Its the same as
  `head`, which cannot be removed due to backwards compatibility
  reasons and is converted to `HEAD` internally.
* `Tag`: Verify the tag referred to by `.spec.ref.tag`.
* `TagAndHEAD`: Verify the tag referred to by `.spec.ref.tag` and the
  commit that the tag points to.

The default is `HEAD`, to ensure backwards compatibility.

Furthermore, add `.status.sourceVerificationMode` to record the last
successful verification mode used.

Signed-off-by: Sanskar Jaiswal <jaiswalsanskar078@gmail.com>
2023-08-21 21:33:15 +05:30
..
artifact_types.go api: improve validation rules and omitempty nits 2023-03-29 00:00:06 +02:00
condition_types.go Promote GitRepository API to v1 2023-03-23 23:17:23 +02:00
doc.go Promote GitRepository API to v1 2023-03-23 23:17:23 +02:00
gitrepository_types.go gitrepo: add HEAD, Tag, TagAndHEAD as verification modes 2023-08-21 21:33:15 +05:30
groupversion_info.go Promote GitRepository API to v1 2023-03-23 23:17:23 +02:00
source.go Promote GitRepository API to v1 2023-03-23 23:17:23 +02:00
zz_generated.deepcopy.go gitrepo: add HEAD, Tag, TagAndHEAD as verification modes 2023-08-21 21:33:15 +05:30