Skip to content

Commit

Permalink
fix: label selector mapping on redisreplication pdb
Browse files Browse the repository at this point in the history
Signed-off-by: Husni Alhamdani <[email protected]>
  • Loading branch information
husnialhamdani committed Dec 26, 2024
1 parent c02c7c9 commit 5062bbb
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,

Check warning on line 115 in pkg/k8sutils/poddisruption.go

View check run for this annotation

Codecov / codecov/patch

pkg/k8sutils/poddisruption.go#L115

Added line #L115 was not covered by tests
"role": role,
})
pdbTemplate := &policyv1.PodDisruptionBudget{
Expand Down

0 comments on commit 5062bbb

Please sign in to comment.