File tree Expand file tree Collapse file tree 8 files changed +43
-14
lines changed Expand file tree Collapse file tree 8 files changed +43
-14
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ type DatabaseSpec struct {
14
14
DatabaseNodeSpec `json:",inline"`
15
15
16
16
// (Optional) NodeSet inline configuration to split into multiple StatefulSets
17
+ // Default: (not specified)
17
18
// +optional
18
19
NodeSets []DatabaseNodeSetSpecInline `json:"nodeSets,omitempty"`
19
20
}
@@ -156,6 +157,10 @@ type DatabaseNodeSpec struct {
156
157
// +optional
157
158
PriorityClassName string `json:"priorityClassName,omitempty"`
158
159
160
+ // (Optional) If specified, the pod's terminationGracePeriodSeconds.
161
+ // +optional
162
+ TerminationGracePeriodSeconds * int64 `json:"terminationGracePeriodSeconds,omitempty"`
163
+
159
164
// (Optional) Additional custom resource labels that are added to all resources
160
165
// +optional
161
166
AdditionalLabels map [string ]string `json:"additionalLabels,omitempty"`
Original file line number Diff line number Diff line change @@ -149,6 +149,10 @@ type StorageNodeSpec struct {
149
149
// +optional
150
150
PriorityClassName string `json:"priorityClassName,omitempty"`
151
151
152
+ // (Optional) If specified, the pod's terminationGracePeriodSeconds.
153
+ // +optional
154
+ TerminationGracePeriodSeconds * int64 `json:"terminationGracePeriodSeconds,omitempty"`
155
+
152
156
// (Optional) Additional custom resource labels that are added to all resources
153
157
// +optional
154
158
AdditionalLabels map [string ]string `json:"additionalLabels,omitempty"`
Original file line number Diff line number Diff line change @@ -15,10 +15,10 @@ type: application
15
15
# This is the chart version. This version number should be incremented each time you make changes
16
16
# to the chart and its templates, including the app version.
17
17
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18
- version : 0.4.38
18
+ version : 0.4.39
19
19
20
20
# This is the version number of the application being deployed. This version number should be
21
21
# incremented each time you make changes to the application. Versions are not expected to
22
22
# follow Semantic Versioning. They should reflect the version the application is using.
23
23
# It is recommended to use it with quotes.
24
- appVersion : " 0.4.38 "
24
+ appVersion : " 0.4.39 "
Original file line number Diff line number Diff line change @@ -4063,6 +4063,10 @@ spec:
4063
4063
required :
4064
4064
- name
4065
4065
type : object
4066
+ terminationGracePeriodSeconds :
4067
+ description : (Optional) If specified, the pod's terminationGracePeriodSeconds.
4068
+ format : int64
4069
+ type : integer
4066
4070
storageEndpoint :
4067
4071
description : YDB Storage Node broker address
4068
4072
type : string
Original file line number Diff line number Diff line change @@ -4177,6 +4177,10 @@ spec:
4177
4177
type : string
4178
4178
type : object
4179
4179
type : object
4180
+ terminationGracePeriodSeconds :
4181
+ description : (Optional) If specified, the pod's terminationGracePeriodSeconds.
4182
+ format : int64
4183
+ type : integer
4180
4184
tolerations :
4181
4185
description : (Optional) If specified, the pod's tolerations.
4182
4186
items :
Original file line number Diff line number Diff line change @@ -89,12 +89,13 @@ func (b *DatabaseStatefulSetBuilder) buildPodTemplateSpec() corev1.PodTemplateSp
89
89
Annotations : CopyDict (b .Spec .AdditionalAnnotations ),
90
90
},
91
91
Spec : corev1.PodSpec {
92
- Containers : []corev1.Container {b .buildContainer ()},
93
- NodeSelector : b .Spec .NodeSelector ,
94
- Affinity : b .Spec .Affinity ,
95
- Tolerations : b .Spec .Tolerations ,
96
- PriorityClassName : b .Spec .PriorityClassName ,
97
- TopologySpreadConstraints : b .Spec .TopologySpreadConstraints ,
92
+ Containers : []corev1.Container {b .buildContainer ()},
93
+ NodeSelector : b .Spec .NodeSelector ,
94
+ Affinity : b .Spec .Affinity ,
95
+ Tolerations : b .Spec .Tolerations ,
96
+ PriorityClassName : b .Spec .PriorityClassName ,
97
+ TopologySpreadConstraints : b .Spec .TopologySpreadConstraints ,
98
+ TerminationGracePeriodSeconds : b .Spec .TerminationGracePeriodSeconds ,
98
99
99
100
Volumes : b .buildVolumes (),
100
101
Original file line number Diff line number Diff line change @@ -107,12 +107,13 @@ func (b *StorageStatefulSetBuilder) buildPodTemplateSpec() corev1.PodTemplateSpe
107
107
Annotations : CopyDict (b .Spec .AdditionalAnnotations ),
108
108
},
109
109
Spec : corev1.PodSpec {
110
- Containers : []corev1.Container {b .buildContainer ()},
111
- NodeSelector : b .Spec .NodeSelector ,
112
- Affinity : b .Spec .Affinity ,
113
- Tolerations : b .Spec .Tolerations ,
114
- PriorityClassName : b .Spec .PriorityClassName ,
115
- TopologySpreadConstraints : b .buildTopologySpreadConstraints (),
110
+ Containers : []corev1.Container {b .buildContainer ()},
111
+ NodeSelector : b .Spec .NodeSelector ,
112
+ Affinity : b .Spec .Affinity ,
113
+ Tolerations : b .Spec .Tolerations ,
114
+ PriorityClassName : b .Spec .PriorityClassName ,
115
+ TopologySpreadConstraints : b .buildTopologySpreadConstraints (),
116
+ TerminationGracePeriodSeconds : b .Spec .TerminationGracePeriodSeconds ,
116
117
117
118
Volumes : b .buildVolumes (),
118
119
You can’t perform that action at this time.
0 commit comments