FindInstanceGroup returns the instance group with the matching Name (or nil if not found)
(name string)
| 103 | |
| 104 | // FindInstanceGroup returns the instance group with the matching Name (or nil if not found) |
| 105 | func (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) |
| 115 | func (b *KopsModelContext) FindSubnet(name string) *kops.ClusterSubnetSpec { |
no outgoing calls
no test coverage detected