eks

package
v0.27.1 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2022 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePatch added in v0.11.0

CreatePatch creates a *v1beta1.ClusterParameters that has only the changed values between the target *v1beta1.ClusterParameters and the current *ekstypes.Cluster.

func GenerateAssociateIdentityProviderConfigInput added in v0.21.0

func GenerateAssociateIdentityProviderConfigInput(name string, p *manualv1alpha1.IdentityProviderConfigParameters) *eks.AssociateIdentityProviderConfigInput

GenerateAssociateIdentityProviderConfigInput from IdentityProviderConfigParameters

func GenerateCreateClusterInput added in v0.11.0

func GenerateCreateClusterInput(name string, p *v1beta1.ClusterParameters) *eks.CreateClusterInput

GenerateCreateClusterInput from ClusterParameters.

func GenerateCreateFargateProfileInput added in v0.16.0

func GenerateCreateFargateProfileInput(name string, p v1beta1.FargateProfileParameters) *eks.CreateFargateProfileInput

GenerateCreateFargateProfileInput from FargateProfileInputParameters.

func GenerateCreateNodeGroupInput added in v0.11.0

func GenerateCreateNodeGroupInput(name string, p *manualv1alpha1.NodeGroupParameters) *eks.CreateNodegroupInput

GenerateCreateNodeGroupInput from NodeGroupParameters.

func GenerateDisassociateIdentityProviderConfigInput added in v0.21.0

func GenerateDisassociateIdentityProviderConfigInput(name string, clusterName string) *eks.DisassociateIdentityProviderConfigInput

GenerateDisassociateIdentityProviderConfigInput from IdentityProviderConfigParameters

func GenerateFargateProfileObservation added in v0.16.0

func GenerateFargateProfileObservation(fp *ekstypes.FargateProfile) v1beta1.FargateProfileObservation

GenerateFargateProfileObservation is used to produce FargateProfileObservation from eks.FargateProfile.

func GenerateIdentityProviderConfigObservation added in v0.21.0

func GenerateIdentityProviderConfigObservation(ip *types.IdentityProviderConfigResponse) manualv1alpha1.IdentityProviderConfigObservation

GenerateIdentityProviderConfigObservation is used to produce manualv1alpha1.IdentityProviderConfigObservation from eks.IdentityProviderConfigResponse.

func GenerateNodeGroupObservation added in v0.11.0

func GenerateNodeGroupObservation(ng *ekstypes.Nodegroup) manualv1alpha1.NodeGroupObservation

GenerateNodeGroupObservation is used to produce manualv1alpha1.NodeGroupObservation from eks.Nodegroup.

func GenerateObservation added in v0.11.0

func GenerateObservation(cluster *ekstypes.Cluster) v1beta1.ClusterObservation

GenerateObservation is used to produce v1beta1.ClusterObservation from ekstypes.Cluster.

func GenerateUpdateClusterConfigInput added in v0.11.0

func GenerateUpdateClusterConfigInput(name string, p *v1beta1.ClusterParameters) *eks.UpdateClusterConfigInput

GenerateUpdateClusterConfigInput from ClusterParameters.

func GenerateUpdateNodeGroupConfigInput added in v0.11.0

func GenerateUpdateNodeGroupConfigInput(name string, p *manualv1alpha1.NodeGroupParameters, ng *ekstypes.Nodegroup) *eks.UpdateNodegroupConfigInput

GenerateUpdateNodeGroupConfigInput from NodeGroupParameters.

func GetConnectionDetails added in v0.11.0

func GetConnectionDetails(ctx context.Context, cluster *ekstypes.Cluster, stsClient STSClient) managed.ConnectionDetails

GetConnectionDetails extracts managed.ConnectionDetails out of ekstypes.Cluster.

func IsErrorInUse added in v0.11.0

func IsErrorInUse(err error) bool

IsErrorInUse helper function to test for eResourceInUseException error.

func IsErrorInvalidRequest added in v0.11.0

func IsErrorInvalidRequest(err error) bool

IsErrorInvalidRequest helper function to test for InvalidRequestException error.

func IsErrorNotFound

func IsErrorNotFound(err error) bool

IsErrorNotFound helper function to test for ResourceNotFoundException error.

func IsFargateProfileUpToDate added in v0.16.0

func IsFargateProfileUpToDate(p v1beta1.FargateProfileParameters, fp *ekstypes.FargateProfile) bool

IsFargateProfileUpToDate checks whether there is a change in the tags. Any other field is immutable and can't be updated.

func IsIdentityProviderConfigUpToDate added in v0.21.0

IsIdentityProviderConfigUpToDate checks whether there is a change in the tags. Any other field is immutable and can't be updated.

func IsNodeGroupUpToDate added in v0.11.0

func IsNodeGroupUpToDate(p *manualv1alpha1.NodeGroupParameters, ng *ekstypes.Nodegroup) bool

IsNodeGroupUpToDate checks whether there is a change in any of the modifiable fields.

func IsUpToDate added in v0.11.0

func IsUpToDate(p *v1beta1.ClusterParameters, cluster *ekstypes.Cluster) (bool, error)

IsUpToDate checks whether there is a change in any of the modifiable fields.

func LateInitialize added in v0.11.0

func LateInitialize(in *v1beta1.ClusterParameters, cluster *ekstypes.Cluster)

