MCPcopy
hub / github.com/kubernetes/kops / FindInstanceGroup

Method FindInstanceGroup

pkg/model/context.go:105–112  ·  view source on GitHub ↗

FindInstanceGroup returns the instance group with the matching Name (or nil if not found)

(name string)

Source from the content-addressed store, hash-verified

103
104// FindInstanceGroup returns the instance group with the matching Name (or nil if not found)
105func (b *KopsModelContext) FindInstanceGroup(name string) *kops.InstanceGroup {
106 for _, ig := range b.AllInstanceGroups {
107 if ig.ObjectMeta.Name == name {
108 return ig
109 }
110 }
111 return nil
112}
113
114// FindSubnet returns the subnet with the matching Name (or nil if not found)
115func (b *KopsModelContext) FindSubnet(name string) *kops.ClusterSubnetSpec {

Callers 2

BuildMethod · 0.80
GetInstanceGroupMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected