Documentation ¶
Overview ¶
Package eks implements EKS utils.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetClusterStatus ¶
func GetClusterStatus(out *aws_eks_v2.DescribeClusterOutput) (string, string, string)
Returns version, status, and health information.
func IsErrClusterDeleted ¶
Types ¶
type Cluster ¶
type Cluster struct { Name string `json:"name"` ARN string `json:"arn"` Region string `json:"region"` Version string `json:"version"` PlatformVersion string `json:"platform_version"` MothershipState string `json:"mothership_state"` Status string `json:"status"` Health string `json:"health"` CreatedAt time.Time `json:"created_at"` VPCID string `json:"vpc_id"` ClusterSGID string `json:"cluster_sg_id"` AttachedELBv2ARNs []string `json:"attached_elbv2_arns,omitempty"` Endpoint string `json:"endpoint"` CertificateAuthority string `json:"certificate_authority"` OIDCIssuer string `json:"oidc_issuer"` }
func GetCluster ¶
func (Cluster) KubeconfigWithAWSIAMAuthenticator ¶
func (c Cluster) KubeconfigWithAWSIAMAuthenticator(opts ...OpOption) (clientcmd_api_v1.Config, error)
type OpOption ¶
type OpOption func(*Op)
func WithClusterCAFile ¶
Set cluster CA file path to write.
func WithClusterName ¶
func WithKubeconfigFile ¶
Set kubeconfig file path to write.
func WithRoleARN ¶
func WithSessionName ¶
Click to show internal directories.
Click to hide internal directories.