Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // SchemeBuilder initializes a scheme builder SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) // AddToScheme is a global function that registers this API group & version to a scheme AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: "networking.k8s.aws", Version: "v1alpha1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type ENIAttachment ¶
type ENIAttachment struct {
// NodeID is the ID of the node
NodeID string `json:"nodeID"`
// InstanceID is the EC2 instance ID
InstanceID string `json:"instanceID"`
// ENIID is the ID of the attached ENI
ENIID string `json:"eniID"`
// AttachmentID is the ID of the ENI attachment
AttachmentID string `json:"attachmentID"`
// Status is the status of the attachment
Status string `json:"status"`
// LastUpdated is the timestamp of the last update
LastUpdated metav1.Time `json:"lastUpdated"`
}
ENIAttachment represents an ENI attachment to a node
func (*ENIAttachment) DeepCopy ¶
func (in *ENIAttachment) DeepCopy() *ENIAttachment
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ENIAttachment.
func (*ENIAttachment) DeepCopyInto ¶
func (in *ENIAttachment) DeepCopyInto(out *ENIAttachment)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NodeENI ¶
type NodeENI struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec NodeENISpec `json:"spec"`
Status NodeENIStatus `json:"status,omitempty"`
}
NodeENI is a specification for a NodeENI resource
func (*NodeENI) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeENI.
func (*NodeENI) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NodeENI) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NodeENIList ¶
type NodeENIList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata"`
Items []NodeENI `json:"items"`
}
NodeENIList is a list of NodeENI resources
func (*NodeENIList) DeepCopy ¶
func (in *NodeENIList) DeepCopy() *NodeENIList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeENIList.
func (*NodeENIList) DeepCopyInto ¶
func (in *NodeENIList) DeepCopyInto(out *NodeENIList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NodeENIList) DeepCopyObject ¶
func (in *NodeENIList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NodeENISpec ¶
type NodeENISpec struct {
// NodeSelector selects nodes that should have ENIs attached
NodeSelector map[string]string `json:"nodeSelector"`
// SubnetID is the AWS Subnet ID where the ENI should be created
// +optional
SubnetID string `json:"subnetID,omitempty"`
// SubnetName is the AWS Subnet Name where the ENI should be created
// If SubnetID is not provided, SubnetName will be used to look up the subnet
// +optional
SubnetName string `json:"subnetName,omitempty"`
// SecurityGroupIDs are the AWS Security Group IDs to attach to the ENI
SecurityGroupIDs []string `json:"securityGroupIDs"`
// DeviceIndex is the device index for the ENI (default: 1)
// +optional
DeviceIndex int `json:"deviceIndex,omitempty"`
// DeleteOnTermination indicates whether to delete the ENI when the node is terminated
// +optional
DeleteOnTermination bool `json:"deleteOnTermination,omitempty"`
// Description is a description for the ENI
// +optional
Description string `json:"description,omitempty"`
}
NodeENISpec is the spec for a NodeENI resource
func (*NodeENISpec) DeepCopy ¶
func (in *NodeENISpec) DeepCopy() *NodeENISpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeENISpec.
func (*NodeENISpec) DeepCopyInto ¶
func (in *NodeENISpec) DeepCopyInto(out *NodeENISpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NodeENIStatus ¶
type NodeENIStatus struct {
// Attachments is a list of ENI attachments
// +optional
Attachments []ENIAttachment `json:"attachments,omitempty"`
}
NodeENIStatus is the status for a NodeENI resource
func (*NodeENIStatus) DeepCopy ¶
func (in *NodeENIStatus) DeepCopy() *NodeENIStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeENIStatus.
func (*NodeENIStatus) DeepCopyInto ¶
func (in *NodeENIStatus) DeepCopyInto(out *NodeENIStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.