Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Shubham Gupta <[email protected]>
  • Loading branch information
shubham-cmyk committed Nov 10, 2023
1 parent 874c76c commit 8df718c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions k8sutils/finalizers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -287,13 +287,13 @@ func helperToRuntimeObjects(pvcs []*corev1.PersistentVolumeClaim) []runtime.Obje
return objs
}

func helperRedisClusterPVCs(clusterName string, namespace string) []*v1.PersistentVolumeClaim {
var pvcs []*v1.PersistentVolumeClaim
func helperRedisClusterPVCs(clusterName string, namespace string) []*corev1.PersistentVolumeClaim {
var pvcs []*corev1.PersistentVolumeClaim
roles := []string{"leader", "follower"}
for _, role := range roles {
for i := 0; i < 3; i++ {
clusterPVCName := fmt.Sprintf("%s-%s-%s-%d", clusterName, clusterName, role, i)
clusterPVC := &v1.PersistentVolumeClaim{
clusterPVC := &corev1.PersistentVolumeClaim{
ObjectMeta: metav1.ObjectMeta{
Name: clusterPVCName,
Namespace: namespace,
Expand Down

0 comments on commit 8df718c

Please sign in to comment.