Class: Gitlab::Kubernetes::ConfigMaps::AwsNodeAuth
- Inherits:
-
Object
- Object
- Gitlab::Kubernetes::ConfigMaps::AwsNodeAuth
- Defined in:
- lib/gitlab/kubernetes/config_maps/aws_node_auth.rb
Instance Attribute Summary collapse
-
#node_role ⇒ Object
readonly
Returns the value of attribute node_role.
Instance Method Summary collapse
- #generate ⇒ Object
-
#initialize(node_role) ⇒ AwsNodeAuth
constructor
A new instance of AwsNodeAuth.
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_role ⇒ Object (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
#generate ⇒ Object
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 |