@@ -351,9 +351,9 @@ Collecting PGO CLI logs...
351351 return err
352352 }
353353
354- get , err := postgresClient .Namespace (namespace ).Get (ctx ,
354+ getCluster , err := postgresClient .Namespace (namespace ).Get (ctx ,
355355 clusterName , metav1.GetOptions {})
356- if err != nil || get == nil {
356+ if err != nil || getCluster == nil {
357357 if apierrors .IsForbidden (err ) || apierrors .IsNotFound (err ) {
358358 return err
359359 }
@@ -425,7 +425,7 @@ Collecting PGO CLI logs...
425425 }
426426
427427 // Gather PostgresCluster manifest
428- err = gatherClusterSpec (get , clusterName , tw , cmd )
428+ err = gatherClusterSpec (getCluster , clusterName , tw , cmd )
429429 if err != nil {
430430 writeInfo (cmd , fmt .Sprintf ("Error gathering PostgresCluster manifest: %s" , err ))
431431 }
@@ -462,7 +462,7 @@ Collecting PGO CLI logs...
462462 // All Postgres Logs on the Postgres Instances (primary and replicas)
463463 if numLogs > 0 {
464464 err = gatherPostgresLogsAndConfigs (ctx , clientset , restConfig ,
465- namespace , clusterName , outputDir , outputFile , numLogs , tw , cmd , get )
465+ namespace , clusterName , outputDir , outputFile , numLogs , tw , cmd , getCluster )
466466 if err != nil {
467467 writeInfo (cmd , fmt .Sprintf ("Error gathering Postgres Logs and Config: %s" , err ))
468468 }
@@ -565,7 +565,7 @@ Collecting PGO CLI logs...
565565 writeInfo (cmd , "Collecting PGUpgrade spec (if available)..." )
566566
567567 key := util .AllowUpgradeAnnotation ()
568- value , exists := get .GetAnnotations ()[key ]
568+ value , exists := getCluster .GetAnnotations ()[key ]
569569
570570 if exists {
571571 writeInfo (cmd , fmt .Sprintf ("The PGUpgrade object is: %s" , value ))
0 commit comments