eks_v2

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EKSConfig

type EKSConfig struct {
	// Module settings
	Source  *hcl.HclField `hcl:"source"`
	Version *hcl.HclField `hcl:"version"`

	// Cluster settings
	ClusterName           *hcl.HclField `hcl:"cluster_name"`
	ClusterVersion        *hcl.HclField `hcl:"cluster_version"`
	ClusterEndpointPublic *hcl.HclField `hcl:"cluster_endpoint_public_access"`

	// Network settings
	VPCId     *hcl.HclField `hcl:"vpc_id"`
	SubnetIds *hcl.HclField `hcl:"subnet_ids"`

	// Security settings
	CreateClusterSecurityGroup           *hcl.HclField `hcl:"create_cluster_security_group"`
	CreateNodeSecurityGroup              *hcl.HclField `hcl:"create_node_security_group"`
	EnableClusterCreatorAdminPermissions *hcl.HclField `hcl:"enable_cluster_creator_admin_permissions"`

	// Fargate settings
	FargateProfiles *hcl.HclField `hcl:"fargate_profiles"`

	// Tags
	Tags *hcl.HclField `hcl:"tags"`
}

EKSConfig represents the configuration for an EKS cluster

func (*EKSConfig) GenerateHCL

func (c *EKSConfig) GenerateHCL() (string, error)

func (*EKSConfig) Validate

func (c *EKSConfig) Validate() error

type EKSConfigBuilder

type EKSConfigBuilder struct {
	// contains filtered or unexported fields
}

EKSConfigBuilder is a builder for EKSConfig

func NewEKSConfig

func NewEKSConfig() *EKSConfigBuilder

NewEKSConfig creates a new EKSConfigBuilder with default values

func (*EKSConfigBuilder) Build

func (b *EKSConfigBuilder) Build() (*EKSConfig, error)

func (*EKSConfigBuilder) SetClusterEndpointPublicAccess

func (b *EKSConfigBuilder) SetClusterEndpointPublicAccess(enable bool) *EKSConfigBuilder

func (*EKSConfigBuilder) SetClusterName

func (b *EKSConfigBuilder) SetClusterName(expr string) *EKSConfigBuilder

func (*EKSConfigBuilder) SetClusterVersion

func (b *EKSConfigBuilder) SetClusterVersion(version string) *EKSConfigBuilder

func (*EKSConfigBuilder) SetCreateSecurityGroups

func (b *EKSConfigBuilder) SetCreateSecurityGroups(cluster, node bool) *EKSConfigBuilder

func (*EKSConfigBuilder) SetEnableClusterCreatorAdminPermissions

func (b *EKSConfigBuilder) SetEnableClusterCreatorAdminPermissions(enable bool) *EKSConfigBuilder

func (*EKSConfigBuilder) SetFargateProfiles

func (b *EKSConfigBuilder) SetFargateProfiles(expr string) *EKSConfigBuilder

func (*EKSConfigBuilder) SetSource

func (b *EKSConfigBuilder) SetSource(source string) *EKSConfigBuilder

func (*EKSConfigBuilder) SetSubnetIds

func (b *EKSConfigBuilder) SetSubnetIds(expr string) *EKSConfigBuilder

func (*EKSConfigBuilder) SetTags

func (b *EKSConfigBuilder) SetTags(expr string) *EKSConfigBuilder

func (*EKSConfigBuilder) SetVPCId

func (b *EKSConfigBuilder) SetVPCId(expr string) *EKSConfigBuilder

func (*EKSConfigBuilder) SetVersion

func (b *EKSConfigBuilder) SetVersion(version string) *EKSConfigBuilder

Jump to

Keyboard shortcuts

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