eks

package
v0.0.0-...-a2a49da Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	S = terra.String
	N = terra.Number
)
View Source
var (
	PORT_HTTPS   = N(443)
	PORT_DNS     = N(53)
	PROTOCOL_TCP = S("tcp")
	INGRESS      = S("ingress")
	EGRESS       = S("egress")
)

Functions

This section is empty.

Types

type Cluster

type Cluster struct {
	EKSCluster           *aws.EksCluster              `validate:"required"`
	IAMPolicyDocument    *aws.DataIamPolicyDocument   `validate:"required"`
	IAMRole              *aws.IamRole                 `validate:"required"`
	IAMRoleClusterPolicy *aws.IamRolePolicyAttachment `validate:"required"`
	IAMRoleVPCController *aws.IamRolePolicyAttachment `validate:"required"`
	// SecurityGroup is the AWS security group for both the EKS control plane
	// and worker nodes
	SecurityGroup   *aws.SecurityGroup     `validate:"required"`
	IngressAllowAll *aws.SecurityGroupRule `validate:"required"`
	EgressAllowAll  *aws.SecurityGroupRule `validate:"required"`

	TLSCert         *tls.DataCertificate          `validate:"required"`
	IAMOIDCProvider *aws.IamOpenidConnectProvider `validate:"required"`
}

func NewEKSCluster

func NewEKSCluster(opts ClusterOpts) *Cluster

type ClusterOpts

type ClusterOpts struct {
	Name             string
	Version          string
	VPCID            string
	PrivateSubnetIDs [3]string
}

Jump to

Keyboard shortcuts

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