config

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

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:"-"`
}

Jump to

Keyboard shortcuts

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