LateInitialize fills the empty fields in *v1beta1.ClusterParameters with the values seen in ekstypes.Cluster.

func LateInitializeFargateProfile added in v0.16.0

func LateInitializeFargateProfile(in *v1beta1.FargateProfileParameters, fp *ekstypes.FargateProfile)

LateInitializeFargateProfile fills the empty fields in *FargateProfileParameters with the values seen in eks.FargateProfile.

func LateInitializeIdentityProviderConfig added in v0.21.0

func LateInitializeIdentityProviderConfig(in *manualv1alpha1.IdentityProviderConfigParameters, ip *types.IdentityProviderConfigResponse)

LateInitializeIdentityProviderConfig fills the empty fields in *manualv1alpha1.IdentityProviderConfigParameters with the values seen in eks.IdentityProviderConfigResponse.

func LateInitializeNodeGroup added in v0.11.0

func LateInitializeNodeGroup(in *manualv1alpha1.NodeGroupParameters, ng *ekstypes.Nodegroup)

LateInitializeNodeGroup fills the empty fields in *manualv1alpha1.NodeGroupParameters with the values seen in eks.Nodegroup.

Types

type Client

type Client interface {
	CreateCluster(ctx context.Context, input *eks.CreateClusterInput, opts ...func(*eks.Options)) (*eks.CreateClusterOutput, error)
	DescribeCluster(ctx context.Context, input *eks.DescribeClusterInput, opts ...func(*eks.Options)) (*eks.DescribeClusterOutput, error)
	UpdateClusterConfig(ctx context.Context, input *eks.UpdateClusterConfigInput, opts ...func(*eks.Options)) (*eks.UpdateClusterConfigOutput, error)
	DeleteCluster(ctx context.Context, input *eks.DeleteClusterInput, opts ...func(*eks.Options)) (*eks.DeleteClusterOutput, error)
	TagResource(ctx context.Context, input *eks.TagResourceInput, opts ...func(*eks.Options)) (*eks.TagResourceOutput, error)
	UntagResource(ctx context.Context, input *eks.UntagResourceInput, opts ...func(*eks.Options)) (*eks.UntagResourceOutput, error)
	UpdateClusterVersion(ctx context.Context, input *eks.UpdateClusterVersionInput, opts ...func(*eks.Options)) (*eks.UpdateClusterVersionOutput, error)

	DescribeNodegroup(ctx context.Context, input *eks.DescribeNodegroupInput, opts ...func(*eks.Options)) (*eks.DescribeNodegroupOutput, error)
	CreateNodegroup(ctx context.Context, input *eks.CreateNodegroupInput, opts ...func(*eks.Options)) (*eks.CreateNodegroupOutput, error)
	UpdateNodegroupVersion(ctx context.Context, input *eks.UpdateNodegroupVersionInput, opts ...func(*eks.Options)) (*eks.UpdateNodegroupVersionOutput, error)
	UpdateNodegroupConfig(ctx context.Context, input *eks.UpdateNodegroupConfigInput, opts ...func(*eks.Options)) (*eks.UpdateNodegroupConfigOutput, error)
	DeleteNodegroup(ctx context.Context, input *eks.DeleteNodegroupInput, opts ...func(*eks.Options)) (*eks.DeleteNodegroupOutput, error)

	DescribeFargateProfile(ctx context.Context, input *eks.DescribeFargateProfileInput, opts ...func(*eks.Options)) (*eks.DescribeFargateProfileOutput, error)
	CreateFargateProfile(ctx context.Context, input *eks.CreateFargateProfileInput, opts ...func(*eks.Options)) (*eks.CreateFargateProfileOutput, error)
	DeleteFargateProfile(ctx context.Context, input *eks.DeleteFargateProfileInput, opts ...func(*eks.Options)) (*eks.DeleteFargateProfileOutput, error)

	DescribeIdentityProviderConfig(ctx context.Context, input *eks.DescribeIdentityProviderConfigInput, opts ...func(*eks.Options)) (*eks.DescribeIdentityProviderConfigOutput, error)
	AssociateIdentityProviderConfig(ctx context.Context, input *eks.AssociateIdentityProviderConfigInput, opts ...func(*eks.Options)) (*eks.AssociateIdentityProviderConfigOutput, error)
	DisassociateIdentityProviderConfig(ctx context.Context, input *eks.DisassociateIdentityProviderConfigInput, opts ...func(*eks.Options)) (*eks.DisassociateIdentityProviderConfigOutput, error)
}

Client defines EKS Client operations

func NewEKSClient added in v0.12.0

func NewEKSClient(cfg aws.Config) Client

NewEKSClient creates new EKS Client with provided AWS Configurations/Credentials.

type STSClient added in v0.11.0

type STSClient interface {
	PresignGetCallerIdentity(ctx context.Context, input *sts.GetCallerIdentityInput, opts ...func(*sts.PresignOptions)) (*v4.PresignedHTTPRequest, error)
}

STSClient STS presigner

func NewSTSClient added in v0.12.0

func NewSTSClient(cfg aws.Config) STSClient

NewSTSClient creates a new STS Client.

Directories

Path Synopsis
eksiface
Package eksiface is a generated GoMock package.
Package eksiface is a generated GoMock package.

Jump to

Keyboard shortcuts

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