Class: Gitlab::Kubernetes::Node

Inherits:
Object
  • Object
show all
Defined in:
lib/gitlab/kubernetes/node.rb

Instance Method Summary collapse

Constructor Details

#initialize(cluster) ⇒ Node

Returns a new instance of Node.


6
7
8
# File 'lib/gitlab/kubernetes/node.rb', line 6

def initialize(cluster)
  @cluster = cluster
end

Instance Method Details

#allObject


10
11
12
13
14
15
16
# File 'lib/gitlab/kubernetes/node.rb', line 10

def all
  {
    nodes: .presence,
    node_connection_error: nodes_from_cluster[:connection_error],
    metrics_connection_error: nodes_metrics_from_cluster[:connection_error]
  }.compact
end