types

package
v0.0.0-...-7b24307 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 7, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloudConfigToString

func CloudConfigToString(c *CloudConfig) (string, error)

Types

type CPUArchitecture

type CPUArchitecture string

CPUArchitecture defines processor architectures returned by the AWS API.

const (
	CPUArchitectureARM64  CPUArchitecture = "arm64"
	CPUArchitectureX86_64 CPUArchitecture = "x86_64"
	CPUArchitectureI386   CPUArchitecture = "i386"
)

type CloudConfig

type CloudConfig struct {
	Global GlobalOpts
}

type GlobalOpts

type GlobalOpts struct {
	Zone                        string
	VPC                         string
	SubnetID                    string
	RouteTableID                string
	RoleARN                     string
	KubernetesClusterTag        string
	KubernetesClusterID         string
	ElbSecurityGroup            string
	DisableSecurityGroupIngress bool
	// DisableStrictZoneCheck has been removed in Kubernetes 1.27+.
	// See https://github.com/kubernetes/cloud-provider-aws/pull/573 for more information.
	DisableStrictZoneCheck bool
	NodeIPFamilies         []string
}

type RawConfig

type RawConfig struct {
	AccessKeyID     providerconfigtypes.ConfigVarString `json:"accessKeyId,omitempty"`
	SecretAccessKey providerconfigtypes.ConfigVarString `json:"secretAccessKey,omitempty"`

	AssumeRoleARN        providerconfigtypes.ConfigVarString `json:"assumeRoleARN,omitempty"`
	AssumeRoleExternalID providerconfigtypes.ConfigVarString `json:"assumeRoleExternalID,omitempty"`

	Region             providerconfigtypes.ConfigVarString   `json:"region"`
	AvailabilityZone   providerconfigtypes.ConfigVarString   `json:"availabilityZone,omitempty"`
	VpcID              providerconfigtypes.ConfigVarString   `json:"vpcId"`
	SubnetID           providerconfigtypes.ConfigVarString   `json:"subnetId"`
	SecurityGroupIDs   []providerconfigtypes.ConfigVarString `json:"securityGroupIDs,omitempty"`
	InstanceProfile    providerconfigtypes.ConfigVarString   `json:"instanceProfile,omitempty"`
	InstanceType       providerconfigtypes.ConfigVarString   `json:"instanceType,omitempty"`
	AMI                providerconfigtypes.ConfigVarString   `json:"ami,omitempty"`
	DiskSize           int32                                 `json:"diskSize"`
	DiskType           providerconfigtypes.ConfigVarString   `json:"diskType,omitempty"`
	DiskIops           *int32                                `json:"diskIops,omitempty"`
	EBSVolumeEncrypted providerconfigtypes.ConfigVarBool     `json:"ebsVolumeEncrypted"`
	Tags               map[string]string                     `json:"tags,omitempty"`
	AssignPublicIP     *bool                                 `json:"assignPublicIP,omitempty"`

	IsSpotInstance     *bool               `json:"isSpotInstance,omitempty"`
	SpotInstanceConfig *SpotInstanceConfig `json:"spotInstanceConfig,omitempty"`
}

func GetConfig

func GetConfig(pconfig providerconfigtypes.Config) (*RawConfig, error)

type SpotInstanceConfig

type SpotInstanceConfig struct {
	MaxPrice             providerconfigtypes.ConfigVarString `json:"maxPrice,omitempty"`
	PersistentRequest    providerconfigtypes.ConfigVarBool   `json:"persistentRequest,omitempty"`
	InterruptionBehavior providerconfigtypes.ConfigVarString `json:"interruptionBehavior,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL