File tree Expand file tree Collapse file tree 3 files changed +12
-4
lines changed
deploy/charts/netris-operator Expand file tree Collapse file tree 3 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ type BGPConfigurationSpec struct {
4747 // LogSeverityScreen string `json:"logSeverityScreen,omitempty" validate:"omitempty,logLevel" confignamev1:"loglevel"`
4848
4949 // 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"`
5151
5252 // ASNumber is the default AS number used by a node. [Default: 64512]
5353 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 {
265265 }
266266 }
267267
268+ if w .data .bgpConfs [0 ].Spec .NodeToNodeMeshEnabled == nil {
269+ w .data .bgpConfs [0 ].Spec .NodeToNodeMeshEnabled = & bgpActive
270+ }
271+
268272 if bgpActive {
269273 if * w .data .bgpConfs [0 ].Spec .NodeToNodeMeshEnabled {
270274 debugLogger .Info ("All BGPs are established" , "deleteMode" , w .data .deleteMode )
@@ -328,6 +332,10 @@ func (w *Watcher) deleteNodesASNs() error {
328332}
329333
330334func (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+ }
331339 if ! * w .data .bgpConfs [0 ].Spec .NodeToNodeMeshEnabled {
332340 if err := w .updateBGPConfMesh (true ); err != nil {
333341 return err
@@ -416,7 +424,7 @@ func (w *Watcher) mainProcessing() error {
416424func (w * Watcher ) updateBGPConfMesh (enabled bool ) error {
417425 if len (w .data .bgpConfs ) > 0 {
418426 bgpConf := w .data .bgpConfs [0 ]
419- bgpConf .Spec .NodeToNodeMeshEnabled = & enabled
427+ * bgpConf .Spec .NodeToNodeMeshEnabled = enabled
420428 return w .Calico .UpdateBGPConfiguration (bgpConf , w .restClient )
421429 }
422430 return fmt .Errorf ("BGPConfiguration is missing in calico" )
Original file line number Diff line number Diff line change @@ -15,12 +15,12 @@ type: application
1515# This is the chart version. This version number should be incremented each time you make changes
1616# to the chart and its templates, including the app version.
1717# Versions are expected to follow Semantic Versioning (https://semver.org/)
18- version : 0.8.3
18+ version : 0.8.4
1919
2020# This is the version number of the application being deployed. This version number should be
2121# incremented each time you make changes to the application. Versions are not expected to
2222# follow Semantic Versioning. They should reflect the version the application is using.
23- appVersion : v1.4.3
23+ appVersion : v1.4.4
2424home : https://github.com/netrisai/netris-operator
2525icon : https://www.netris.ai/wp-content/uploads/2021/01/logo-300.png # [todo] Change url to permalink
2626keywords :
You can’t perform that action at this time.
0 commit comments