File tree Expand file tree Collapse file tree 6 files changed +12
-18
lines changed Expand file tree Collapse file tree 6 files changed +12
-18
lines changed Original file line number Diff line number Diff line change 63
63
uses : golangci/golangci-lint-action@v2
64
64
with :
65
65
version : v1.48.0
66
- args : --out-format=colored-line-number
67
66
code-format-check :
68
67
concurrency :
69
68
group : lint-autoformat-${{ github.ref }}
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.5.0
18
+ version : 0.5.1
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.5.0 "
24
+ appVersion : " 0.5.1 "
Original file line number Diff line number Diff line change @@ -195,7 +195,14 @@ func (r *Reconciler) initializeStorage(
195
195
return r .setInitStorageCompleted (ctx , storage , "Storage initialized successfully" )
196
196
}
197
197
198
- if initJob .Status .Failed > 0 {
198
+ var conditionFailed bool
199
+ for _ , condition := range initJob .Status .Conditions {
200
+ if condition .Type == batchv1 .JobFailed {
201
+ conditionFailed = true
202
+ break
203
+ }
204
+ }
205
+ if initJob .Status .Failed == * initJob .Spec .BackoffLimit || conditionFailed {
199
206
r .Log .Info ("Init Job status failed" )
200
207
r .Recorder .Event (
201
208
storage ,
Original file line number Diff line number Diff line change @@ -281,10 +281,6 @@ func (b *DatabaseBuilder) recastDatabaseNodeSetSpecInline(nodeSetSpecInline *api
281
281
nodeSetSpec .Tolerations = append (nodeSetSpec .Tolerations , nodeSetSpecInline .Tolerations ... )
282
282
}
283
283
284
- if nodeSetSpecInline .PriorityClassName != nodeSetSpec .PriorityClassName {
285
- nodeSetSpec .PriorityClassName = nodeSetSpecInline .PriorityClassName
286
- }
287
-
288
284
nodeSetSpec .AdditionalLabels = CopyDict (b .Spec .AdditionalLabels )
289
285
if nodeSetSpecInline .AdditionalLabels != nil {
290
286
for k , v := range nodeSetSpecInline .AdditionalLabels {
Original file line number Diff line number Diff line change @@ -212,10 +212,6 @@ func (b *StorageClusterBuilder) recastStorageNodeSetSpecInline(nodeSetSpecInline
212
212
nodeSetSpec .Resources = nodeSetSpecInline .Resources
213
213
}
214
214
215
- if nodeSetSpecInline .HostNetwork != nodeSetSpec .HostNetwork {
216
- nodeSetSpec .HostNetwork = nodeSetSpecInline .HostNetwork
217
- }
218
-
219
215
nodeSetSpec .NodeSelector = CopyDict (b .Spec .NodeSelector )
220
216
if nodeSetSpecInline .NodeSelector != nil {
221
217
for k , v := range nodeSetSpecInline .NodeSelector {
@@ -235,10 +231,6 @@ func (b *StorageClusterBuilder) recastStorageNodeSetSpecInline(nodeSetSpecInline
235
231
nodeSetSpec .TopologySpreadConstraints = append (nodeSetSpec .TopologySpreadConstraints , nodeSetSpecInline .TopologySpreadConstraints ... )
236
232
}
237
233
238
- if nodeSetSpecInline .PriorityClassName != nodeSetSpec .PriorityClassName {
239
- nodeSetSpec .PriorityClassName = nodeSetSpecInline .PriorityClassName
240
- }
241
-
242
234
nodeSetSpec .AdditionalLabels = CopyDict (b .Spec .AdditionalLabels )
243
235
if nodeSetSpecInline .AdditionalLabels != nil {
244
236
for k , v := range nodeSetSpecInline .AdditionalLabels {
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ func (b *StorageInitJobBuilder) Build(obj client.Object) error {
40
40
Parallelism : ptr .Int32 (1 ),
41
41
Completions : ptr .Int32 (1 ),
42
42
ActiveDeadlineSeconds : ptr .Int64 (300 ),
43
- BackoffLimit : ptr .Int32 (10 ),
43
+ BackoffLimit : ptr .Int32 (3 ),
44
44
Template : b .buildInitJobPodTemplateSpec (),
45
45
}
46
46
@@ -91,7 +91,7 @@ func (b *StorageInitJobBuilder) buildInitJobPodTemplateSpec() corev1.PodTemplate
91
91
Spec : corev1.PodSpec {
92
92
Containers : []corev1.Container {b .buildInitJobContainer ()},
93
93
Volumes : b .buildInitJobVolumes (),
94
- RestartPolicy : corev1 .RestartPolicyOnFailure ,
94
+ RestartPolicy : corev1 .RestartPolicyNever ,
95
95
DNSConfig : & corev1.PodDNSConfig {
96
96
Searches : dnsConfigSearches ,
97
97
},
You can’t perform that action at this time.
0 commit comments