mirror of
https://github.com/outbackdingo/kamaji.git
synced 2026-01-27 10:19:29 +00:00
* feat: Validate DataStores with CEL using the following rules - certificateAuthority privateKey must have secretReference or content when driver is etcd - clientCertificate must have secretReference or content when driver is etcd - clientCertificate privateKey must have secretReference or content when driver is etcd - When driver is not etcd and tlsConfig exists, certificateAuthority must be null or contain valid content - When driver is not etcd and tlsConfig exists, clientCertificate must be null or contain valid content - When driver is not etcd and basicAuth exists, username must have secretReference or content - When driver is not etcd and basicAuth exists, password must have secretReference or content - When driver is not etcd, either tlsConfig or basicAuth must be provided Signed-off-by: aerosouund <aerosound161@gmail.com> * fix: Add extra rule Signed-off-by: aerosouund <aerosound161@gmail.com> * fix: ginkgo flag ordering Signed-off-by: aerosouund <aerosound161@gmail.com> * fix: Fix syntax of tls or basic auth rule and remove the certificate authority rule Signed-off-by: aerosouund <aerosound161@gmail.com> * test: Add ginkgo tests for validations Signed-off-by: aerosouund <aerosound161@gmail.com> * fix(test): missing default values Signed-off-by: Dario Tranchitella <dario@tranchitella.eu> * chore(ci): running integration tests as gh job Signed-off-by: Dario Tranchitella <dario@tranchitella.eu> --------- Signed-off-by: aerosouund <aerosound161@gmail.com> Signed-off-by: Dario Tranchitella <dario@tranchitella.eu> Co-authored-by: Dario Tranchitella <dario@tranchitella.eu>