Skip to content

Commit

Permalink
fix: label selector mapping on redisreplication pdb (#1191)
Browse files Browse the repository at this point in the history
Signed-off-by: Husni Alhamdani <dhanielluis@gmail.com>
  • Loading branch information
husnialhamdani authored Dec 27, 2024
1 parent bf1c79f commit 5ccd226
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/k8sutils/poddisruption.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func generatePodDisruptionBudgetDef(ctx context.Context, cr *redisv1beta2.RedisC
// generatePodDisruptionBudgetDef will create a PodDisruptionBudget definition
func generateReplicationPodDisruptionBudgetDef(ctx context.Context, cr *redisv1beta2.RedisReplication, role string, pdbMeta metav1.ObjectMeta, pdbParams *commonapi.RedisPodDisruptionBudget) *policyv1.PodDisruptionBudget {
lblSelector := LabelSelectors(map[string]string{
"app": fmt.Sprintf("%s-%s", cr.ObjectMeta.Name, role),
"app": cr.ObjectMeta.Name,
"role": role,
})
pdbTemplate := &policyv1.PodDisruptionBudget{
Expand Down

0 comments on commit 5ccd226

Please sign in to comment.