Class: Gitlab::Kubernetes::ConfigMap

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

Instance Method Summary collapse

Constructor Details

#initialize(name, files) ⇒ ConfigMap

Returns a new instance of ConfigMap.


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

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

Instance Method Details

#config_map_nameObject


18
19
20
# File 'lib/gitlab/kubernetes/config_map.rb', line 18

def config_map_name
  "values-content-configuration-#{name}"
end

#generateObject


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

def generate
  resource = ::Kubeclient::Resource.new
  resource. = 
  resource.data = files
  resource
end