Documentation ¶
Index ¶
- Variables
- func DescribeInstanceByID(service *ec2Wrapper, id string) (*ec2.Instance, error)
- func GetMetadataInstance() (*ec2metadata.EC2Metadata, error)
- func GetMetadataWithTimeoutAndBackoff(metadata *ec2metadata.EC2Metadata, path string) (string, error)
- func GetUserDataWithTimeoutAndBackoff(metadata *ec2metadata.EC2Metadata) (string, error)
- func NewClient(k8sSecretName, k8sSecretNamespace string) (cloudops.Ops, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrAWSEnvNotAvailable is the error type when aws credentials are not set ErrAWSEnvNotAvailable = fmt.Errorf("aws credentials are not set in environment") )
View Source
var RatelimitingExponentialBackoff = wait.Backoff{ Duration: 2 * time.Second, Factor: 2.0, Jitter: 1.0, Steps: 5, }
RatelimitingExponentialBackoff will lead to a backoff of a max of around 2 minutes. TestScale unit tests was used to come up with this empherical number.
Functions ¶
func DescribeInstanceByID ¶
DescribeInstanceByID describes the given instance by instance ID
func GetMetadataInstance ¶
func GetMetadataInstance() (*ec2metadata.EC2Metadata, error)
GetMetadataInstance is the function to be called when trying to get metadata/user data on eks.
func GetMetadataWithTimeoutAndBackoff ¶
func GetMetadataWithTimeoutAndBackoff(metadata *ec2metadata.EC2Metadata, path string) (string, error)
GetMetadataWithTimeoutAndBackoff will get metadata with exponential backoff.
func GetUserDataWithTimeoutAndBackoff ¶
func GetUserDataWithTimeoutAndBackoff(metadata *ec2metadata.EC2Metadata) (string, error)
GetUserDataWithTimeoutAndBackoff will get user data with exponential backoff.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.