@@ -351,9 +351,9 @@ Collecting PGO CLI logs...
351
351
return err
352
352
}
353
353
354
- get , err := postgresClient .Namespace (namespace ).Get (ctx ,
354
+ getCluster , err := postgresClient .Namespace (namespace ).Get (ctx ,
355
355
clusterName , metav1.GetOptions {})
356
- if err != nil || get == nil {
356
+ if err != nil || getCluster == nil {
357
357
if apierrors .IsForbidden (err ) || apierrors .IsNotFound (err ) {
358
358
return err
359
359
}
@@ -425,7 +425,7 @@ Collecting PGO CLI logs...
425
425
}
426
426
427
427
// Gather PostgresCluster manifest
428
- err = gatherClusterSpec (get , clusterName , tw , cmd )
428
+ err = gatherClusterSpec (getCluster , clusterName , tw , cmd )
429
429
if err != nil {
430
430
writeInfo (cmd , fmt .Sprintf ("Error gathering PostgresCluster manifest: %s" , err ))
431
431
}
@@ -462,7 +462,7 @@ Collecting PGO CLI logs...
462
462
// All Postgres Logs on the Postgres Instances (primary and replicas)
463
463
if numLogs > 0 {
464
464
err = gatherPostgresLogsAndConfigs (ctx , clientset , restConfig ,
465
- namespace , clusterName , outputDir , outputFile , numLogs , tw , cmd , get )
465
+ namespace , clusterName , outputDir , outputFile , numLogs , tw , cmd , getCluster )
466
466
if err != nil {
467
467
writeInfo (cmd , fmt .Sprintf ("Error gathering Postgres Logs and Config: %s" , err ))
468
468
}
@@ -565,7 +565,7 @@ Collecting PGO CLI logs...
565
565
writeInfo (cmd , "Collecting PGUpgrade spec (if available)..." )
566
566
567
567
key := util .AllowUpgradeAnnotation ()
568
- value , exists := get .GetAnnotations ()[key ]
568
+ value , exists := getCluster .GetAnnotations ()[key ]
569
569
570
570
if exists {
571
571
writeInfo (cmd , fmt .Sprintf ("The PGUpgrade object is: %s" , value ))
0 commit comments