Skip to content

Commit

Permalink
Update EFA options to match enhancement
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelSpeed committed Jan 25, 2022
1 parent cda5afb commit 9ec7092
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
13 changes: 7 additions & 6 deletions machine/v1beta1/types_awsprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ type AWSMachineProviderConfig struct {
PublicIP *bool `json:"publicIp,omitempty"`
// NetworkInterfaceType specifies the type of network interface to be used for the primary
// network interface.
// Valid values are "interface", "efa", and omitted, which means no opinion and the platform
// Valid values are "ENA", "EFA", and omitted, which means no opinion and the platform
// chooses a good default which may change over time.
// The current default value is "interface".
// The current default value is "ENA".
// Please visit https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/efa.html to learn more
// about the AWS Elastic Fabric Adapter interface option.
// +kubebuilder:validation:Enum:="interface";"efa"
// +kubebuilder:validation:Enum:="ENA";"EFA"
// +optional
NetworkInterfaceType AWSNetworkInterfaceType `json:"networkInterfaceType,omitempty"`
// SecurityGroups is an array of references to security groups that should be applied to the
Expand Down Expand Up @@ -250,11 +250,12 @@ const (
type AWSNetworkInterfaceType string

const (
// AWSInterfaceNetworkInterfaceType is the default network interface type.
// AWSENANetworkInterfaceType is the default network interface type,
// the EC2 Elastic Network Adapter commonly used with EC2 instances.
// This should be used for standard network operations.
AWSInterfaceNetworkInterfaceType AWSNetworkInterfaceType = "interface"
AWSENANetworkInterfaceType AWSNetworkInterfaceType = "ENA"
// AWSEFANetworkInterfaceType is the Elastic Fabric Adapter network interface type.
AWSEFANetworkInterfaceType AWSNetworkInterfaceType = "efa"
AWSEFANetworkInterfaceType AWSNetworkInterfaceType = "EFA"
)

// AWSMachineProviderStatus is the type that will be embedded in a Machine.Status.ProviderStatus field.
Expand Down
2 changes: 1 addition & 1 deletion machine/v1beta1/zz_generated.swagger_doc_generated.go

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

0 comments on commit 9ec7092

Please sign in to comment.