@@ -2430,29 +2430,29 @@ Forbidden: updates to statefulset spec for fields other than 'replicas', 'ordina
24302430 {
24312431 name : "multiple volumeClaimTemplate change" ,
24322432 currentSpec : map [string ]interface {}{
2433- "serviceName" : "postgresql-svc" ,
2433+ "serviceName" : postgresqlSvc ,
24342434 "selector" : map [string ]interface {}{
24352435 "matchLabels" : map [string ]interface {}{
24362436 "app" : "postgresql" ,
24372437 },
24382438 },
24392439 "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" ),
24432443 },
24442444 },
24452445 desiredSpec : map [string ]interface {}{
2446- "serviceName" : "postgresql-svc" ,
2446+ "serviceName" : postgresqlSvc ,
24472447 "selector" : map [string ]interface {}{
24482448 "matchLabels" : map [string ]interface {}{
24492449 "app" : "postgresql" ,
24502450 },
24512451 },
24522452 "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" ),
24562456 },
24572457 },
24582458 expectedMessage : `attempting to change immutable fields:
@@ -2471,16 +2471,16 @@ Forbidden: updates to statefulset spec for fields other than 'replicas', 'ordina
24712471 {
24722472 name : "multiple field changes" ,
24732473 currentSpec : map [string ]interface {}{
2474- "serviceName" : "postgresql-svc" ,
2474+ "serviceName" : postgresqlSvc ,
24752475 "selector" : map [string ]interface {}{
24762476 "matchLabels" : map [string ]interface {}{
24772477 "app" : "postgresql" ,
24782478 },
24792479 },
24802480 "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" ),
24842484 },
24852485 },
24862486 desiredSpec : map [string ]interface {}{
@@ -2491,9 +2491,9 @@ Forbidden: updates to statefulset spec for fields other than 'replicas', 'ordina
24912491 },
24922492 },
24932493 "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" ),
24972497 },
24982498 },
24992499 expectedMessage : `attempting to change immutable fields:
0 commit comments