Documentation
¶
Index ¶
- func GetEC2ServicePrincipal(partition string) string
- func GetPartitionDNSSuffix(partition string) string
- func GetPartitionFromConfig(ctx context.Context, cfg aws.Config) (string, error)
- func GetPartitionFromRegionFallback(region string) string
- func GetServiceEndpointForPartition(service, region, partition string) string
- func ParsePartitionFromARN(arn string) (string, error)
- type Artifact
- type Config
- type EksPatchRelease
- type IamRolesAnywhereRelease
- type Manifest
- type RegionConfig
- type RegionData
- type Source
- func (as Source) GetCniPlugins(ctx context.Context) (artifact.Source, error)
- func (as Source) GetIAMAuthenticator(ctx context.Context) (artifact.Source, error)
- func (as Source) GetImageCredentialProvider(ctx context.Context) (artifact.Source, error)
- func (as Source) GetKubectl(ctx context.Context) (artifact.Source, error)
- func (as Source) GetKubelet(ctx context.Context) (artifact.Source, error)
- func (as Source) GetSigningHelper(ctx context.Context) (artifact.Source, error)
- type SsmRelease
- type SupportedEksRelease
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEC2ServicePrincipal ¶ added in v1.0.18
GetEC2ServicePrincipal returns the correct EC2 service principal for a partition. AWS China (aws-cn) uses ec2.amazonaws.com.cn All other partitions use ec2.amazonaws.com
func GetPartitionDNSSuffix ¶ added in v1.0.18
GetPartitionDNSSuffix returns the DNS suffix for a given partition
func GetPartitionFromConfig ¶ added in v1.0.18
GetPartitionFromConfig determines the AWS partition from the AWS config by calling STS GetCallerIdentity and parsing the ARN
func GetPartitionFromRegionFallback ¶ added in v1.0.18
GetPartitionFromRegionFallback determines the AWS partition based on the region prefix This is used as a fallback when partition info is not in the manifest
func GetServiceEndpointForPartition ¶ added in v1.0.18
GetServiceEndpointForPartition constructs service endpoints for different partitions
func ParsePartitionFromARN ¶ added in v1.0.18
ParsePartitionFromARN extracts the partition from an ARN string ARN format: arn:partition:service:region:account-id:resource
Types ¶
type EksPatchRelease ¶
type IamRolesAnywhereRelease ¶
type Manifest ¶
type Manifest struct {
SupportedEksReleases []SupportedEksRelease `json:"supported_eks_releases"`
IamRolesAnywhereReleases []IamRolesAnywhereRelease `json:"iam_roles_anywhere_releases"`
SsmReleases []SsmRelease `json:"ssm_releases"`
RegionConfig RegionConfig `json:"region_config"`
}
type RegionConfig ¶ added in v1.0.9
type RegionConfig map[string]RegionData
RegionConfig represents the structure of the manifest file
type RegionData ¶ added in v1.0.9
type RegionData struct {
EcrAccountID string `json:"ecr_account_id"`
Partition string `json:"partition"`
DnsSuffix string `json:"dns_suffix"`
CredProviders map[string]bool `json:"cred_providers"`
}
RegionData represents data for a specific region
func GetRegionConfig ¶ added in v1.0.9
func GetRegionConfig(ctx context.Context, region string) (*RegionData, error)
func GetRegionConfigFromManifest ¶ added in v1.0.17
func GetRegionConfigFromManifest(ctx context.Context, region, manifestURI string) (*RegionData, error)
type Source ¶
type Source struct {
Eks EksPatchRelease
Iam IamRolesAnywhereRelease
RegionInfo RegionData
}
Source defines a single version source for aws provided artifacts
func GetLatestSource ¶
GetLatestSource gets the source for latest version of aws provided artifacts from the hybrid nodes CDN manifest https://hybrid-assets.eks.amazonaws.com/manifest.yaml
func GetLatestSourceFromManifest ¶ added in v1.0.16
func GetLatestSourceFromManifest(ctx context.Context, eksVersion, region, manifestURI string) (Source, error)
GetLatestSourceFromManifest gets the source for latest version of aws provided artifacts from a manifest URI (supports file:// and https:// protocols)
func (Source) GetCniPlugins ¶
GetCniPlugins satisfies cniplugins.Source
func (Source) GetIAMAuthenticator ¶
GetIAMAuthenticator satisfies iamrolesanywhere.IAMAuthenticatorSource.
func (Source) GetImageCredentialProvider ¶
GetImageCredentialProvider satisfies imagecredentialprovider.Source.
func (Source) GetKubectl ¶
GetKubectl satisfies kubectl.Source.
func (Source) GetKubelet ¶
GetKubelet satisfies kubelet.Source.
type SsmRelease ¶
type SupportedEksRelease ¶
type SupportedEksRelease struct {
MajorMinorVersion string `json:"major_minor_version"`
LatestPatchVersion string `json:"latest_patch_version"`
PatchReleases []EksPatchRelease `json:"patch_releases"`
}