Skip to content

Commit 1d279bf

Browse files
committed
Add Data Label to Instance StatefulSet
This commit adds the appropriate 'data' Label to the PostgresCluster Instance's StatefulSet, in keeping with the labeling pattern used for the pgBackRest Repo StatefulSet and the pgAdmin Deployment.
1 parent b5fcafc commit 1d279bf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/controller/postgrescluster/instance.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1115,6 +1115,7 @@ func generateInstanceStatefulSetIntent(_ context.Context,
11151115
naming.LabelCluster: cluster.Name,
11161116
naming.LabelInstanceSet: spec.Name,
11171117
naming.LabelInstance: sts.Name,
1118+
naming.LabelData: naming.DataPostgres,
11181119
})
11191120
sts.Spec.Selector = &metav1.LabelSelector{
11201121
MatchLabels: map[string]string{

0 commit comments

Comments
 (0)