Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add syncUsers field to pgbouncer api #1206

Merged
merged 5 commits into from
May 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions apis/kubedb/v1alpha2/openapi_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions apis/kubedb/v1alpha2/pgbouncer_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,17 @@ const (
)

type Databases struct {
// SyncUsers is a boolean type and when enabled, operator fetches users of backend server from externally managed
// secrets to the PgBouncer server. Secrets updation or deletion are also synced in pgBouncer when it is enabled.
// +optional
SyncUsers bool `json:"syncUsers,omitempty"`

// Alias to uniquely identify a target database running inside a specific Postgres instance.
Alias string `json:"alias"`

// DatabaseRef specifies the database appbinding reference in any namespace.
DatabaseRef appcat.AppReference `json:"databaseRef"`

// DatabaseName is the name of the target database inside a Postgres instance.
DatabaseName string `json:"databaseName"`
}
Expand Down
2 changes: 2 additions & 0 deletions crds/kubedb.com_pgbouncers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ spec:
- name
- namespace
type: object
syncUsers:
type: boolean
required:
- alias
- databaseName
Expand Down
4 changes: 4 additions & 0 deletions openapi/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -23057,6 +23057,10 @@
"description": "DatabaseRef specifies the database appbinding reference in any namespace.",
"default": {},
"$ref": "#/definitions/xyz.kmodules.custom-resources.apis.appcatalog.v1alpha1.AppReference"
},
"syncUsers": {
"description": "SyncUsers is a boolean type and when enabled, operator fetches users of backend server from externally managed secrets to the PgBouncer server. Secrets updation or deletion are also synced in pgBouncer when it is enabled.",
"type": "boolean"
}
}
},
Expand Down
Loading