File tree 3 files changed +12
-4
lines changed
deploy/charts/netris-operator
3 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ type BGPConfigurationSpec struct {
47
47
// LogSeverityScreen string `json:"logSeverityScreen,omitempty" validate:"omitempty,logLevel" confignamev1:"loglevel"`
48
48
49
49
// NodeToNodeMeshEnabled sets whether full node to node BGP mesh is enabled. [Default: true]
50
- NodeToNodeMeshEnabled * bool `json:"nodeToNodeMeshEnabled,omitempty " validate:"omitempty" confignamev1:"node_mesh"`
50
+ NodeToNodeMeshEnabled * bool `json:"nodeToNodeMeshEnabled" validate:"omitempty" confignamev1:"node_mesh"`
51
51
52
52
// ASNumber is the default AS number used by a node. [Default: 64512]
53
53
ASNumber int `json:"asNumber,omitempty" validate:"omitempty" confignamev1:"as_num"`
Original file line number Diff line number Diff line change @@ -265,6 +265,10 @@ func (w *Watcher) process() error {
265
265
}
266
266
}
267
267
268
+ if w .data .bgpConfs [0 ].Spec .NodeToNodeMeshEnabled == nil {
269
+ w .data .bgpConfs [0 ].Spec .NodeToNodeMeshEnabled = & bgpActive
270
+ }
271
+
268
272
if bgpActive {
269
273
if * w .data .bgpConfs [0 ].Spec .NodeToNodeMeshEnabled {
270
274
debugLogger .Info ("All BGPs are established" , "deleteMode" , w .data .deleteMode )
@@ -328,6 +332,10 @@ func (w *Watcher) deleteNodesASNs() error {
328
332
}
329
333
330
334
func (w * Watcher ) deleteProcess () error {
335
+ f := false
336
+ if w .data .bgpConfs [0 ].Spec .NodeToNodeMeshEnabled == nil {
337
+ w .data .bgpConfs [0 ].Spec .NodeToNodeMeshEnabled = & f
338
+ }
331
339
if ! * w .data .bgpConfs [0 ].Spec .NodeToNodeMeshEnabled {
332
340
if err := w .updateBGPConfMesh (true ); err != nil {
333
341
return err
@@ -416,7 +424,7 @@ func (w *Watcher) mainProcessing() error {
416
424
func (w * Watcher ) updateBGPConfMesh (enabled bool ) error {
417
425
if len (w .data .bgpConfs ) > 0 {
418
426
bgpConf := w .data .bgpConfs [0 ]
419
- bgpConf .Spec .NodeToNodeMeshEnabled = & enabled
427
+ * bgpConf .Spec .NodeToNodeMeshEnabled = enabled
420
428
return w .Calico .UpdateBGPConfiguration (bgpConf , w .restClient )
421
429
}
422
430
return fmt .Errorf ("BGPConfiguration is missing in calico" )
Original file line number Diff line number Diff line change @@ -15,12 +15,12 @@ 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.8.3
18
+ version : 0.8.4
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
- appVersion : v1.4.3
23
+ appVersion : v1.4.4
24
24
home : https://github.com/netrisai/netris-operator
25
25
icon : https://www.netris.ai/wp-content/uploads/2021/01/logo-300.png # [todo] Change url to permalink
26
26
keywords :
You can’t perform that action at this time.
0 commit comments