mirror of
https://github.com/usual2970/certimate.git
synced 2025-10-05 05:54:53 +00:00
refactor: clean code
This commit is contained in:
@@ -65,6 +65,9 @@ func (d *K8sSecretDeployer) Deploy(ctx context.Context, certPem string, privkeyP
|
||||
if d.config.SecretName == "" {
|
||||
return nil, errors.New("config `secretName` is required")
|
||||
}
|
||||
if d.config.SecretType == "" {
|
||||
return nil, errors.New("config `secretType` is required")
|
||||
}
|
||||
if d.config.SecretDataKeyForCrt == "" {
|
||||
return nil, errors.New("config `secretDataKeyForCrt` is required")
|
||||
}
|
||||
|
Reference in New Issue
Block a user