Skip to content

Commit 3fab022

Browse files
sfc-gh-jmckulkajmckulk
authored andcommitted
Remove Bridge API
1 parent fbe21ea commit 3fab022

32 files changed

+57
-6553
lines changed

cmd/postgres-operator/main.go

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import (
99
"crypto/tls"
1010
"errors"
1111
"fmt"
12-
"net/http"
1312
"os"
1413
"os/signal"
1514
"strconv"
@@ -24,8 +23,6 @@ import (
2423
"sigs.k8s.io/controller-runtime/pkg/healthz"
2524
"sigs.k8s.io/controller-runtime/pkg/metrics/filters"
2625

27-
"github.com/crunchydata/postgres-operator/internal/bridge"
28-
"github.com/crunchydata/postgres-operator/internal/bridge/crunchybridgecluster"
2926
"github.com/crunchydata/postgres-operator/internal/controller/pgupgrade"
3027
"github.com/crunchydata/postgres-operator/internal/controller/postgrescluster"
3128
"github.com/crunchydata/postgres-operator/internal/controller/runtime"
@@ -241,24 +238,10 @@ func main() {
241238
manager := need(runtime.NewManager(config, options))
242239
must(manager.Add(k8s))
243240

244-
bridgeURL := os.Getenv("PGO_BRIDGE_URL")
245-
bridgeClient := func() *bridge.Client {
246-
client := bridge.NewClient(bridgeURL, versionString)
247-
client.Transport = otelTransportWrapper()(http.DefaultTransport)
248-
return client
249-
}
250-
251241
// add all PostgreSQL Operator controllers to the runtime manager
252242
must(pgupgrade.ManagedReconciler(manager))
253243
must(postgrescluster.ManagedReconciler(manager))
254244
must(standalone_pgadmin.ManagedReconciler(manager))
255-
must(crunchybridgecluster.ManagedReconciler(manager, func() bridge.ClientInterface {
256-
return bridgeClient()
257-
}))
258-
259-
if features.Enabled(feature.BridgeIdentifiers) {
260-
must(bridge.ManagedInstallationReconciler(manager, bridgeClient))
261-
}
262245

263246
// Enable health probes
264247
must(manager.AddHealthzCheck("health", healthz.Ping))

config/crd/bases/postgres-operator.crunchydata.com_crunchybridgeclusters.yaml

Lines changed: 0 additions & 285 deletions
This file was deleted.

config/crd/kustomization.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
kind: Kustomization
22

33
resources:
4-
- bases/postgres-operator.crunchydata.com_crunchybridgeclusters.yaml
54
- bases/postgres-operator.crunchydata.com_postgresclusters.yaml
65
- bases/postgres-operator.crunchydata.com_pgupgrades.yaml
76
- bases/postgres-operator.crunchydata.com_pgadmins.yaml

config/rbac/role.yaml

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -111,24 +111,6 @@ rules:
111111
- list
112112
- patch
113113
- watch
114-
- apiGroups:
115-
- postgres-operator.crunchydata.com
116-
resources:
117-
- crunchybridgeclusters
118-
verbs:
119-
- get
120-
- list
121-
- patch
122-
- update
123-
- watch
124-
- apiGroups:
125-
- postgres-operator.crunchydata.com
126-
resources:
127-
- crunchybridgeclusters/finalizers
128-
- crunchybridgeclusters/status
129-
verbs:
130-
- patch
131-
- update
132114
- apiGroups:
133115
- postgres-operator.crunchydata.com
134116
resources:

0 commit comments

Comments
 (0)