@@ -2230,29 +2230,29 @@ Forbidden: updates to statefulset spec for fields other than 'replicas', 'ordina
2230
2230
{
2231
2231
name : "multiple volumeClaimTemplate change" ,
2232
2232
currentSpec : map [string ]interface {}{
2233
- "serviceName" : "postgresql-svc" ,
2233
+ "serviceName" : postgresqlSvc ,
2234
2234
"selector" : map [string ]interface {}{
2235
2235
"matchLabels" : map [string ]interface {}{
2236
2236
"app" : "postgresql" ,
2237
2237
},
2238
2238
},
2239
2239
"volumeClaimTemplates" : []interface {}{
2240
- templateWithStorage ("static-files" , "1Gi" ),
2241
- templateWithStorage (" dexconfig" , "1Gi" ),
2242
- templateWithStorage ("argocd-dex-server-tls" , "1Gi" ),
2240
+ templateWithStorage (staticFiles , "1Gi" ),
2241
+ templateWithStorage (dexconfig , "1Gi" ),
2242
+ templateWithStorage (argocdDexServerTLS , "1Gi" ),
2243
2243
},
2244
2244
},
2245
2245
desiredSpec : map [string ]interface {}{
2246
- "serviceName" : "postgresql-svc" ,
2246
+ "serviceName" : postgresqlSvc ,
2247
2247
"selector" : map [string ]interface {}{
2248
2248
"matchLabels" : map [string ]interface {}{
2249
2249
"app" : "postgresql" ,
2250
2250
},
2251
2251
},
2252
2252
"volumeClaimTemplates" : []interface {}{
2253
- templateWithStorage ("static-files" , "2Gi" ),
2254
- templateWithStorage (" dexconfig" , "3Gi" ),
2255
- templateWithStorage ("argocd-dex-server-tls" , "4Gi" ),
2253
+ templateWithStorage (staticFiles , "2Gi" ),
2254
+ templateWithStorage (dexconfig , "3Gi" ),
2255
+ templateWithStorage (argocdDexServerTLS , "4Gi" ),
2256
2256
},
2257
2257
},
2258
2258
expectedMessage : `attempting to change immutable fields:
@@ -2271,16 +2271,16 @@ Forbidden: updates to statefulset spec for fields other than 'replicas', 'ordina
2271
2271
{
2272
2272
name : "multiple field changes" ,
2273
2273
currentSpec : map [string ]interface {}{
2274
- "serviceName" : "postgresql-svc" ,
2274
+ "serviceName" : postgresqlSvc ,
2275
2275
"selector" : map [string ]interface {}{
2276
2276
"matchLabels" : map [string ]interface {}{
2277
2277
"app" : "postgresql" ,
2278
2278
},
2279
2279
},
2280
2280
"volumeClaimTemplates" : []interface {}{
2281
- templateWithStorage ("static-files" , "1Gi" ),
2282
- templateWithStorage (" dexconfig" , "1Gi" ),
2283
- templateWithStorage ("argocd-dex-server-tls" , "1Gi" ),
2281
+ templateWithStorage (staticFiles , "1Gi" ),
2282
+ templateWithStorage (dexconfig , "1Gi" ),
2283
+ templateWithStorage (argocdDexServerTLS , "1Gi" ),
2284
2284
},
2285
2285
},
2286
2286
desiredSpec : map [string ]interface {}{
@@ -2291,9 +2291,9 @@ Forbidden: updates to statefulset spec for fields other than 'replicas', 'ordina
2291
2291
},
2292
2292
},
2293
2293
"volumeClaimTemplates" : []interface {}{
2294
- templateWithStorage ("static-files" , "2Gi" ),
2295
- templateWithStorage (" dexconfig" , "1Gi" ),
2296
- templateWithStorage ("argocd-dex-server-tls" , "1Gi" ),
2294
+ templateWithStorage (staticFiles , "2Gi" ),
2295
+ templateWithStorage (dexconfig , "1Gi" ),
2296
+ templateWithStorage (argocdDexServerTLS , "1Gi" ),
2297
2297
},
2298
2298
},
2299
2299
expectedMessage : `attempting to change immutable fields:
0 commit comments