@@ -2430,29 +2430,29 @@ Forbidden: updates to statefulset spec for fields other than 'replicas', 'ordina
2430
2430
{
2431
2431
name : "multiple volumeClaimTemplate change" ,
2432
2432
currentSpec : map [string ]interface {}{
2433
- "serviceName" : "postgresql-svc" ,
2433
+ "serviceName" : postgresqlSvc ,
2434
2434
"selector" : map [string ]interface {}{
2435
2435
"matchLabels" : map [string ]interface {}{
2436
2436
"app" : "postgresql" ,
2437
2437
},
2438
2438
},
2439
2439
"volumeClaimTemplates" : []interface {}{
2440
- templateWithStorage ("static-files" , "1Gi" ),
2441
- templateWithStorage (" dexconfig" , "1Gi" ),
2442
- templateWithStorage ("argocd-dex-server-tls" , "1Gi" ),
2440
+ templateWithStorage (staticFiles , "1Gi" ),
2441
+ templateWithStorage (dexconfig , "1Gi" ),
2442
+ templateWithStorage (argocdDexServerTLS , "1Gi" ),
2443
2443
},
2444
2444
},
2445
2445
desiredSpec : map [string ]interface {}{
2446
- "serviceName" : "postgresql-svc" ,
2446
+ "serviceName" : postgresqlSvc ,
2447
2447
"selector" : map [string ]interface {}{
2448
2448
"matchLabels" : map [string ]interface {}{
2449
2449
"app" : "postgresql" ,
2450
2450
},
2451
2451
},
2452
2452
"volumeClaimTemplates" : []interface {}{
2453
- templateWithStorage ("static-files" , "2Gi" ),
2454
- templateWithStorage (" dexconfig" , "3Gi" ),
2455
- templateWithStorage ("argocd-dex-server-tls" , "4Gi" ),
2453
+ templateWithStorage (staticFiles , "2Gi" ),
2454
+ templateWithStorage (dexconfig , "3Gi" ),
2455
+ templateWithStorage (argocdDexServerTLS , "4Gi" ),
2456
2456
},
2457
2457
},
2458
2458
expectedMessage : `attempting to change immutable fields:
@@ -2471,16 +2471,16 @@ Forbidden: updates to statefulset spec for fields other than 'replicas', 'ordina
2471
2471
{
2472
2472
name : "multiple field changes" ,
2473
2473
currentSpec : map [string ]interface {}{
2474
- "serviceName" : "postgresql-svc" ,
2474
+ "serviceName" : postgresqlSvc ,
2475
2475
"selector" : map [string ]interface {}{
2476
2476
"matchLabels" : map [string ]interface {}{
2477
2477
"app" : "postgresql" ,
2478
2478
},
2479
2479
},
2480
2480
"volumeClaimTemplates" : []interface {}{
2481
- templateWithStorage ("static-files" , "1Gi" ),
2482
- templateWithStorage (" dexconfig" , "1Gi" ),
2483
- templateWithStorage ("argocd-dex-server-tls" , "1Gi" ),
2481
+ templateWithStorage (staticFiles , "1Gi" ),
2482
+ templateWithStorage (dexconfig , "1Gi" ),
2483
+ templateWithStorage (argocdDexServerTLS , "1Gi" ),
2484
2484
},
2485
2485
},
2486
2486
desiredSpec : map [string ]interface {}{
@@ -2491,9 +2491,9 @@ Forbidden: updates to statefulset spec for fields other than 'replicas', 'ordina
2491
2491
},
2492
2492
},
2493
2493
"volumeClaimTemplates" : []interface {}{
2494
- templateWithStorage ("static-files" , "2Gi" ),
2495
- templateWithStorage (" dexconfig" , "1Gi" ),
2496
- templateWithStorage ("argocd-dex-server-tls" , "1Gi" ),
2494
+ templateWithStorage (staticFiles , "2Gi" ),
2495
+ templateWithStorage (dexconfig , "1Gi" ),
2496
+ templateWithStorage (argocdDexServerTLS , "1Gi" ),
2497
2497
},
2498
2498
},
2499
2499
expectedMessage : `attempting to change immutable fields:
0 commit comments