change getsecrets selector to exclude pgo-backrest-repo secrets
@@ -33,7 +33,7 @@ var backrestStorageTypes = []string{"local", "s3"}
func GetSecrets(cluster *crv1.Pgcluster, ns string) ([]msgs.ShowUserSecret, error) {
output := make([]msgs.ShowUserSecret, 0)
- selector := config.LABEL_PGBOUNCER + "!=true," + config.LABEL_PGPOOL + "!=true," + config.LABEL_PG_CLUSTER + "=" + cluster.Spec.Name
+ selector := "!" + config.LABEL_PGO_BACKREST_REPO + "," + config.LABEL_PGBOUNCER + "!=true," + config.LABEL_PGPOOL + "!=true," + config.LABEL_PG_CLUSTER + "=" + cluster.Spec.Name
secrets, err := kubeapi.GetSecrets(Clientset, selector, ns)
if err != nil {
