Module: Clusters::Concerns::ApplicationData

Instance Method Summary collapse

Instance Method Details

#filesObject


22
23
24
# File 'app/models/clusters/concerns/application_data.rb', line 22

def files
  @files ||= { 'values.yaml': values }
end

#repositoryObject


14
15
16
# File 'app/models/clusters/concerns/application_data.rb', line 14

def repository
  nil
end

#uninstall_commandObject


6
7
8
9
10
11
12
# File 'app/models/clusters/concerns/application_data.rb', line 6

def uninstall_command
  Gitlab::Kubernetes::Helm::DeleteCommand.new(
    name: name,
    rbac: cluster.platform_kubernetes_rbac?,
    files: files
  )
end

#valuesObject


18
19
20
# File 'app/models/clusters/concerns/application_data.rb', line 18

def values
  File.read(chart_values_file)
end