Skip to content

Commit

Permalink
Remove pgAdmin feature gate
Browse files Browse the repository at this point in the history
PGO-558
  • Loading branch information
tjmoore4 committed Oct 13, 2023
1 parent c9e3267 commit e59caac
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 16 deletions.
20 changes: 9 additions & 11 deletions cmd/postgres-operator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,18 +152,16 @@ func addControllersToManager(mgr manager.Manager, openshift bool, log logr.Logge
os.Exit(1)
}

if util.DefaultMutableFeatureGate.Enabled(util.StandalonePGAdmin) {
pgAdminReconciler := &standalone_pgadmin.PGAdminReconciler{
Client: mgr.GetClient(),
Owner: "pgadmin-controller",
Recorder: mgr.GetEventRecorderFor(naming.ControllerPGAdmin),
Scheme: mgr.GetScheme(),
}
pgAdminReconciler := &standalone_pgadmin.PGAdminReconciler{
Client: mgr.GetClient(),
Owner: "pgadmin-controller",
Recorder: mgr.GetEventRecorderFor(naming.ControllerPGAdmin),
Scheme: mgr.GetScheme(),
}

if err := pgAdminReconciler.SetupWithManager(mgr); err != nil {
log.Error(err, "unable to create PGAdmin controller")
os.Exit(1)
}
if err := pgAdminReconciler.SetupWithManager(mgr); err != nil {
log.Error(err, "unable to create PGAdmin controller")
os.Exit(1)
}
}

Expand Down
4 changes: 0 additions & 4 deletions internal/util/features.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,6 @@ const (
// Enables support of custom sidecars for pgBouncer Pods
PGBouncerSidecars featuregate.Feature = "PGBouncerSidecars"
//
// Enables support of standalone pgAdmin instances
StandalonePGAdmin featuregate.Feature = "StandalonePGAdmin"
//
// Enables support of tablespace volumes
TablespaceVolumes featuregate.Feature = "TablespaceVolumes"
)
Expand All @@ -61,7 +58,6 @@ var pgoFeatures = map[featuregate.Feature]featuregate.FeatureSpec{
AppendCustomQueries: {Default: false, PreRelease: featuregate.Alpha},
BridgeIdentifiers: {Default: false, PreRelease: featuregate.Alpha},
InstanceSidecars: {Default: false, PreRelease: featuregate.Alpha},
StandalonePGAdmin: {Default: false, PreRelease: featuregate.Alpha},
PGBouncerSidecars: {Default: false, PreRelease: featuregate.Alpha},
TablespaceVolumes: {Default: false, PreRelease: featuregate.Alpha},
}
Expand Down
1 change: 0 additions & 1 deletion testing/kuttl/e2e-other/standalone-pgadmin/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
** pgAdmin **

Note: requires the StandalonePGAdmin FeatureGate enabled.
Note: due to the (random) namespace being part of the host, we cannot check the configmap using the usual assert/file pattern.

*Phase one*
Expand Down

0 comments on commit e59caac

Please sign in to comment.