Skip to content

Commit

Permalink
k8s: Rename function that sets volumes for Redpanda pod
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafal Korepta committed Jun 4, 2022
1 parent 64913ae commit b28b6d6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/go/k8s/pkg/resources/statefulset.go
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ func (r *StatefulSetResource) obj(
})
}

setCloudStorage(ss, r.pandaCluster)
setVolumes(ss, r.pandaCluster)

rpkStatusContainer := r.rpkStatusContainer(tlsVolumeMounts)
if rpkStatusContainer != nil {
Expand Down Expand Up @@ -586,9 +586,9 @@ func (r *StatefulSetResource) composeCURLMaintenanceCommand(
return cmd
}

// setCloudStorage manipulates v1.StatefulSet object in order to add cloud storage specific
// properties to Redpanda pod.
func setCloudStorage(
// setVolumes manipulates v1.StatefulSet object in order to add cloud storage and
// Redpanda data volume
func setVolumes(
ss *appsv1.StatefulSet, cluster *redpandav1alpha1.Cluster,
) {
pvcDataDir := preparePVCResource(datadirName, cluster.Namespace, cluster.Spec.Storage, ss.Labels)
Expand Down

0 comments on commit b28b6d6

Please sign in to comment.