Skip to content

Commit

Permalink
fix SpiderMultusConfig potential panic (#2225)
Browse files Browse the repository at this point in the history
Signed-off-by: Icarus9913 <[email protected]>
  • Loading branch information
Icarus9913 authored Aug 24, 2023
1 parent 05da851 commit 8fa4b81
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/multuscniconfig/multusconfig_informer.go
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,9 @@ func (mcc *MultusConfigController) syncHandler(ctx context.Context, multusConfig
func generateNetAttachDef(netAttachName string, multusConf *spiderpoolv2beta1.SpiderMultusConfig) (*netv1.NetworkAttachmentDefinition, error) {
multusConfSpec := multusConf.Spec.DeepCopy()
anno := multusConf.Annotations
if anno == nil {
anno = make(map[string]string)
}

var plugins []interface{}

Expand Down

0 comments on commit 8fa4b81

Please sign in to comment.