Class: Gitlab::Kubernetes::ServiceAccount
- Inherits:
-
Object
- Object
- Gitlab::Kubernetes::ServiceAccount
- Defined in:
- lib/gitlab/kubernetes/service_account.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#namespace_name ⇒ Object
readonly
Returns the value of attribute namespace_name.
Instance Method Summary collapse
- #generate ⇒ Object
-
#initialize(name, namespace_name) ⇒ ServiceAccount
constructor
A new instance of ServiceAccount.
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
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/gitlab/kubernetes/service_account.rb', line 6 def name @name end |
#namespace_name ⇒ Object (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
#generate ⇒ Object
13 14 15 |
# File 'lib/gitlab/kubernetes/service_account.rb', line 13 def generate ::Kubeclient::Resource.new(metadata: ) end |