Skip to content

Commit c5d328a

Browse files
sindhusri16Peizhao Li
and
Peizhao Li
authored
Fix: Add IPFamilies support for NPN CR (#409)
Co-authored-by: Peizhao Li <[email protected]>
1 parent 2b9dead commit c5d328a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cloud/scope/native_pod_network_reconciler.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ func (m *MachineScope) GetOrCreateNpn(ctx context.Context) (*unstructured.Unstru
145145
podSubnetIds := m.OCIMachine.Spec.PodSubnetIds
146146
podNsgIds := m.OCIMachine.Spec.PodNSGIds
147147
npnCrCreate := &unstructured.Unstructured{}
148+
ipFamilies := []string{"IPv4"}
148149
npnCrCreate.Object = map[string]interface{}{
149150
"metadata": map[string]interface{}{
150151
"name": instanceSuffix,
@@ -154,6 +155,7 @@ func (m *MachineScope) GetOrCreateNpn(ctx context.Context) (*unstructured.Unstru
154155
"maxPodCount": maxPodCount,
155156
"podSubnetIds": podSubnetIds,
156157
"networkSecurityGroupIds": podNsgIds,
158+
"ipFamilies": ipFamilies,
157159
},
158160
}
159161

0 commit comments

Comments
 (0)