@@ -2617,29 +2617,29 @@ Forbidden: updates to statefulset spec for fields other than 'replicas', 'ordina
2617
2617
{
2618
2618
name : "multiple volumeClaimTemplate change" ,
2619
2619
currentSpec : map [string ]interface {}{
2620
- "serviceName" : "postgresql-svc" ,
2620
+ "serviceName" : postgresqlSvc ,
2621
2621
"selector" : map [string ]interface {}{
2622
2622
"matchLabels" : map [string ]interface {}{
2623
2623
"app" : "postgresql" ,
2624
2624
},
2625
2625
},
2626
2626
"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" ),
2630
2630
},
2631
2631
},
2632
2632
desiredSpec : map [string ]interface {}{
2633
- "serviceName" : "postgresql-svc" ,
2633
+ "serviceName" : postgresqlSvc ,
2634
2634
"selector" : map [string ]interface {}{
2635
2635
"matchLabels" : map [string ]interface {}{
2636
2636
"app" : "postgresql" ,
2637
2637
},
2638
2638
},
2639
2639
"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" ),
2643
2643
},
2644
2644
},
2645
2645
expectedMessage : `attempting to change immutable fields:
@@ -2658,16 +2658,16 @@ Forbidden: updates to statefulset spec for fields other than 'replicas', 'ordina
2658
2658
{
2659
2659
name : "multiple field changes" ,
2660
2660
currentSpec : map [string ]interface {}{
2661
- "serviceName" : "postgresql-svc" ,
2661
+ "serviceName" : postgresqlSvc ,
2662
2662
"selector" : map [string ]interface {}{
2663
2663
"matchLabels" : map [string ]interface {}{
2664
2664
"app" : "postgresql" ,
2665
2665
},
2666
2666
},
2667
2667
"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" ),
2671
2671
},
2672
2672
},
2673
2673
desiredSpec : map [string ]interface {}{
@@ -2678,9 +2678,9 @@ Forbidden: updates to statefulset spec for fields other than 'replicas', 'ordina
2678
2678
},
2679
2679
},
2680
2680
"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" ),
2684
2684
},
2685
2685
},
2686
2686
expectedMessage : `attempting to change immutable fields:
0 commit comments