source-controller/api
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
..
v1 gitrepo: add HEAD, Tag, TagAndHEAD as verification modes 2023-08-21 21:33:15 +05:30
v1beta1 api: improve validation rules and omitempty nits 2023-03-29 00:00:06 +02:00
v1beta2 api: document jitter effect on interval fields 2023-08-07 16:23:27 +02:00
go.mod api: update controller-runtime to v0.15.1 2023-08-11 13:12:11 +02:00
go.sum api: update controller-runtime to v0.15.1 2023-08-11 13:12:11 +02:00