Skip to content

Commit 1ba3b60

Browse files
committed
refactor function name
1 parent 7b7739a commit 1ba3b60

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

internal/controller/postgrescluster/pgbackrest.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2778,7 +2778,7 @@ func (r *Reconciler) reconcileRepos(ctx context.Context,
27782778
if feature.Enabled(ctx, feature.AutoGrowVolumes) {
27792779
// get the autogrow annotations so that the correct volume size values can be
27802780
// used and the cluster status can be updated
2781-
errors = append(errors, r.getRepoHostVolumeRequests(ctx, postgresCluster))
2781+
errors = append(errors, r.writeRepoVolumeSizeRequestStatus(ctx, postgresCluster))
27822782
}
27832783

27842784
for i, repo := range postgresCluster.Spec.Backups.PGBackRest.Repos {
@@ -2820,11 +2820,11 @@ func (r *Reconciler) reconcileRepos(ctx context.Context,
28202820

28212821
// +kubebuilder:rbac:groups="",resources="pods",verbs={list}
28222822

2823-
// getRepoHostVolumeRequests gets the pgBackRest repo host volume request annotations
2823+
// writeRepoVolumeSizeRequestStatus gets the pgBackRest repo host volume request annotations
28242824
// from the repo host Pod and stores them in the Postgres Cluster object's status.
28252825
// If there is no repo host or there are no annotations, this function returns
28262826
// without updating the status.
2827-
func (r *Reconciler) getRepoHostVolumeRequests(ctx context.Context,
2827+
func (r *Reconciler) writeRepoVolumeSizeRequestStatus(ctx context.Context,
28282828
cluster *v1beta1.PostgresCluster) error {
28292829

28302830
pods := &corev1.PodList{}

internal/controller/postgrescluster/pgbackrest_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4514,7 +4514,7 @@ func TestGetRepoHostVolumeRequests(t *testing.T) {
45144514
cluster.Status.PGBackRest.Repos = tc.repoStatus
45154515
}
45164516

4517-
err := reconciler.getRepoHostVolumeRequests(ctx, cluster)
4517+
err := reconciler.writeRepoVolumeSizeRequestStatus(ctx, cluster)
45184518

45194519
if tc.repoHostExists {
45204520
assert.NilError(t, err)

0 commit comments

Comments
 (0)