Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 19 additions & 5 deletions api/core/v1alpha1/networkinterface_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,26 @@ type PCIAddress struct {
Function string `json:"function,omitempty"`
}

// TAPDevice is a TAP device.
type TAPDevice struct {
// Name is the name of the TAP device.
Name string `json:"name,omitempty"`
}

// NetworkInterfaceStatus defines the observed state of NetworkInterface.
type NetworkInterfaceStatus struct {
State NetworkInterfaceState `json:"state,omitempty"`
PCIAddress *PCIAddress `json:"pciAddress,omitempty"`
Prefixes []net.IPPrefix `json:"prefixes,omitempty"`
PublicIPs []net.IP `json:"publicIPs,omitempty"`
NATIPs []net.IP `json:"natIPs,omitempty"`
// State is the state of the network interface.
State NetworkInterfaceState `json:"state,omitempty"`
// PCIAddress is the PCI address of the network interface.
PCIAddress *PCIAddress `json:"pciAddress,omitempty"`
// TAPDevice is the TAP device of the network interface.
TAPDevice *TAPDevice `json:"tapDevice,omitempty"`
// Prefixes are the prefixes of the network interface.
Prefixes []net.IPPrefix `json:"prefixes,omitempty"`
// PublicIPs are the public IPs of the network interface.
PublicIPs []net.IP `json:"publicIPs,omitempty"`
// NATIPs are the NAT IPs of the network interface.
NATIPs []net.IP `json:"natIPs,omitempty"`
}

// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
Expand Down
21 changes: 21 additions & 0 deletions api/core/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 26 additions & 0 deletions client-go/applyconfigurations/core/v1alpha1/tapdevice.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions client-go/applyconfigurations/internal/internal.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions client-go/applyconfigurations/utils.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

49 changes: 41 additions & 8 deletions client-go/openapi/zz_generated.openapi.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

52 changes: 50 additions & 2 deletions docs/api-reference/core.md
Original file line number Diff line number Diff line change
Expand Up @@ -3647,6 +3647,7 @@ Can only be set if there is no matching IP family in PublicIPs.</p>
(<em>Appears on:</em><a href="#core.apinet.ironcore.dev/v1alpha1.NetworkInterface">NetworkInterface</a>)
</p>
<div>
<p>NetworkInterfaceStatus defines the observed state of NetworkInterface.</p>
</div>
<table>
<thead>
Expand All @@ -3666,6 +3667,7 @@ NetworkInterfaceState
</em>
</td>
<td>
<p>State is the state of the network interface.</p>
</td>
</tr>
<tr>
Expand All @@ -3678,6 +3680,20 @@ PCIAddress
</em>
</td>
<td>
<p>PCIAddress is the PCI address of the network interface.</p>
</td>
</tr>
<tr>
<td>
<code>tapDevice</code><br/>
<em>
<a href="#core.apinet.ironcore.dev/v1alpha1.TAPDevice">
TAPDevice
</a>
</em>
</td>
<td>
<p>TAPDevice is the TAP device of the network interface.</p>
</td>
</tr>
<tr>
Expand All @@ -3690,6 +3706,7 @@ PCIAddress
</em>
</td>
<td>
<p>Prefixes are the prefixes of the network interface.</p>
</td>
</tr>
<tr>
Expand All @@ -3702,6 +3719,7 @@ PCIAddress
</em>
</td>
<td>
<p>PublicIPs are the public IPs of the network interface.</p>
</td>
</tr>
<tr>
Expand All @@ -3714,6 +3732,7 @@ PCIAddress
</em>
</td>
<td>
<p>NATIPs are the NAT IPs of the network interface.</p>
</td>
</tr>
</tbody>
Expand Down Expand Up @@ -4198,8 +4217,8 @@ string
<td>
<code>peerings</code><br/>
<em>
<a href="#core.apinet.ironcore.dev/v1alpha1.[]ironcore-net/api/core/v1alpha1.NetworkPeeringStatus">
map[string][]ironcore-net/api/core/v1alpha1.NetworkPeeringStatus
<a href="#core.apinet.ironcore.dev/v1alpha1.[]./api/core/v1alpha1.NetworkPeeringStatus">
map[string][]./api/core/v1alpha1.NetworkPeeringStatus
</a>
</em>
</td>
Expand Down Expand Up @@ -4682,6 +4701,35 @@ github.com/ironcore-dev/ironcore-net/apimachinery/api/net.IPPrefix
</tr>
</tbody>
</table>
<h3 id="core.apinet.ironcore.dev/v1alpha1.TAPDevice">TAPDevice
</h3>
<p>
(<em>Appears on:</em><a href="#core.apinet.ironcore.dev/v1alpha1.NetworkInterfaceStatus">NetworkInterfaceStatus</a>)
</p>
<div>
<p>TAPDevice is a TAP device.</p>
</div>
<table>
<thead>
<tr>
<th>Field</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<code>name</code><br/>
<em>
string
</em>
</td>
<td>
<p>Name is the name of the TAP device.</p>
</td>
</tr>
</tbody>
</table>
<h3 id="core.apinet.ironcore.dev/v1alpha1.TargetNetworkInterface">TargetNetworkInterface
</h3>
<p>
Expand Down
Loading
Loading