Documentation ¶
Index ¶
- Constants
- func CheckEBSAddon(ctx context.Context, clusterName string, ...) (string, error)
- func CreateCluster(ctx context.Context, opts *CreateClusterOptions) error
- func CreateLaunchTemplate(ctx context.Context, opts *CreateLaunchTemplateOptions) error
- func CreateNewLaunchTemplateVersion(ctx context.Context, ec2Service services.EC2ServiceInterface, ...) (*eksv1.LaunchTemplate, error)
- func CreateNodeGroup(ctx context.Context, opts *CreateNodeGroupOptions) (string, string, error)
- func CreateStack(ctx context.Context, opts *CreateStackOptions) (*cloudformation.DescribeStacksOutput, error)
- func DeleteLaunchTemplateVersions(ctx context.Context, ec2Service services.EC2ServiceInterface, ...)
- func EnableEBSCSIDriver(ctx context.Context, opts *EnableEBSCSIDriverInput) error
- func GetClusterState(ctx context.Context, opts *GetClusterStatusOpts) (*eks.DescribeClusterOutput, error)
- func GetLaunchTemplateVersions(ctx context.Context, opts *GetLaunchTemplateVersionsOpts) (*ec2.DescribeLaunchTemplateVersionsOutput, error)
- func UpdateClusterAccess(ctx context.Context, opts *UpdateClusterAccessOpts) (bool, error)
- func UpdateClusterLoggingTypes(ctx context.Context, opts *UpdateLoggingTypesOpts) (bool, error)
- func UpdateClusterPublicAccessSources(ctx context.Context, opts *UpdateClusterPublicAccessSourcesOpts) (bool, error)
- func UpdateClusterVersion(ctx context.Context, opts *UpdateClusterVersionOpts) (bool, error)
- func UpdateNodegroupVersion(ctx context.Context, opts *UpdateNodegroupVersionOpts) error
- func UpdateResourceTags(ctx context.Context, opts *UpdateResourceTagsOpts) (bool, error)
- type CreateClusterOptions
- type CreateLaunchTemplateOptions
- type CreateNodeGroupOptions
- type CreateStackOptions
- type EnableEBSCSIDriverInput
- type GetClusterStatusOpts
- type GetLaunchTemplateVersionsOpts
- type UpdateClusterAccessOpts
- type UpdateClusterPublicAccessSourcesOpts
- type UpdateClusterVersionOpts
- type UpdateLoggingTypesOpts
- type UpdateNodegroupVersionOpts
- type UpdateResourceTagsOpts
Constants ¶
View Source
const (
LaunchTemplateNameFormat = "rancher-managed-lt-%s"
)
Variables ¶
This section is empty.
Functions ¶
func CheckEBSAddon ¶ added in v1.2.2
func CheckEBSAddon(ctx context.Context, clusterName string, eksService services.EKSServiceInterface) (string, error)
CheckEBSAddon checks if the EBS CSI driver add-on is installed. If it is, it will return the ARN of the add-on. If it is not, it will return an empty string. Otherwise, it will return an error
func CreateCluster ¶
func CreateCluster(ctx context.Context, opts *CreateClusterOptions) error
func CreateLaunchTemplate ¶
func CreateLaunchTemplate(ctx context.Context, opts *CreateLaunchTemplateOptions) error
func CreateNewLaunchTemplateVersion ¶
func CreateNewLaunchTemplateVersion(ctx context.Context, ec2Service services.EC2ServiceInterface, launchTemplateID string, group eksv1.NodeGroup) (*eksv1.LaunchTemplate, error)
func CreateNodeGroup ¶
func CreateStack ¶
func CreateStack(ctx context.Context, opts *CreateStackOptions) (*cloudformation.DescribeStacksOutput, error)
func EnableEBSCSIDriver ¶ added in v1.2.2
func EnableEBSCSIDriver(ctx context.Context, opts *EnableEBSCSIDriverInput) error
EnableEBSCSIDriver manages the installation of the EBS CSI driver for EKS, including the creation of the OIDC Provider, the IAM role and the validation and installation of the EKS add-on
func GetClusterState ¶ added in v1.2.2
func GetClusterState(ctx context.Context, opts *GetClusterStatusOpts) (*eks.DescribeClusterOutput, error)
func GetLaunchTemplateVersions ¶ added in v1.2.2
func GetLaunchTemplateVersions(ctx context.Context, opts *GetLaunchTemplateVersionsOpts) (*ec2.DescribeLaunchTemplateVersionsOutput, error)
func UpdateClusterAccess ¶ added in v1.2.2
func UpdateClusterAccess(ctx context.Context, opts *UpdateClusterAccessOpts) (bool, error)
func UpdateClusterLoggingTypes ¶ added in v1.2.2
func UpdateClusterLoggingTypes(ctx context.Context, opts *UpdateLoggingTypesOpts) (bool, error)
func UpdateClusterPublicAccessSources ¶ added in v1.2.2
func UpdateClusterPublicAccessSources(ctx context.Context, opts *UpdateClusterPublicAccessSourcesOpts) (bool, error)
func UpdateClusterVersion ¶ added in v1.2.2
func UpdateClusterVersion(ctx context.Context, opts *UpdateClusterVersionOpts) (bool, error)
func UpdateNodegroupVersion ¶ added in v1.2.2
func UpdateNodegroupVersion(ctx context.Context, opts *UpdateNodegroupVersionOpts) error
func UpdateResourceTags ¶ added in v1.2.2
func UpdateResourceTags(ctx context.Context, opts *UpdateResourceTagsOpts) (bool, error)
Types ¶
type CreateClusterOptions ¶
type CreateClusterOptions struct { EKSService services.EKSServiceInterface Config *eksv1.EKSClusterConfig RoleARN string }
type CreateLaunchTemplateOptions ¶
type CreateLaunchTemplateOptions struct { EC2Service services.EC2ServiceInterface Config *eksv1.EKSClusterConfig }
type CreateNodeGroupOptions ¶
type CreateNodeGroupOptions struct { EC2Service services.EC2ServiceInterface CloudFormationService services.CloudFormationServiceInterface EKSService services.EKSServiceInterface Config *eksv1.EKSClusterConfig NodeGroup eksv1.NodeGroup }
type CreateStackOptions ¶
type CreateStackOptions struct { CloudFormationService services.CloudFormationServiceInterface StackName string DisplayName string TemplateBody string Capabilities []cftypes.Capability Parameters []cftypes.Parameter }
type EnableEBSCSIDriverInput ¶ added in v1.2.2
type EnableEBSCSIDriverInput struct { EKSService services.EKSServiceInterface IAMService services.IAMServiceInterface CFService services.CloudFormationServiceInterface Config *eksv1.EKSClusterConfig AddonVersion string }
EnableEBSCSIDriverInput holds the options for enabling the EBS CSI driver
type GetClusterStatusOpts ¶ added in v1.2.2
type GetClusterStatusOpts struct { EKSService services.EKSServiceInterface Config *eksv1.EKSClusterConfig }
type GetLaunchTemplateVersionsOpts ¶ added in v1.2.2
type GetLaunchTemplateVersionsOpts struct { EC2Service services.EC2ServiceInterface LaunchTemplateID *string Versions []*string }
type UpdateClusterAccessOpts ¶ added in v1.2.2
type UpdateClusterAccessOpts struct { EKSService services.EKSServiceInterface Config *eksv1.EKSClusterConfig UpstreamClusterSpec *eksv1.EKSClusterConfigSpec }
type UpdateClusterPublicAccessSourcesOpts ¶ added in v1.2.2
type UpdateClusterPublicAccessSourcesOpts struct { EKSService services.EKSServiceInterface Config *eksv1.EKSClusterConfig UpstreamClusterSpec *eksv1.EKSClusterConfigSpec }
type UpdateClusterVersionOpts ¶ added in v1.2.2
type UpdateClusterVersionOpts struct { EKSService services.EKSServiceInterface Config *eksv1.EKSClusterConfig UpstreamClusterSpec *eksv1.EKSClusterConfigSpec }
type UpdateLoggingTypesOpts ¶ added in v1.2.2
type UpdateLoggingTypesOpts struct { EKSService services.EKSServiceInterface Config *eksv1.EKSClusterConfig UpstreamClusterSpec *eksv1.EKSClusterConfigSpec }
type UpdateNodegroupVersionOpts ¶ added in v1.2.2
type UpdateNodegroupVersionOpts struct { EKSService services.EKSServiceInterface EC2Service services.EC2ServiceInterface Config *eksv1.EKSClusterConfig NodeGroup *eksv1.NodeGroup NGVersionInput *eks.UpdateNodegroupVersionInput LTVersions map[string]string }
type UpdateResourceTagsOpts ¶ added in v1.2.2
Directories ¶
Path | Synopsis |
---|---|
mock_services
Package mock_services is a generated GoMock package.
|
Package mock_services is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.