Class: Gitlab::Kubernetes::ConfigMaps::AwsNodeAuth

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(node_role) ⇒ AwsNodeAuth

Returns a new instance of AwsNodeAuth.


9
10
11
# File 'lib/gitlab/kubernetes/config_maps/aws_node_auth.rb', line 9

def initialize(node_role)
  @node_role = node_role
end

Instance Attribute Details

#node_roleObject (readonly)

Returns the value of attribute node_role.


7
8
9
# File 'lib/gitlab/kubernetes/config_maps/aws_node_auth.rb', line 7

def node_role
  @node_role
end

Instance Method Details

#generateObject


13
14
15
16
17
18
# File 'lib/gitlab/kubernetes/config_maps/aws_node_auth.rb', line 13

def generate
  Kubeclient::Resource.new(
    metadata: ,
    data: data
  )
end