Skip to content

Commit 4888187

Browse files
authored
Increase default sync interval for OpenStack datasource from 60s to 600s (#660)
We encountered a bug in the openstack datasource controller in which initial reconciles are pushed back in the priority queue due to the controller enqueueing new reconciles with higher priority. This can lead to some of the datasources never reconciling. By setting the sync interval to a higher value this decreases the chance of the requeued reconcile to push back initial reconciles indefinitely.
1 parent fcb773a commit 4888187

3 files changed

Lines changed: 14 additions & 2 deletions

File tree

api/v1alpha1/datasource_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ type OpenStackDatasource struct {
167167
Cinder CinderDatasource `json:"cinder"`
168168

169169
// How often to sync the datasource.
170-
// +kubebuilder:default="60s"
170+
// +kubebuilder:default="600s"
171171
SyncInterval metav1.Duration `json:"syncInterval"`
172172

173173
// Keystone credentials secret ref for authenticating with openstack.

helm/bundles/cortex-nova/templates/datasources.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ spec:
8787
{{- end }}
8888
type: openstack
8989
openstack:
90+
syncInterval: 600s
9091
secretRef:
9192
name: cortex-nova-openstack-keystone
9293
namespace: {{ .Release.Namespace }}
@@ -110,6 +111,7 @@ spec:
110111
{{- end }}
111112
type: openstack
112113
openstack:
114+
syncInterval: 600s
113115
secretRef:
114116
name: cortex-nova-openstack-keystone
115117
namespace: {{ .Release.Namespace }}
@@ -133,6 +135,7 @@ spec:
133135
{{- end }}
134136
type: openstack
135137
openstack:
138+
syncInterval: 600s
136139
secretRef:
137140
name: cortex-nova-openstack-keystone
138141
namespace: {{ .Release.Namespace }}
@@ -156,6 +159,7 @@ spec:
156159
{{- end }}
157160
type: openstack
158161
openstack:
162+
syncInterval: 600s
159163
secretRef:
160164
name: cortex-nova-openstack-keystone
161165
namespace: {{ .Release.Namespace }}
@@ -179,6 +183,7 @@ spec:
179183
{{- end }}
180184
type: openstack
181185
openstack:
186+
syncInterval: 600s
182187
secretRef:
183188
name: cortex-nova-openstack-keystone
184189
namespace: {{ .Release.Namespace }}
@@ -202,6 +207,7 @@ spec:
202207
{{- end }}
203208
type: openstack
204209
openstack:
210+
syncInterval: 600s
205211
secretRef:
206212
name: cortex-nova-openstack-keystone
207213
namespace: {{ .Release.Namespace }}
@@ -225,6 +231,7 @@ spec:
225231
{{- end }}
226232
type: openstack
227233
openstack:
234+
syncInterval: 600s
228235
secretRef:
229236
name: cortex-nova-openstack-keystone
230237
namespace: {{ .Release.Namespace }}
@@ -248,6 +255,7 @@ spec:
248255
{{- end }}
249256
type: openstack
250257
openstack:
258+
syncInterval: 600s
251259
secretRef:
252260
name: cortex-nova-openstack-keystone
253261
namespace: {{ .Release.Namespace }}
@@ -271,6 +279,7 @@ spec:
271279
{{- end }}
272280
type: openstack
273281
openstack:
282+
syncInterval: 600s
274283
secretRef:
275284
name: cortex-nova-openstack-keystone
276285
namespace: {{ .Release.Namespace }}
@@ -294,6 +303,7 @@ spec:
294303
{{- end }}
295304
type: openstack
296305
openstack:
306+
syncInterval: 600s
297307
secretRef:
298308
name: cortex-nova-openstack-keystone
299309
namespace: {{ .Release.Namespace }}
@@ -317,6 +327,7 @@ spec:
317327
{{- end }}
318328
type: openstack
319329
openstack:
330+
syncInterval: 600s
320331
secretRef:
321332
name: cortex-nova-openstack-keystone
322333
namespace: {{ .Release.Namespace }}
@@ -340,6 +351,7 @@ spec:
340351
{{- end }}
341352
type: openstack
342353
openstack:
354+
syncInterval: 600s
343355
secretRef:
344356
name: cortex-nova-openstack-keystone
345357
namespace: {{ .Release.Namespace }}

helm/library/cortex/files/crds/cortex.cloud_datasources.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ spec:
180180
type: object
181181
x-kubernetes-map-type: atomic
182182
syncInterval:
183-
default: 60s
183+
default: 600s
184184
description: How often to sync the datasource.
185185
type: string
186186
type:

0 commit comments

Comments
 (0)