Module: Awspec::Helper::Finder::Eks

Included in:
Awspec::Helper::Finder
Defined in:
lib/awspec/helper/finder/eks.rb

Instance Method Summary collapse

Instance Method Details

#find_eks_cluster(name) ⇒ Object



6
7
8
9
# File 'lib/awspec/helper/finder/eks.rb', line 6

def find_eks_cluster(name)
  res = eks_client.describe_cluster({ name: name })
  res.cluster
end

#find_eks_nodegroup(cluster_name, group_name) ⇒ Object



11
12
13
14
# File 'lib/awspec/helper/finder/eks.rb', line 11

def find_eks_nodegroup(cluster_name, group_name)
  res = eks_client.describe_nodegroup({ cluster_name: cluster_name, nodegroup_name: group_name })
  res.nodegroup
end