Class: Gitlab::Kubernetes::ServiceAccount

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, namespace_name) ⇒ ServiceAccount

Returns a new instance of ServiceAccount.


8
9
10
11
# File 'lib/gitlab/kubernetes/service_account.rb', line 8

def initialize(name, namespace_name)
  @name = name
  @namespace_name = namespace_name
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name


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

def name
  @name
end

#namespace_nameObject (readonly)

Returns the value of attribute namespace_name


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

def namespace_name
  @namespace_name
end

Instance Method Details

#generateObject


13
14
15
# File 'lib/gitlab/kubernetes/service_account.rb', line 13

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