Skip to content

Commit

Permalink
K8SPG-692: proper fix for patroni v4
Browse files Browse the repository at this point in the history
  • Loading branch information
pooknull committed Dec 16, 2024
1 parent 83fd40e commit 5a8b225
Show file tree
Hide file tree
Showing 20 changed files with 249 additions and 177 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17384,6 +17384,8 @@ spec:
properties:
host:
type: string
patroniVersion:
type: string
pgbouncer:
properties:
ready:
Expand Down Expand Up @@ -17421,17 +17423,11 @@ spec:
size:
format: int32
type: integer
required:
- instances
- ready
- size
version:
type: integer
type: object
state:
type: string
required:
- pgbouncer
- postgres
- state
type: object
required:
- metadata
Expand Down
2 changes: 0 additions & 2 deletions cmd/postgres-operator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ import (
"sigs.k8s.io/controller-runtime/pkg/log/zap"
"sigs.k8s.io/controller-runtime/pkg/manager"

//"github.com/percona/percona-postgresql-operator/internal/controller/pgupgrade"

"github.com/percona/percona-postgresql-operator/internal/controller/pgupgrade"
"github.com/percona/percona-postgresql-operator/internal/controller/postgrescluster"
"github.com/percona/percona-postgresql-operator/internal/controller/runtime"
Expand Down
12 changes: 4 additions & 8 deletions config/crd/bases/pgv2.percona.com_perconapgclusters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17790,6 +17790,8 @@ spec:
properties:
host:
type: string
patroniVersion:
type: string
pgbouncer:
properties:
ready:
Expand Down Expand Up @@ -17827,17 +17829,11 @@ spec:
size:
format: int32
type: integer
required:
- instances
- ready
- size
version:
type: integer
type: object
state:
type: string
required:
- pgbouncer
- postgres
- state
type: object
required:
- metadata
Expand Down
18 changes: 8 additions & 10 deletions config/rbac/cluster/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ rules:
resources:
- configmaps
- persistentvolumeclaims
- pods
- secrets
- serviceaccounts
- services
Expand Down Expand Up @@ -46,16 +47,6 @@ rules:
verbs:
- create
- patch
- apiGroups:
- ''
resources:
- pods
verbs:
- delete
- get
- list
- patch
- watch
- apiGroups:
- apps
resources:
Expand Down Expand Up @@ -158,6 +149,13 @@ rules:
- get
- list
- watch
- apiGroups:
- pgv2.percona.com
resources:
- pods
verbs:
- create
- delete
- apiGroups:
- policy
resources:
Expand Down
18 changes: 8 additions & 10 deletions config/rbac/namespace/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ rules:
resources:
- configmaps
- persistentvolumeclaims
- pods
- secrets
- serviceaccounts
- services
Expand Down Expand Up @@ -46,16 +47,6 @@ rules:
verbs:
- create
- patch
- apiGroups:
- ''
resources:
- pods
verbs:
- delete
- get
- list
- patch
- watch
- apiGroups:
- apps
resources:
Expand Down Expand Up @@ -158,6 +149,13 @@ rules:
- get
- list
- watch
- apiGroups:
- pgv2.percona.com
resources:
- pods
verbs:
- create
- delete
- apiGroups:
- policy
resources:
Expand Down
30 changes: 12 additions & 18 deletions deploy/bundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18083,6 +18083,8 @@ spec:
properties:
host:
type: string
patroniVersion:
type: string
pgbouncer:
properties:
ready:
Expand Down Expand Up @@ -18120,17 +18122,11 @@ spec:
size:
format: int32
type: integer
required:
- instances
- ready
- size
version:
type: integer
type: object
state:
type: string
required:
- pgbouncer
- postgres
- state
type: object
required:
- metadata
Expand Down Expand Up @@ -45447,6 +45443,7 @@ rules:
resources:
- configmaps
- persistentvolumeclaims
- pods
- secrets
- serviceaccounts
- services
Expand Down Expand Up @@ -45484,16 +45481,6 @@ rules:
verbs:
- create
- patch
- apiGroups:
- ""
resources:
- pods
verbs:
- delete
- get
- list
- patch
- watch
- apiGroups:
- apps
resources:
Expand Down Expand Up @@ -45596,6 +45583,13 @@ rules:
- get
- list
- watch
- apiGroups:
- pgv2.percona.com
resources:
- pods
verbs:
- create
- delete
- apiGroups:
- policy
resources:
Expand Down
12 changes: 4 additions & 8 deletions deploy/crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18083,6 +18083,8 @@ spec:
properties:
host:
type: string
patroniVersion:
type: string
pgbouncer:
properties:
ready:
Expand Down Expand Up @@ -18120,17 +18122,11 @@ spec:
size:
format: int32
type: integer
required:
- instances
- ready
- size
version:
type: integer
type: object
state:
type: string
required:
- pgbouncer
- postgres
- state
type: object
required:
- metadata
Expand Down
30 changes: 12 additions & 18 deletions deploy/cw-bundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18083,6 +18083,8 @@ spec:
properties:
host:
type: string
patroniVersion:
type: string
pgbouncer:
properties:
ready:
Expand Down Expand Up @@ -18120,17 +18122,11 @@ spec:
size:
format: int32
type: integer
required:
- instances
- ready
- size
version:
type: integer
type: object
state:
type: string
required:
- pgbouncer
- postgres
- state
type: object
required:
- metadata
Expand Down Expand Up @@ -45447,6 +45443,7 @@ rules:
resources:
- configmaps
- persistentvolumeclaims
- pods
- secrets
- serviceaccounts
- services
Expand Down Expand Up @@ -45484,16 +45481,6 @@ rules:
verbs:
- create
- patch
- apiGroups:
- ""
resources:
- pods
verbs:
- delete
- get
- list
- patch
- watch
- apiGroups:
- apps
resources:
Expand Down Expand Up @@ -45596,6 +45583,13 @@ rules:
- get
- list
- watch
- apiGroups:
- pgv2.percona.com
resources:
- pods
verbs:
- create
- delete
- apiGroups:
- policy
resources:
Expand Down
18 changes: 8 additions & 10 deletions deploy/cw-rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ rules:
resources:
- configmaps
- persistentvolumeclaims
- pods
- secrets
- serviceaccounts
- services
Expand Down Expand Up @@ -50,16 +51,6 @@ rules:
verbs:
- create
- patch
- apiGroups:
- ""
resources:
- pods
verbs:
- delete
- get
- list
- patch
- watch
- apiGroups:
- apps
resources:
Expand Down Expand Up @@ -162,6 +153,13 @@ rules:
- get
- list
- watch
- apiGroups:
- pgv2.percona.com
resources:
- pods
verbs:
- create
- delete
- apiGroups:
- policy
resources:
Expand Down
18 changes: 8 additions & 10 deletions deploy/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ rules:
resources:
- configmaps
- persistentvolumeclaims
- pods
- secrets
- serviceaccounts
- services
Expand Down Expand Up @@ -50,16 +51,6 @@ rules:
verbs:
- create
- patch
- apiGroups:
- ""
resources:
- pods
verbs:
- delete
- get
- list
- patch
- watch
- apiGroups:
- apps
resources:
Expand Down Expand Up @@ -162,6 +153,13 @@ rules:
- get
- list
- watch
- apiGroups:
- pgv2.percona.com
resources:
- pods
verbs:
- create
- delete
- apiGroups:
- policy
resources:
Expand Down
Loading

0 comments on commit 5a8b225

Please sign in to comment.