private void handleCertificateRequest(CertificateRequest request){
  if (request.getRenew()) {
    val certificateResponse=requestHandler.requestCertificate(request.getDomains());
    secretManager.updateCertificate(namespace,request.getSecretName(),certificateResponse);
  }
 else {
    val certificateResponse=requestHandler.requestCertificate(request.getDomains());
    secretManager.insertCertificate(namespace,request.getSecretName(),certificateResponse);
  }
}

private void handleCertificateRequest ( CertificateRequest request ) { if ( request . getRenew ( ) ) { val certificateResponse = requestHandler . requestCertificate ( request . getDomains ( ) ) ; secretManager . updateCertificate ( namespace , request . getSecretName ( ) , certificateResponse ) ; } else { val certificateResponse = requestHandler . requestCertificate ( request . getDomains ( ) ) ; secretManager . insertCertificate ( namespace , request . getSecretName ( ) , certificateResponse ) ; } }
this function performs a certificate request as determined by preparecertificaterequest ( ) . the resulting certificate will either be added to the kubernetes cluster as a new secret , or the existing secret will be updated with the new certificate .
