instanceprofile

package
v0.34.6 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetProfileName

func GetProfileName(ctx context.Context, region string, nodeClass *v1beta1.EC2NodeClass) string

GetProfileName gets the string for the profile name based on the cluster name and the NodeClass UUID. The length of this string can never exceed the maximum instance profile name limit of 128 characters.

Types

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

func NewProvider

func NewProvider(region string, iamapi iamiface.IAMAPI, cache *cache.Cache) *Provider

func (*Provider) Create

func (p *Provider) Create(ctx context.Context, nodeClass *v1beta1.EC2NodeClass) (string, error)

func (*Provider) Delete

func (p *Provider) Delete(ctx context.Context, nodeClass *v1beta1.EC2NodeClass) error

Jump to

Keyboard shortcuts

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