Skip to content

Commit 78a1f9b

Browse files
Jociele PadilhaSchmaetz
authored andcommitted
update to go 1.25.x
1 parent cce3304 commit 78a1f9b

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

pkg/cluster/sync.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1093,7 +1093,7 @@ func (c *Cluster) updateSecret(
10931093
}
10941094

10951095
if updateSecret {
1096-
c.logger.Debugln(updateSecretMsg)
1096+
c.logger.Debugln("%s", updateSecretMsg)
10971097
if _, err = c.KubeClient.Secrets(secret.Namespace).Update(context.TODO(), secret, metav1.UpdateOptions{}); err != nil {
10981098
return fmt.Errorf("could not update secret %s: %v", secretName, err)
10991099
}

pkg/cluster/util.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,9 +269,9 @@ func (c *Cluster) getTeamMembers(teamID string) ([]string, error) {
269269
if teamID == "" {
270270
msg := "no teamId specified"
271271
if c.OpConfig.EnableTeamIdClusternamePrefix {
272-
return nil, fmt.Errorf(msg)
272+
return nil, fmt.Errorf("%s", msg)
273273
}
274-
c.logger.Warnf(msg)
274+
c.logger.Warnf("%s", msg)
275275
return nil, nil
276276
}
277277

pkg/cluster/volumes.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ func (c *Cluster) syncUnderlyingEBSVolume() error {
135135

136136
if len(errors) > 0 {
137137
for _, s := range errors {
138-
c.logger.Warningf(s)
138+
c.logger.Warningf("%s", s)
139139
}
140140
}
141141
return nil

pkg/controller/postgresql.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ func (c *Controller) createPodServiceAccount(namespace string) error {
588588
_, err := c.KubeClient.ServiceAccounts(namespace).Get(context.TODO(), podServiceAccountName, metav1.GetOptions{})
589589
if k8sutil.ResourceNotFound(err) {
590590

591-
c.logger.Infof(fmt.Sprintf("creating pod service account %q in the %q namespace", podServiceAccountName, namespace))
591+
c.logger.Infof("creating pod service account %q in the %q namespace", podServiceAccountName, namespace)
592592

593593
// get a separate copy of service account
594594
// to prevent a race condition when setting a namespace for many clusters

pkg/controller/util.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ func (c *Controller) getInfrastructureRoles(
249249
}
250250

251251
if len(errors) > 0 {
252-
return uniqRoles, fmt.Errorf(strings.Join(errors, `', '`))
252+
return uniqRoles, fmt.Errorf("%s", strings.Join(errors, `', '`))
253253
}
254254

255255
return uniqRoles, nil

0 commit comments

Comments
 (0)