Skip to content

Commit fd91c63

Browse files
committed
K8SPG-680: add ReadyForBackup condition to the pg-cluster
https://perconadev.atlassian.net/browse/K8SPG-680
1 parent bd5bac1 commit fd91c63

11 files changed

Lines changed: 432 additions & 81 deletions

File tree

build/crd/percona/generated/pgv2.percona.com_perconapgclusters.yaml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18314,6 +18314,62 @@ spec:
1831418314
!has(u.grantPublicSchemaAccess) || !u.grantPublicSchemaAccess)'
1831518315
status:
1831618316
properties:
18317+
conditions:
18318+
items:
18319+
description: Condition contains details for one aspect of the current
18320+
state of this API Resource.
18321+
properties:
18322+
lastTransitionTime:
18323+
description: |-
18324+
lastTransitionTime is the last time the condition transitioned from one status to another.
18325+
This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
18326+
format: date-time
18327+
type: string
18328+
message:
18329+
description: |-
18330+
message is a human readable message indicating details about the transition.
18331+
This may be an empty string.
18332+
maxLength: 32768
18333+
type: string
18334+
observedGeneration:
18335+
description: |-
18336+
observedGeneration represents the .metadata.generation that the condition was set based upon.
18337+
For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
18338+
with respect to the current state of the instance.
18339+
format: int64
18340+
minimum: 0
18341+
type: integer
18342+
reason:
18343+
description: |-
18344+
reason contains a programmatic identifier indicating the reason for the condition's last transition.
18345+
Producers of specific condition types may define expected values and meanings for this field,
18346+
and whether the values are considered a guaranteed API.
18347+
The value should be a CamelCase string.
18348+
This field may not be empty.
18349+
maxLength: 1024
18350+
minLength: 1
18351+
pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$
18352+
type: string
18353+
status:
18354+
description: status of the condition, one of True, False, Unknown.
18355+
enum:
18356+
- "True"
18357+
- "False"
18358+
- Unknown
18359+
type: string
18360+
type:
18361+
description: type of condition in CamelCase or in foo.example.com/CamelCase.
18362+
maxLength: 316
18363+
pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
18364+
type: string
18365+
required:
18366+
- lastTransitionTime
18367+
- message
18368+
- reason
18369+
- status
18370+
- type
18371+
type: object
18372+
type: array
1831718373
host:
1831818374
type: string
1831918375
installedCustomExtensions:

config/crd/bases/pgv2.percona.com_perconapgclusters.yaml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18721,6 +18721,62 @@ spec:
1872118721
!has(u.grantPublicSchemaAccess) || !u.grantPublicSchemaAccess)'
1872218722
status:
1872318723
properties:
18724+
conditions:
18725+
items:
18726+
description: Condition contains details for one aspect of the current
18727+
state of this API Resource.
18728+
properties:
18729+
lastTransitionTime:
18730+
description: |-
18731+
lastTransitionTime is the last time the condition transitioned from one status to another.
18732+
This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
18733+
format: date-time
18734+
type: string
18735+
message:
18736+
description: |-
18737+
message is a human readable message indicating details about the transition.
18738+
This may be an empty string.
18739+
maxLength: 32768
18740+
type: string
18741+
observedGeneration:
18742+
description: |-
18743+
observedGeneration represents the .metadata.generation that the condition was set based upon.
18744+
For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
18745+
with respect to the current state of the instance.
18746+
format: int64
18747+
minimum: 0
18748+
type: integer
18749+
reason:
18750+
description: |-
18751+
reason contains a programmatic identifier indicating the reason for the condition's last transition.
18752+
Producers of specific condition types may define expected values and meanings for this field,
18753+
and whether the values are considered a guaranteed API.
18754+
The value should be a CamelCase string.
18755+
This field may not be empty.
18756+
maxLength: 1024
18757+
minLength: 1
18758+
pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$
18759+
type: string
18760+
status:
18761+
description: status of the condition, one of True, False, Unknown.
18762+
enum:
18763+
- "True"
18764+
- "False"
18765+
- Unknown
18766+
type: string
18767+
type:
18768+
description: type of condition in CamelCase or in foo.example.com/CamelCase.
18769+
maxLength: 316
18770+
pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
18771+
type: string
18772+
required:
18773+
- lastTransitionTime
18774+
- message
18775+
- reason
18776+
- status
18777+
- type
18778+
type: object
18779+
type: array
1872418780
host:
1872518781
type: string
1872618782
installedCustomExtensions:

