Skip to content

Commit

Permalink
fix: go lint
Browse files Browse the repository at this point in the history
Signed-off-by: soulseen <zhuxiaoyang1996@gmail.com>
  • Loading branch information
soulseen committed Jan 24, 2021
1 parent e4716fe commit 35ef1ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/goharbor/registry/deployments.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ func (r *Reconciler) GetDeployment(ctx context.Context, registry *goharborv1alph
})
}

if registry.Spec.Storage.Driver.S3.CertificateRef != "" {
if registry.Spec.Storage.Driver.S3 != nil && registry.Spec.Storage.Driver.S3.CertificateRef != "" {
volumes = append(volumes, corev1.Volume{
Name: StorageServiceCAName,
VolumeSource: corev1.VolumeSource{
Expand Down

0 comments on commit 35ef1ef

Please sign in to comment.