Skip to content
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
18 changes: 18 additions & 0 deletions api/version.proto
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,12 @@ message ApplyRequest {
bool role_management_enabled = 27;
bool mcs_enabled = 28;
bool volume_expansion_enabled = 29;
string distribution = 30 [
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
description: "PostgreSQL distribution running in the cluster. Empty string means unknown (e.g. no running pods yet)."
enum: ["", "percona", "community"]
}
Comment on lines +122 to +126
];
}

message OperatorRequest {
Expand Down Expand Up @@ -150,6 +156,12 @@ message OperatorRequest {
bool role_management_enabled = 27;
bool mcs_enabled = 28;
bool volume_expansion_enabled = 29;
string distribution = 30 [
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
description: "PostgreSQL distribution running in the cluster. Empty string means unknown (e.g. no running pods yet)."
enum: ["", "percona", "community"]
}
];
}
Comment on lines 156 to 165

message ProductRequest {
Expand Down Expand Up @@ -180,6 +192,12 @@ message ProductRequest {
bool role_management_enabled = 27;
bool mcs_enabled = 28;
bool volume_expansion_enabled = 29;
string distribution = 30 [
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
description: "PostgreSQL distribution running in the cluster. Empty string means unknown (e.g. no running pods yet)."
enum: ["", "percona", "community"]
}
];
}

message MetadataRequest {
Expand Down
35 changes: 31 additions & 4 deletions api/version.swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,15 @@ paths:
in: query
required: false
type: boolean
- name: distribution
description: PostgreSQL distribution running in the cluster. Empty string means unknown (e.g. no running pods yet).
in: query
required: false
type: string
enum:
- ""
- percona
- community
tags:
- VersionService
/versions/v1/{product}/{operatorVersion}:
Expand Down Expand Up @@ -335,6 +344,15 @@ paths:
in: query
required: false
type: boolean
- name: distribution
description: PostgreSQL distribution running in the cluster. Empty string means unknown (e.g. no running pods yet).
in: query
required: false
type: string
enum:
- ""
- percona
- community
tags:
- VersionService
/versions/v1/{product}/{operatorVersion}/{apply}:
Expand Down Expand Up @@ -469,6 +487,15 @@ paths:
in: query
required: false
type: boolean
- name: distribution
description: PostgreSQL distribution running in the cluster. Empty string means unknown (e.g. no running pods yet).
in: query
required: false
type: string
enum:
- ""
- percona
- community
tags:
- VersionService
definitions:
Expand Down Expand Up @@ -658,10 +685,6 @@ definitions:
type: object
additionalProperties:
$ref: '#/definitions/versionVersion'
pgupgrade:
type: object
additionalProperties:
$ref: '#/definitions/versionVersion'
pxcOperator:
type: object
additionalProperties:
Expand Down Expand Up @@ -722,6 +745,10 @@ definitions:
type: object
additionalProperties:
$ref: '#/definitions/versionVersion'
pgupgrade:
type: object
additionalProperties:
$ref: '#/definitions/versionVersion'
description: VersionMatrix represents set of possible product versions.
versionVersionResponse:
type: object
Expand Down
8 changes: 4 additions & 4 deletions buf.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
version: v2
deps:
- name: buf.build/googleapis/googleapis
commit: c0913f24652a4cfc95f77d97443a5005
digest: b5:4edb1480036c60f7867d75417d7faa87c851c96a4988a9746058a24e8e9bb4978daed0af35d57f6043de5a60355978dceaaa93dc992be99193260ac8823cbb8f
commit: c17df5b2beca46928cc87d5656bd5343
digest: b5:648a01e0170d4512dea7d564016165decd1ed6e34bef79fe54753e51ad7e27545709ad9157d7551270147d551155c595a2fb0bf5bb33b1c83040ddbce915c604
- name: buf.build/grpc-ecosystem/grpc-gateway
commit: a48fcebcf8f140dd9d09359b9bb185a4
digest: b5:330af8a71b579ab96c4f3ee26929d1a68a5a9e986c7cfe0a898591fc514216bb6e723dc04c74d90fdee3f3f14f9100a54b4f079eb273e6e7213f0d5baca36ff8
commit: 4836b6d552304e1bbe47e66a523f0daa
digest: b5:c3fefd4d3dfa9b0478bbb1a4ad87d7b38146e3ce6eff4214e32f2c5834c2e4afc3be218316f0fbd53e925a001c3ed1e2fc99fb76b3121ede642989f0d0d7c71c
35 changes: 31 additions & 4 deletions third_party/OpenAPI/api/version.swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,15 @@ paths:
in: query
required: false
type: boolean
- name: distribution
description: PostgreSQL distribution running in the cluster. Empty string means unknown (e.g. no running pods yet).
in: query
required: false
type: string
enum:
- ""
- percona
- community
tags:
- VersionService
/versions/v1/{product}/{operatorVersion}:
Expand Down Expand Up @@ -335,6 +344,15 @@ paths:
in: query
required: false
type: boolean
- name: distribution
description: PostgreSQL distribution running in the cluster. Empty string means unknown (e.g. no running pods yet).
in: query
required: false
type: string
enum:
- ""
- percona
- community
tags:
- VersionService
/versions/v1/{product}/{operatorVersion}/{apply}:
Expand Down Expand Up @@ -469,6 +487,15 @@ paths:
in: query
required: false
type: boolean
- name: distribution
description: PostgreSQL distribution running in the cluster. Empty string means unknown (e.g. no running pods yet).
in: query
required: false
type: string
enum:
- ""
- percona
- community
tags:
- VersionService
definitions:
Expand Down Expand Up @@ -658,10 +685,6 @@ definitions:
type: object
additionalProperties:
$ref: '#/definitions/versionVersion'
pgupgrade:
type: object
additionalProperties:
$ref: '#/definitions/versionVersion'
pxcOperator:
type: object
additionalProperties:
Expand Down Expand Up @@ -722,6 +745,10 @@ definitions:
type: object
additionalProperties:
$ref: '#/definitions/versionVersion'
pgupgrade:
type: object
additionalProperties:
$ref: '#/definitions/versionVersion'
description: VersionMatrix represents set of possible product versions.
versionVersionResponse:
type: object
Expand Down
Loading
Loading