Skip to content

Commit f816b00

Browse files
committed
fix
1 parent 74e8973 commit f816b00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nodeup/pkg/model/context.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ func (c *NodeupModelContext) UseNodeAuthorizer() bool {
280280

281281
// UsesSecondaryIP checks if the CNI in use attaches secondary interfaces to the host.
282282
func (c *NodeupModelContext) UsesSecondaryIP() bool {
283-
if c.Cluster.Spec.Networking.CNI.UsesSecondaryIP || c.Cluster.Spec.Networking.AmazonVPC != nil {
283+
if (c.Cluster.Spec.Networking.CNI != nil && c.Cluster.Spec.Networking.CNI.UsesSecondaryIP) || c.Cluster.Spec.Networking.AmazonVPC != nil {
284284
return true
285285
}
286286

0 commit comments

Comments
 (0)