Skip to content

Commit 35893a1

Browse files
[create-pull-request] automated change (#321)
Co-authored-by: ryanhall07 <[email protected]>
1 parent f56ff43 commit 35893a1

File tree

1 file changed

+43
-1
lines changed

1 file changed

+43
-1
lines changed

spec/open-api.yml

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1492,6 +1492,8 @@ components:
14921492
$ref: "#/components/schemas/Probe"
14931493
startupProbe:
14941494
$ref: "#/components/schemas/Probe"
1495+
lifecycle:
1496+
$ref: "#/components/schemas/Lifecycle"
14951497
required:
14961498
- name
14971499
- image
@@ -1548,6 +1550,8 @@ components:
15481550
$ref: "#/components/schemas/Probe"
15491551
startupProbe:
15501552
$ref: "#/components/schemas/Probe"
1553+
lifecycle:
1554+
$ref: "#/components/schemas/Lifecycle"
15511555
ResourceProfile:
15521556
type: object
15531557
description: Resource profile model.
@@ -1730,6 +1734,14 @@ components:
17301734
utilizationMemoryAverage:
17311735
type: integer
17321736
description: UtilizationMemoryAverage defines the target value for average CPU utilization
1737+
storageClass:
1738+
type: string
1739+
description: Represents the storageClass for PVC templates
1740+
nullable: true
1741+
default: null
1742+
pvcRetentionPolicy:
1743+
$ref: "#/components/schemas/PVCRetentionPolicy"
1744+
nullable: true
17331745
portKind:
17341746
$ref: "#/components/schemas/PipelinePortKind"
17351747
labels:
@@ -1779,7 +1791,7 @@ components:
17791791
PipelineKind:
17801792
type: string
17811793
default: deployment
1782-
enum: [deployment, daemonSet]
1794+
enum: [deployment, daemonSet, statefulSet]
17831795
Pipelines:
17841796
type: object
17851797
properties:
@@ -3133,6 +3145,13 @@ components:
31333145
lifecycle:
31343146
$ref: "#/components/schemas/Lifecycle"
31353147
nullable: true
3148+
storageClass:
3149+
type: string
3150+
description: Represents the storageClass for PVC templates
3151+
nullable: true
3152+
pvcRetentionPolicy:
3153+
$ref: "#/components/schemas/PVCRetentionPolicy"
3154+
nullable: true
31363155

31373156
required:
31383157
- name
@@ -3162,6 +3181,20 @@ components:
31623181
- Pods
31633182
- Percent
31643183
default: "Unknown"
3184+
PVCRetentionPolicy:
3185+
type: object
3186+
description: Defines what happens to PVCs when StatefulSets are scaled or deleted (K8s 1.23+)
3187+
properties:
3188+
whenScaled:
3189+
type: string
3190+
description: Determines what happens to PVCs when a StatefulSet is scaled down
3191+
enum: [Retain, Delete]
3192+
default: Retain
3193+
whenDeleted:
3194+
type: string
3195+
description: Determines what happens to PVCs when a StatefulSet is deleted
3196+
enum: [Retain, Delete]
3197+
default: Retain
31653198

31663199
Affinity:
31673200
type: object
@@ -3453,6 +3486,11 @@ components:
34533486
type: integer
34543487
nullable: true
34553488
default: null
3489+
storageClass:
3490+
type: string
3491+
description: Represents the storageClass for PVC templates
3492+
nullable: true
3493+
default: null
34563494
labels:
34573495
type: object
34583496
nullable: true
@@ -3475,6 +3513,10 @@ components:
34753513
lifecycle:
34763514
$ref: "#/components/schemas/Lifecycle"
34773515
nullable: true
3516+
pvcRetentionPolicy:
3517+
$ref: "#/components/schemas/PVCRetentionPolicy"
3518+
nullable: true
3519+
description: Defines what happens to PVCs when StatefulSets are scaled or deleted (K8s 1.23+)
34783520
CreatePipelineCheck:
34793521
description: Create pipeline check request body.
34803522
type: object

0 commit comments

Comments
 (0)