Skip to content
This repository was archived by the owner on Oct 6, 2025. It is now read-only.

Commit 9ed0ce7

Browse files
committed
reduce sonarcloud issues
Signed-off-by: Atif Ali <[email protected]>
1 parent 317527d commit 9ed0ce7

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

pkg/sync/sync_context_test.go

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2617,29 +2617,29 @@ Forbidden: updates to statefulset spec for fields other than 'replicas', 'ordina
26172617
{
26182618
name: "multiple volumeClaimTemplate change",
26192619
currentSpec: map[string]interface{}{
2620-
"serviceName": "postgresql-svc",
2620+
"serviceName": postgresqlSvc,
26212621
"selector": map[string]interface{}{
26222622
"matchLabels": map[string]interface{}{
26232623
"app": "postgresql",
26242624
},
26252625
},
26262626
"volumeClaimTemplates": []interface{}{
2627-
templateWithStorage("static-files", "1Gi"),
2628-
templateWithStorage("dexconfig", "1Gi"),
2629-
templateWithStorage("argocd-dex-server-tls", "1Gi"),
2627+
templateWithStorage(staticFiles, "1Gi"),
2628+
templateWithStorage(dexconfig, "1Gi"),
2629+
templateWithStorage(argocdDexServerTLS, "1Gi"),
26302630
},
26312631
},
26322632
desiredSpec: map[string]interface{}{
2633-
"serviceName": "postgresql-svc",
2633+
"serviceName": postgresqlSvc,
26342634
"selector": map[string]interface{}{
26352635
"matchLabels": map[string]interface{}{
26362636
"app": "postgresql",
26372637
},
26382638
},
26392639
"volumeClaimTemplates": []interface{}{
2640-
templateWithStorage("static-files", "2Gi"),
2641-
templateWithStorage("dexconfig", "3Gi"),
2642-
templateWithStorage("argocd-dex-server-tls", "4Gi"),
2640+
templateWithStorage(staticFiles, "2Gi"),
2641+
templateWithStorage(dexconfig, "3Gi"),
2642+
templateWithStorage(argocdDexServerTLS, "4Gi"),
26432643
},
26442644
},
26452645
expectedMessage: `attempting to change immutable fields:
@@ -2658,16 +2658,16 @@ Forbidden: updates to statefulset spec for fields other than 'replicas', 'ordina
26582658
{
26592659
name: "multiple field changes",
26602660
currentSpec: map[string]interface{}{
2661-
"serviceName": "postgresql-svc",
2661+
"serviceName": postgresqlSvc,
26622662
"selector": map[string]interface{}{
26632663
"matchLabels": map[string]interface{}{
26642664
"app": "postgresql",
26652665
},
26662666
},
26672667
"volumeClaimTemplates": []interface{}{
2668-
templateWithStorage("static-files", "1Gi"),
2669-
templateWithStorage("dexconfig", "1Gi"),
2670-
templateWithStorage("argocd-dex-server-tls", "1Gi"),
2668+
templateWithStorage(staticFiles, "1Gi"),
2669+
templateWithStorage(dexconfig, "1Gi"),
2670+
templateWithStorage(argocdDexServerTLS, "1Gi"),
26712671
},
26722672
},
26732673
desiredSpec: map[string]interface{}{
@@ -2678,9 +2678,9 @@ Forbidden: updates to statefulset spec for fields other than 'replicas', 'ordina
26782678
},
26792679
},
26802680
"volumeClaimTemplates": []interface{}{
2681-
templateWithStorage("static-files", "2Gi"),
2682-
templateWithStorage("dexconfig", "1Gi"),
2683-
templateWithStorage("argocd-dex-server-tls", "1Gi"),
2681+
templateWithStorage(staticFiles, "2Gi"),
2682+
templateWithStorage(dexconfig, "1Gi"),
2683+
templateWithStorage(argocdDexServerTLS, "1Gi"),
26842684
},
26852685
},
26862686
expectedMessage: `attempting to change immutable fields:

0 commit comments

Comments
 (0)