Module: GClouder::Resources::Container::Clusters::Local

Defined in:
lib/gclouder/resources/container/clusters.rb

Class Method Summary collapse

Class Method Details

.listObject



87
88
89
# File 'lib/gclouder/resources/container/clusters.rb', line 87

def self.list
  Resources::Region.instances(path: section)
end

.sectionObject



91
92
93
# File 'lib/gclouder/resources/container/clusters.rb', line 91

def self.section
  ["clusters"]
end

.validateObject



95
96
97
98
99
100
101
102
103
104
# File 'lib/gclouder/resources/container/clusters.rb', line 95

def self.validate
  Resources::Validate::Region.instances(
    list,
    required_keys:  GClouder::Config::Arguments.required(["container", "clusters"]),
    permitted_keys: GClouder::Config::Arguments.permitted(["container", "clusters"]),
    # FIXME: zone has wrong type in assets arguments file
    # FIXME: num_nodes has wrong type in assets arguments file
    ignore_keys: %w(node_pools zone num_nodes),
  )
end