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 ae02bba commit 12925fe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 0 additions & 2 deletions pkg/cluster/controllers/storage/minio.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,6 @@ func (m *MinIOController) Apply(ctx context.Context, harborcluster *goharborv1.H
m.KubeClient.WithContext(ctx)

m.HarborCluster = harborcluster
desiredMinIOCR := m.generateMinIOCR()
m.DesiredMinIOCR = desiredMinIOCR

desiredMinIOCR, err := m.generateMinIOCR(ctx, harborcluster)
if err != nil {
Expand Down
6 changes: 4 additions & 2 deletions pkg/cluster/controllers/storage/provision.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,10 @@ func (m *MinIOController) generateMinIOCR(ctx context.Context, harborcluster *go
Name: m.HarborCluster.Spec.InClusterStorage.MinIOSpec.Redirect.Expose.TLS.CertificateRef,
Type: "kubernetes.io/tls",
},
ServiceName: m.getServiceName(),
Image: m.GetImage(),
ServiceName: m.getServiceName(),
Image: image,
ImagePullPolicy: m.getImagePullPolicy(ctx, harborcluster),
ImagePullSecret: m.getImagePullSecret(ctx, harborcluster),
Zones: []minio.Zone{
{
Name: DefaultZone,
Expand Down

0 comments on commit 12925fe

Please sign in to comment.