-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
With this commit it's now possible to provision a fairly default Keycloak instance backed by our PostgreSQL implementation.
- Loading branch information
Showing
35 changed files
with
12,279 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package v1 | ||
|
||
import ( | ||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||
) | ||
|
||
// +kubebuilder:object:root=true | ||
|
||
// SGPoolingConfig is the API for creating pgbouncer configs clusters. | ||
type SGPoolingConfig struct { | ||
metav1.TypeMeta `json:",inline"` | ||
metav1.ObjectMeta `json:"metadata,omitempty"` | ||
|
||
// Spec defines the desired state of a VSHNPostgreSQL. | ||
Spec SGPoolingConfigSpec `json:"spec"` | ||
|
||
// Status reflects the observed state of a VSHNPostgreSQL. | ||
Status SGPoolingConfigStatus `json:"status,omitempty"` | ||
} | ||
|
||
// +kubebuilder:object:root=true | ||
|
||
type SGPoolingConfigList struct { | ||
metav1.TypeMeta `json:",inline"` | ||
metav1.ListMeta `json:"metadata,omitempty"` | ||
|
||
Items []SGPoolingConfig `json:"items"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
openapi: "3.0.2" | ||
paths: | ||
"/spec": | ||
get: | ||
responses: | ||
"200": | ||
content: | ||
"application/json": | ||
schema: | ||
"$ref": "#/components/schemas/SGPoolingConfigSpec" | ||
"/status": | ||
get: | ||
responses: | ||
"200": | ||
content: | ||
"application/json": | ||
schema: | ||
"$ref": "#/components/schemas/SGPoolingConfigStatus" | ||
components: | ||
schemas: | ||
SGPoolingConfigSpec: | ||
type: object | ||
properties: | ||
pgBouncer: | ||
type: object | ||
description: | | ||
Connection pooling configuration based on PgBouncer. | ||
properties: | ||
pgbouncer.ini: | ||
type: object | ||
description: | | ||
The `pgbouncer.ini` parameters the configuration contains, represented as an object where the keys are valid names for the `pgbouncer.ini` configuration file parameters. | ||
Check [pgbouncer configuration](https://www.pgbouncer.org/config.html#generic-settings) for more information about supported parameters. | ||
properties: | ||
pgbouncer: | ||
type: object | ||
additionalProperties: true | ||
description: | | ||
The `pgbouncer.ini` (Section [pgbouncer]) parameters the configuration contains, represented as an object where the keys are valid names for the `pgbouncer.ini` configuration file parameters. | ||
Check [pgbouncer configuration](https://www.pgbouncer.org/config.html#generic-settings) for more information about supported parameters | ||
databases: | ||
type: object | ||
additionalProperties: | ||
type: object | ||
additionalProperties: true | ||
description: | | ||
The `pgbouncer.ini` (Section [databases]) parameters the configuration contains, represented as an object where the keys are valid names for the `pgbouncer.ini` configuration file parameters. | ||
Check [pgbouncer configuration](https://www.pgbouncer.org/config.html#section-databases) for more information about supported parameters. | ||
users: | ||
type: object | ||
additionalProperties: | ||
type: object | ||
additionalProperties: true | ||
description: | | ||
The `pgbouncer.ini` (Section [users]) parameters the configuration contains, represented as an object where the keys are valid names for the `pgbouncer.ini` configuration file parameters. | ||
Check [pgbouncer configuration](https://www.pgbouncer.org/config.html#section-users) for more information about supported parameters. | ||
SGPoolingConfigStatus: | ||
type: object | ||
properties: | ||
pgBouncer: | ||
type: object | ||
description: | | ||
Connection pooling configuration status based on PgBouncer. | ||
properties: | ||
defaultParameters: | ||
type: object | ||
additionalProperties: | ||
type: string | ||
description: | | ||
The `pgbouncer.ini` default parameters parameters which are used if not set. | ||
required: ["defaultParameters"] |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.