Merge pull request #967 from munnerz/unused-args

Remove unused arg from GenerateTemplate
This commit is contained in:
jetstack-bot 2018-10-16 14:36:36 +01:00 committed by GitHub
commit 9eab875005
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -114,7 +114,7 @@ func (c *CA) obtainCertificate(crt *v1alpha1.Certificate, signeeKey interface{},
return nil, fmt.Errorf("error getting issuer private key: %s", err.Error())
}
template, err := pki.GenerateTemplate(c.issuer, crt, nil)
template, err := pki.GenerateTemplate(c.issuer, crt)
if err != nil {
return nil, err
}

View File

@ -91,7 +91,7 @@ func (c *SelfSigned) obtainCertificate(crt *v1alpha1.Certificate, privateKey cry
return nil, err
}
template, err := pki.GenerateTemplate(c.issuer, crt, nil)
template, err := pki.GenerateTemplate(c.issuer, crt)
if err != nil {
return nil, err
}

View File

@ -124,7 +124,7 @@ func GenerateCSR(issuer v1alpha1.GenericIssuer, crt *v1alpha1.Certificate) (*x50
// This should create a Certificate template that is equivalent to the CertificateRequest
// generated by GenerateCSR.
// The PublicKey field must be populated by the caller.
func GenerateTemplate(issuer v1alpha1.GenericIssuer, crt *v1alpha1.Certificate, serialNo *big.Int) (*x509.Certificate, error) {
func GenerateTemplate(issuer v1alpha1.GenericIssuer, crt *v1alpha1.Certificate) (*x509.Certificate, error) {
commonName := CommonNameForCertificate(crt)
dnsNames := DNSNamesForCertificate(crt)
organization := OrganizationForCertificate(crt)