Skip to content

Commit

Permalink
Merge pull request #1529 from dannyzaken/danny-fixes
Browse files Browse the repository at this point in the history
fixed lint error
  • Loading branch information
dannyzaken authored Feb 16, 2025
2 parents 87e4e81 + 9d900da commit 6b081b7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/system/phase4_configuring.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ func (r *Reconciler) SetDesiredSecretAdminAccountInfo() error {
if err != nil {
return fmt.Errorf("cannot read admin account info, error: %v", err)
}
if account.AccessKeys == nil || len(account.AccessKeys) <= 0 {
if len(account.AccessKeys) <= 0 {
return fmt.Errorf("admin account has no access keys yet")
}

Expand Down Expand Up @@ -417,11 +417,11 @@ func (r *Reconciler) SetDesiredDeploymentEndpoint() error {

if r.NooBaa.Spec.BucketNotifications.Enabled {
envVar := corev1.EnvVar{
Name: "NOTIFICATION_LOG_DIR",
Name: "NOTIFICATION_LOG_DIR",
Value: "/var/logs/notifications",
}

util.MergeEnvArrays(&c.Env, &[]corev1.EnvVar{envVar});
util.MergeEnvArrays(&c.Env, &[]corev1.EnvVar{envVar})
}

c.SecurityContext = &corev1.SecurityContext{
Expand Down

0 comments on commit 6b081b7

Please sign in to comment.