deploy/bundle.yaml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19018,6 +19018,62 @@ spec:
1901819018
!has(u.grantPublicSchemaAccess) || !u.grantPublicSchemaAccess)'
1901919019
status:
1902019020
properties:
19021+
conditions:
19022+
items:
19023+
description: Condition contains details for one aspect of the current
19024+
state of this API Resource.
19025+
properties:
19026+
lastTransitionTime:
19027+
description: |-
19028+
lastTransitionTime is the last time the condition transitioned from one status to another.
19029+
This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
19030+
format: date-time
19031+
type: string
19032+
message:
19033+
description: |-
19034+
message is a human readable message indicating details about the transition.
19035+
This may be an empty string.
19036+
maxLength: 32768
19037+
type: string
19038+
observedGeneration:
19039+
description: |-
19040+
observedGeneration represents the .metadata.generation that the condition was set based upon.
19041+
For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
19042+
with respect to the current state of the instance.
19043+
format: int64
19044+
minimum: 0
19045+
type: integer
19046+
reason:
19047+
description: |-
19048+
reason contains a programmatic identifier indicating the reason for the condition's last transition.
19049+
Producers of specific condition types may define expected values and meanings for this field,
19050+
and whether the values are considered a guaranteed API.
19051+
The value should be a CamelCase string.
19052+
This field may not be empty.
19053+
maxLength: 1024
19054+
minLength: 1
19055+
pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$
19056+
type: string
19057+
status:
19058+
description: status of the condition, one of True, False, Unknown.
19059+
enum:
19060+
- "True"
19061+
- "False"
19062+
- Unknown
19063+
type: string
19064+
type:
19065+
description: type of condition in CamelCase or in foo.example.com/CamelCase.
19066+
maxLength: 316
19067+
pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
19068+
type: string
19069+
required:
19070+
- lastTransitionTime
19071+
- message
19072+
- reason
19073+
- status
19074+
- type
19075+
type: object
19076+
type: array
1902119077
host:
1902219078
type: string
1902319079
installedCustomExtensions:

deploy/crd.yaml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19018,6 +19018,62 @@ spec:
1901819018
!has(u.grantPublicSchemaAccess) || !u.grantPublicSchemaAccess)'
1901919019
status:
1902019020
properties:
19021+
conditions:
19022+
items:
19023+
description: Condition contains details for one aspect of the current
19024+
state of this API Resource.
19025+
properties:
19026+
lastTransitionTime:
19027+
description: |-
19028+
lastTransitionTime is the last time the condition transitioned from one status to another.
19029+
This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
19030+
format: date-time
19031+
type: string
19032+
message:
19033+
description: |-
19034+
message is a human readable message indicating details about the transition.
19035+
This may be an empty string.
19036+
maxLength: 32768
19037+
type: string
19038+
observedGeneration:
19039+
description: |-
19040+
observedGeneration represents the .metadata.generation that the condition was set based upon.
19041+
For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
19042+
with respect to the current state of the instance.
19043+
format: int64
19044+
minimum: 0
19045+
type: integer
19046+
reason:
19047+
description: |-
19048+
reason contains a programmatic identifier indicating the reason for the condition's last transition.
19049+
Producers of specific condition types may define expected values and meanings for this field,
19050+
and whether the values are considered a guaranteed API.
19051+
The value should be a CamelCase string.
19052+
This field may not be empty.
19053+
maxLength: 1024
19054+
minLength: 1
19055+
pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$
19056+
type: string
19057+
status:
19058+
description: status of the condition, one of True, False, Unknown.
19059+
enum:
19060+
- "True"
19061+
- "False"
19062+
- Unknown
19063+
type: string
19064+
type:
19065+
description: type of condition in CamelCase or in foo.example.com/CamelCase.
19066+
maxLength: 316
19067+
pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
19068+
type: string
19069+
required:
19070+
- lastTransitionTime
19071+
- message
19072+
- reason
19073+
- status
19074+
- type
19075+
type: object
19076+
type: array
1902119077
host:
1902219078
type: string
1902319079
installedCustomExtensions:

deploy/cw-bundle.yaml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19018,6 +19018,62 @@ spec:
1901819018
!has(u.grantPublicSchemaAccess) || !u.grantPublicSchemaAccess)'
1901919019
status:
1902019020
properties:
19021+
conditions:
19022+
items:
19023+
description: Condition contains details for one aspect of the current
19024+
state of this API Resource.
19025+
properties:
19026+
lastTransitionTime:
19027+
description: |-
19028+
lastTransitionTime is the last time the condition transitioned from one status to another.
19029+
This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
19030+
format: date-time
19031+
type: string
19032+
message:
19033+
description: |-
19034+
message is a human readable message indicating details about the transition.
19035+
This may be an empty string.
19036+
maxLength: 32768
19037+
type: string
19038+
observedGeneration:
19039+
description: |-
19040+
observedGeneration represents the .metadata.generation that the condition was set based upon.
19041+
For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
19042+
with respect to the current state of the instance.
19043+
format: int64
19044+
minimum: 0
19045+
type: integer
19046+
reason:
19047+
description: |-
19048+
reason contains a programmatic identifier indicating the reason for the condition's last transition.
19049+
Producers of specific condition types may define expected values and meanings for this field,
19050+
and whether the values are considered a guaranteed API.
19051+
The value should be a CamelCase string.
19052+
This field may not be empty.
19053+
maxLength: 1024
19054+
minLength: 1
19055+
pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$
19056+
type: string
19057+
status:
19058+
description: status of the condition, one of True, False, Unknown.
19059+
enum:
19060+
- "True"
19061+
- "False"
19062+
- Unknown
19063+
type: string
19064+
type:
19065+
description: type of condition in CamelCase or in foo.example.com/CamelCase.
19066+
maxLength: 316
19067+
pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
19068+
type: string
19069+
required:
19070+
- lastTransitionTime
19071+
- message
19072+
- reason
19073+
- status
19074+
- type
19075+
type: object
19076+
type: array
1902119077
host:
1902219078
type: string
1902319079
installedCustomExtensions:

0 commit comments

Comments
 (0)