MCPcopy
hub / github.com/eksctl-io/eksctl / Bootstrapper

Interface Bootstrapper

pkg/nodebootstrap/userdata.go:30–33  ·  view source on GitHub ↗

go:generate go run github.com/maxbrunsfeld/counterfeiter/v6 -generate counterfeiter:generate -o fakes/fake_bootstrapper.go . Bootstrapper

Source from the content-addressed store, hash-verified

28
29//counterfeiter:generate -o fakes/fake_bootstrapper.go . Bootstrapper
30type Bootstrapper interface {
31 // UserData returns userdata for bootstrapping nodes
32 UserData() (string, error)
33}
34
35// NewBootstrapper returns the correct bootstrapper for the AMI family
36func NewBootstrapper(clusterConfig *api.ClusterConfig, ng *api.NodeGroup) (Bootstrapper, error) {

Callers 8

newLaunchTemplateDataFunction · 0.65
ubuntu_test.goFile · 0.65
al2_test.goFile · 0.65
al2023_test.goFile · 0.65

Implementers 9

Windowspkg/nodebootstrap/windows.go
Bottlerocketpkg/nodebootstrap/bottlerocket.go
ManagedWindowspkg/nodebootstrap/windows_managed.go
ManagedAL2pkg/nodebootstrap/managed_al2.go
AL2023pkg/nodebootstrap/al2023.go
ManagedBottlerocketpkg/nodebootstrap/managed_bottlerocket
AmazonLinux2pkg/nodebootstrap/al2.go
Ubuntupkg/nodebootstrap/ubuntu.go
FakeBootstrapperpkg/nodebootstrap/fakes/fake_bootstrap

Calls

no outgoing calls

Tested by

no test coverage detected