Skip to content
This repository was archived by the owner on Mar 27, 2026. It is now read-only.

Commit c164c7e

Browse files
committed
Galactic CNI is now using host-device internally
1 parent 1780c5a commit c164c7e

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

internal/cniconfig/cniconfig.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,6 @@ type Termination struct {
2828
Via string `json:"via,omitempty"`
2929
}
3030

31-
type PluginConfHostDevice struct {
32-
Type string `json:"type"`
33-
Device string `json:"device"`
34-
IPAM IPAM `json:"ipam,omitempty"`
35-
}
36-
3731
type IPAM struct {
3832
Type string `json:"type"`
3933
Routes []Route `json:"routes,omitempty"`
@@ -112,10 +106,6 @@ func CNIConfigForVPCAttachment(vpc galacticv1alpha.VPC, vpcAttachment galacticv1
112106
VPCAttachment: vpcAttachmentIdentifierBase62,
113107
MTU: 1300,
114108
Terminations: terminations,
115-
},
116-
PluginConfHostDevice{
117-
Type: "host-device",
118-
Device: fmt.Sprintf("G%09s%03sG", vpcIdentifierBase62, vpcAttachmentIdentifierBase62),
119109
IPAM: IPAM{
120110
Type: "static",
121111
Addresses: addresses,

internal/cniconfig/cniconfig_test.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,6 @@ func TestCNIConfigForVPCAttachment(t *testing.T) {
2727
{Network: "192.168.1.0/24", Via: "10.1.1.1"},
2828
{Network: "2001:1::/64", Via: "2001:10:1:1::1"},
2929
},
30-
},
31-
cniconfig.PluginConfHostDevice{
32-
Type: "host-device",
33-
Device: "G1hVwxnaA7h31G",
3430
IPAM: cniconfig.IPAM{
3531
Type: "static",
3632
Addresses: []cniconfig.Address{

0 commit comments

Comments
 (0)