fix: client certificate is required for etcd datastore (#733)

This commit is contained in:
Dario Tranchitella
2025-03-20 14:36:08 +01:00
committed by GitHub
parent e7df0f15d8
commit 22a40409f2

View File

@@ -96,6 +96,10 @@ func (d DataStoreValidation) validateTLSConfig(ctx context.Context, ds kamajiv1a
if ds.Spec.TLSConfig.CertificateAuthority.PrivateKey == nil {
return fmt.Errorf("CA private key is required when using the etcd driver")
}
if ds.Spec.TLSConfig.ClientCertificate == nil {
return fmt.Errorf("client certificate is required when using the etcd driver")
}
}
if ds.Spec.TLSConfig.CertificateAuthority.PrivateKey != nil {