MCPcopy Create free account
hub / github.com/eksctl-io/eksctl / NewManagedNodeGroup

Function NewManagedNodeGroup

pkg/cfn/builder/managed_nodegroup.go:38–49  ·  view source on GitHub ↗

NewManagedNodeGroup creates a new ManagedNodeGroupResourceSet

(ec2API awsapi.EC2, cluster *api.ClusterConfig, nodeGroup *api.ManagedNodeGroup, launchTemplateFetcher *LaunchTemplateFetcher, bootstrapper nodebootstrap.Bootstrapper, forceAddCNIPolicy bool, vpcImporter vpc.Importer)

Source from the content-addressed store, hash-verified

36
37// NewManagedNodeGroup creates a new ManagedNodeGroupResourceSet
38func NewManagedNodeGroup(ec2API awsapi.EC2, cluster *api.ClusterConfig, nodeGroup *api.ManagedNodeGroup, launchTemplateFetcher *LaunchTemplateFetcher, bootstrapper nodebootstrap.Bootstrapper, forceAddCNIPolicy bool, vpcImporter vpc.Importer) *ManagedNodeGroupResourceSet {
39 return &ManagedNodeGroupResourceSet{
40 clusterConfig: cluster,
41 forceAddCNIPolicy: forceAddCNIPolicy,
42 nodeGroup: nodeGroup,
43 launchTemplateFetcher: launchTemplateFetcher,
44 ec2API: ec2API,
45 resourceSet: newResourceSet(),
46 vpcImporter: vpcImporter,
47 bootstrapper: bootstrapper,
48 }
49}
50
51func convertToTypesValueMap(input map[string]string) map[string]*gfnt.Value {
52 output := make(map[string]*gfnt.Value)

Calls 1

newResourceSetFunction · 0.85

Tested by 3

TestManagedNodeRoleFunction · 0.74