Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IPAMConfig ¶ added in v1.7.0
type IPAMConfig struct {
Type string `json:"type"`
// IP ranges for NodeIPAM. Can include both v4 and v6 ranges.
Ranges []RangeSet `json:"ranges,omitempty"`
// Routes, Addresses, and DNS are copied from static IPAM
// (https://www.cni.dev/plugins/current/ipam/static).
Routes []*cnitypes.Route `json:"routes,omitempty"`
Addresses []Address `json:"addresses,omitempty"`
DNS cnitypes.DNS `json:"dns,omitempty"`
// Antrea IPPool names for Antrea IPAM.
IPPools []string `json:"ippools,omitempty"`
}
type K8sArgs ¶
type K8sArgs struct {
cnitypes.CommonArgs
K8S_POD_NAME cnitypes.UnmarshallableString
K8S_POD_NAMESPACE cnitypes.UnmarshallableString
K8S_POD_INFRA_CONTAINER_ID cnitypes.UnmarshallableString
}
type NetworkConfig ¶ added in v1.7.0
type NetworkConfig struct {
CNIVersion string `json:"cniVersion"`
Name string `json:"name"`
Type string `json:"type"`
DeviceID string `json:"deviceID,omitempty"` // PCI address of a VF
MTU int `json:"mtu,omitempty"`
DNS cnitypes.DNS `json:"dns,omitempty"`
IPAM *IPAMConfig `json:"ipam,omitempty"`
// Options to be passed in by the runtime.
RuntimeConfig RuntimeConfig `json:"runtimeConfig,omitempty"`
RawPrevResult map[string]interface{} `json:"prevResult,omitempty"`
PrevResult cnitypes.Result `json:"-"`
}
type RuntimeConfig ¶ added in v1.7.0
type RuntimeConfig struct {
DNS RuntimeDNS `json:"dns"`
}
type RuntimeDNS ¶ added in v1.7.0
Click to show internal directories.
Click to hide internal directories.