Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EKSClusterConfig ¶
func EKSClusterConfig(ctx context.Context, session aws.Config, iamOptions AwsIamOptions) (kubeConfig *clientrest.Config, err error)
EKSClusterConfig returns a rest config which uses aws iam credentials to authenticate to an EKS cluster
Types ¶
type AwsIamOptions ¶
type AwsIamOptions struct { Region string `json:"region" yaml:"region"` ClusterID string `json:"cluster-id" yaml:"cluster-id"` AssumeRoleARN string `json:"role-name" yaml:"role-name"` AssumeRoleExternalID string `json:"external-id" yaml:"external-id"` SessionName string `json:"session-name" yaml:"session-name"` ForwardSessionName bool `json:"forward-session" yaml:"forward-session"` Persist clientrest.AuthProviderConfigPersister `json:"-" yaml:"-"` }
Click to show internal directories.
Click to hide internal directories.